Skip to content

Commit c9e43a8

Browse files
update to 17.2
1 parent 60b6f36 commit c9e43a8

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@angular/router": "~12.0.0",
2323
"@ng-bootstrap/ng-bootstrap": "^11.0.0-beta.0",
2424
"bootstrap": "^5.0.0",
25-
"dwt": "17.1.12",
25+
"dwt": "17.2.0",
2626
"rxjs": "~6.6.0",
2727
"tslib": "^2.1.0",
2828
"zone.js": "~0.11.4"

src/app/dwt.service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ export class DwtService {
160160
*/
161161
Dynamsoft.DWT.ResourcesPath = environment.Dynamsoft.resourcesPath;
162162
Dynamsoft.DWT.ProductKey = environment.Dynamsoft.dwtProductKey;
163-
Dynamsoft.DWT.Containers = [{ WebTwainId: 'dwtcontrolContainer', Width: 270, Height: 350 }];
163+
Dynamsoft.DWT.Containers = [{ WebTwainId: 'dwtcontrolContainer', Width: 270, Height: 350 }];
164+
Dynamsoft.DWT.UseCameraAddonWasm = true;
165+
Dynamsoft.DWT.Load();
164166
/**
165167
* ConnectToTheService is overwritten here for smoother install process.
166168
*/
@@ -258,7 +260,7 @@ export class DwtService {
258260
return new Promise((res, rej) => {
259261
if (this._DWObject) {
260262
let dwtInitialConfig: DWTInitialConfig = {
261-
WebTwainId: "videoContainer"
263+
WebTwainId: "videoContainer"
262264
};
263265
Dynamsoft.DWT.CreateDWTObjectEx(
264266
dwtInitialConfig,

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const environment = {
66
production: false,
77
Dynamsoft: {
88
resourcesPath: 'assets/dwt-resources',
9-
dwtProductKey: 't00891wAAAKBfWo4sRRVNTyLqdC7nKomEJIfBYqfXWg5mblnP0eeJi+LsMIUdQvrBf//ocS3z8MJA47R4VdO4x24uJwlqKgkuZOa7BUQHPkFNA5hFSi6lG2qOK6I=',
9+
dwtProductKey: 't00881wAAAJiZxwKrauMDAnLQZ4prFe5v+GIzhfe6tY5KYmPHgMl/HdEi/Vt0gw0oYrLdhvNToW0YknBnPyJr0T5IkwNgUinIjHfOHUQH/gYsW0kWed4BaK4rng==',
1010
uploadTargetURL: ''
1111
}
1212
};

0 commit comments

Comments
 (0)