You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: programming/javascript/user-guide/index.md
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -341,16 +341,8 @@ This is usually only required with frameworks like Angular or React, etc. where
341
341
The purpose is to tell the SDK where to find the engine files (\*.worker.js, \*.wasm.js and \*.wasm, etc.). The API is called `Dynamsoft.Core.CoreModule.engineResourcePaths`:
342
342
343
343
```javascript
344
-
//The following code uses the jsDelivr CDN, feel free to change it to your own location of these files
Copy file name to clipboardExpand all lines: programming/javascript/user-guide/use-in-framework-v10.2.10.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ beforeUnmount(){
109
109
110
110
In scenarios where users may click the button quickly, the component might be destroyed before `cvRouter` is fully created. To handle this situation, we'll need to implement some techniques to ensure proper resource management.
111
111
112
-
Here's an improved vesion of the code to address this issue:
112
+
Here's an improved version of the code to address this issue:
3. Confirm the installation by checking the `package.json`. You should see:
31
31
32
-
```json
33
-
{
34
-
...
35
-
"dependencies": {
36
-
...
37
-
"dynamsoft-barcode-reader-bundle": "10.4.2001"
38
-
}
39
-
}
40
-
```
32
+
```json
33
+
{
34
+
...
35
+
"dependencies": {
36
+
...
37
+
"dynamsoft-barcode-reader-bundle": "10.4.2001"
38
+
}
39
+
}
40
+
```
41
41
42
42
Notice that there is no `^` before `10.2.1000`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
43
43
@@ -52,16 +52,8 @@ import { CoreModule } from "dynamsoft-core";
52
52
import { LicenseManager } from "dynamsoft-license";
53
53
import "dynamsoft-barcode-reader";
54
54
55
-
// Configures the paths where the .wasm files and other necessary resources for modules are located.
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
74
66
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
75
-
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=10.2.10&utm_source=github#specify-the-license or contact [email protected].
67
+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=10.4.20&utm_source=github#specify-the-license or contact [email protected].
76
68
* LICENSE ALERT - THE END
77
69
*/
78
70
79
71
// Optional. Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
80
72
CoreModule.loadWasm(["DBR"]);
81
73
```
82
74
83
-
In order for these settings to take effect, `dynamsoft.config.ts` must be imported before using the barcode reader. Import this file at the entry point of your application, such as in `main.ts` or the root component. If you import `dynamsoft.config.ts` within a specific subcomponent, you can achieve lazy loading, which can save bandwidth by only loading the barcode feature when needed.
75
+
In order forthese settings to take effect, `dynamsoft.config.ts` must be imported before using the barcode reader. One approach is to import this file at the entry point of the application, such asin`main.ts` or the root component. If you import `dynamsoft.config.ts` within a specific subcomponent, you can achieve lazy loading, which can save bandwidth by only loading the barcode feature when needed.
84
76
85
77
Next, we will demonstrate how to introduce `dynamsoft.config.ts` into a specific component. Don't skip the [Component for Reading Image](#component-for-reading-image) section even if you only need video barcode decoding.
86
78
@@ -109,7 +101,7 @@ beforeUnmount(){
109
101
110
102
In scenarios where users may click the button quickly, the component might be destroyed before `cvRouter` is fully created. To handle this situation, we'll need to implement some techniques to ensure proper resource management.
111
103
112
-
Here's an improved vesion of the code to address this issue:
104
+
Here's an improved version of the code to address this issue:
0 commit comments