File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments