dwt 17.3.4 → 18.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/LICENSE.txt +2 -2
  2. package/README.md +26 -33
  3. package/dist/addon/dbrjs/dbr-9.2.13.browser.worker.js +11 -0
  4. package/dist/addon/dbrjs/dbr-9.2.13.full.wasm +0 -0
  5. package/dist/addon/dbrjs/{dbr-8.8.7.full.wasm.js → dbr-9.2.13.full.wasm.js} +285 -285
  6. package/dist/addon/dbrjs/dbr.js +21 -22
  7. package/dist/addon/dynamsoft.webtwain.addon.camera.css +7 -7
  8. package/dist/dist/DynamsoftServiceSetup-arm64.deb +0 -0
  9. package/dist/dist/DynamsoftServiceSetup.deb +0 -0
  10. package/dist/dist/DynamsoftServiceSetup.msi +0 -0
  11. package/dist/dist/DynamsoftServiceSetup.pkg +0 -0
  12. package/dist/dist/DynamsoftServiceSetup.rpm +0 -0
  13. package/dist/dynamsoft.webtwain.min.js +327 -191
  14. package/dist/dynamsoft.webtwain.min.mjs +330 -195
  15. package/dist/src/{dynamsoft.imagecore-1.7.3.wasm → dynamsoft.imagecore-1.8.0.wasm} +0 -0
  16. package/dist/src/{dynamsoft.imageio-1.7.3.wasm → dynamsoft.imageio-1.8.0.wasm} +0 -0
  17. package/dist/src/{dynamsoft.imageio_wasm-1.7.3.js → dynamsoft.imageio_wasm-1.8.0.js} +34 -34
  18. package/dist/src/dynamsoft.lts.js +12 -34
  19. package/dist/src/{dynamsoft.pdfReader-1.7.3.wasm → dynamsoft.pdfReader-1.8.0.wasm} +0 -0
  20. package/dist/src/{dynamsoft.pdfReader_wasm-1.7.3.js → dynamsoft.pdfReader_wasm-1.8.0.js} +34 -34
  21. package/dist/src/dynamsoft.viewer.css +2 -2
  22. package/dist/src/dynamsoft.viewer.js +1 -1
  23. package/dist/src/dynamsoft.webtwain.css +43 -21
  24. package/dist/src/fastcomp/{dynamsoft.imagecore-1.7.3.wasm → dynamsoft.imagecore-1.8.0.wasm} +0 -0
  25. package/dist/src/fastcomp/{dynamsoft.imageio-1.7.3.wasm → dynamsoft.imageio-1.8.0.wasm} +0 -0
  26. package/dist/src/fastcomp/{dynamsoft.imageio_wasm-1.7.3.js → dynamsoft.imageio_wasm-1.8.0.js} +34 -34
  27. package/dist/types/Addon.Camera.d.ts +22 -4
  28. package/dist/types/Dynamsoft.Enum.d.ts +14 -0
  29. package/dist/types/Dynamsoft.d.ts +81 -2
  30. package/dist/types/WebTwain.Acquire.d.ts +37 -3
  31. package/dist/types/WebTwain.Viewer.d.ts +21 -17
  32. package/dist/types/index.d.ts +1 -1
  33. package/package.json +2 -2
  34. package/dist/addon/dbrjs/dbr-8.8.7.full.wasm +0 -0
  35. package/dist/addon/dbrjs/dbr-8.8.7.worker.js +0 -113
  36. package/dist/dist/DynamsoftServiceSetup-mips64el.deb +0 -0
  37. package/samples/AcquireImage.html +0 -69
  38. package/samples/CustomScan.html +0 -98
  39. package/samples/Dynamic Web TWAIN Online Demo.html +0 -8
  40. package/samples/Dynamic Web TWAIN Sample Code Gallery.html +0 -8
  41. package/samples/Edit.html +0 -111
  42. package/samples/LoadAndSaveImages.html +0 -103
  43. package/samples/Navigation.html +0 -197
  44. package/samples/PDFRasterizer.html +0 -88
  45. package/samples/ReadBarcode.html +0 -231
  46. package/samples/ScanOrCapture.html +0 -202
  47. package/samples/Thumbnail.html +0 -88
  48. package/samples/mobilebrowsercapture.html +0 -13
  49. /package/dist/src/{dynamsoft.crypto-1.7.3.wasm → dynamsoft.crypto-1.8.0.wasm} +0 -0
  50. /package/dist/src/{dynamsoft.imageProc-1.7.3.wasm → dynamsoft.imageProc-1.8.0.wasm} +0 -0
  51. /package/dist/src/{dynamsoft.imageProc-sn-1.7.3.wasm → dynamsoft.imageProc-sn-1.8.0.wasm} +0 -0
  52. /package/dist/src/{dynamsoft.pdfWriter-1.7.3.wasm → dynamsoft.pdfWriter-1.8.0.wasm} +0 -0
  53. /package/dist/src/fastcomp/{dynamsoft.crypto-1.7.3.wasm → dynamsoft.crypto-1.8.0.wasm} +0 -0
  54. /package/dist/src/fastcomp/{dynamsoft.imageProc-1.7.3.wasm → dynamsoft.imageProc-1.8.0.wasm} +0 -0
  55. /package/dist/src/fastcomp/{dynamsoft.pdfWriter-1.7.3.wasm → dynamsoft.pdfWriter-1.8.0.wasm} +0 -0
@@ -3,11 +3,11 @@ export interface Camera {
3
3
  /**
4
4
  * Hide the camera interface.
5
5
  */
6
- hide(): void;
6
+ hide(): boolean;
7
7
  /**
8
8
  * Show the camera interface.
9
9
  */
10
- show(): void;
10
+ show(): boolean;
11
11
  /**
12
12
  * Return a list of all available cameras.
13
13
  */
@@ -88,6 +88,18 @@ export interface Camera {
88
88
  * Close the camera and hide the video streaming UI.
89
89
  */
90
90
  closeVideo(): void;
91
+ /**
92
+ * Turn on the torch/flashlight.
93
+ */
94
+ turnOnTorch(): Promise<void>;
95
+ /**
96
+ * Turn off the torch/flashlight.
97
+ */
98
+ turnOffTorch(): Promise<void>;
99
+ /**
100
+ * Get the camera capabilities. The return type is MediaTrackCapabilities
101
+ */
102
+ getCapabilities(): MediaTrackCapabilities;
91
103
  /**
92
104
  * Specify an event listener for the specified built-in viewer event.
93
105
  * @param eventName Specify the event name.
@@ -144,7 +156,7 @@ export interface ScannerViewer {
144
156
  strokeWidth?: string; //default: "2px"
145
157
  dash?: string; //The allowed value are "solid" and "dashed", the default value is "solid".
146
158
  };
147
- element?: HTMLDivElement | string; //Bind the elment or elment id.
159
+ element?: HTMLDivElement | HTMLElement | string; //Bind the elment or elment id.
148
160
  //After binding, display the video in the spcified element, otherwise, display the video in full screen.
149
161
  headerStyle?:{
150
162
  background?: string; //background color of the head, default : "#000000". Only supports #16 hexadecimal.
@@ -169,6 +181,12 @@ export interface ScannerViewer {
169
181
  valueList?: any;
170
182
  defaultValue?: Resolution; //Set the default value according to the value set in the valueList.
171
183
  };
184
+
185
+ torch?: { //
186
+ visibility?:string; //Whether to show torch icon. The allowed values are "visible" and "hidden". The default value is "visible".
187
+ enableTorch?: boolean; //Whether to enable torch. The default value is false.
188
+ };
189
+
172
190
  autoScan?: { //Automatically capture when a clear document is detected. Only applicable to video scanning.
173
191
  visibility?:string; //Whether to display the automatic scan icon. The allowed value are "visible" and "hidden". The default value is "visible".
174
192
  enableAutoScan?: boolean; //Whether to enable automatic scan. The default value is false.
@@ -197,7 +215,7 @@ export interface ScannerViewer {
197
215
 
198
216
  export interface DocumentEditorSettings {
199
217
  visibility?:string; //Whether to display the documentEditor. The allowed value are "visible" and "hidden". The default value is "visible".
200
- element?: HTMLDivElement | string; //Bind the elment or elment id.
218
+ element?: HTMLDivElement | HTMLElement | string; //Bind the elment or elment id.
201
219
  //After binding, display the video in the spcified element, otherwise, display the video in full screen.
202
220
  defaultViewerName?:string; // default viewer. The allowed value are "cropViewer" and "mainViewer".
203
221
  headerStyle?:{
@@ -1862,4 +1862,18 @@ export namespace DynamsoftEnumsDWT {
1862
1862
  Single = 0,
1863
1863
  Multiple = 1
1864
1864
  }
1865
+ enum EnumDWT_ExtImageInfo {
1866
+ default = 0,
1867
+ standard = 1,
1868
+ supported = 2
1869
+ }
1870
+ enum EnumDWT_DeviceType{
1871
+ TWAINSCANNER = 0x10,
1872
+ WIATWAINSCANNER = 0x20,
1873
+ TWAINX64SCANNER = 0x40,
1874
+ ICASCANNER = 0x80,
1875
+ SANESCANNER = 0x100,
1876
+ ESCLSCANNER = 0x200,
1877
+ WIFIDIRECTSCANNER = 0x400
1878
+ }
1865
1879
  }
@@ -3,7 +3,7 @@ import { DynamsoftEnumsDWT} from "./Dynamsoft.Enum";
3
3
  import { WebTwain } from "./WebTwain";
4
4
  import { Settings } from "./Addon.OCRPro";
5
5
  import { FileUploader } from "./Dynamsoft.FileUploader";
6
-
6
+ import { DeviceConfiguration, ServiceInfo, Device, CapabilityDetails, Capabilities} from "./WebTwain.Acquire";
7
7
 
8
8
  export namespace DynamsoftStatic {
9
9
  let Lib: DynamsoftLib;
@@ -26,7 +26,8 @@ export interface DWTInitialConfig {
26
26
  WebTwainId: string;
27
27
  Host?: string;
28
28
  Port?: string;
29
- SSLPort?: string;
29
+ PortSSL?: string;
30
+ UseLocalService?: boolean;
30
31
  }
31
32
  export interface DynamsoftLib {
32
33
  /**
@@ -218,6 +219,7 @@ export interface DWTPro {
218
219
  * Whether to create a WebTwain instance automatically upon page load.
219
220
  */
220
221
  AutoLoad: boolean;
222
+ Host: string;
221
223
  /**
222
224
  * Close a dialog opened by the method ShowDialog.
223
225
  */
@@ -357,6 +359,7 @@ export interface DWTPro {
357
359
  handshakeCode?: string;
358
360
  sessionPassword?: string;
359
361
  organizationID?: string;
362
+ licenseException?: string;
360
363
  /**
361
364
  * The product name.
362
365
  */
@@ -434,6 +437,30 @@ export interface DWTPro {
434
437
  * inited, _srcUseLocalService
435
438
  */
436
439
  IfCheckDCP: boolean;
440
+
441
+ OnLicenseException: () => void;
442
+ /**
443
+ * Dynamsoft.DWT.DeviceFriendlyName
444
+ */
445
+ DeviceFriendlyName: string;
446
+ /**
447
+ * Bring up the Source Selection User Interface (UI) for the user to choose a data source.
448
+ * @param serverUrl The URL of the proxy server: https(http)://domain_name:port (default: 443).
449
+ * @param forceRefresh Default value: false.
450
+ */
451
+ FindDynamsoftServiceAsync(serverUrl: string, forceRefresh?: boolean): Promise<ServiceInfo[]>;
452
+ /**
453
+ * Based on serviceInfo, return the existing DWObject if already exists, otherwise, create a new one.
454
+ * @param serverUrl The proxy server url or the serviceInfo.
455
+ * @param deviceType The value to filter scanners. Default: TWAINSCANNER
456
+ * @param forceRefresh Default value: false.
457
+ */
458
+ FindDevicesAsync(serverUrl: string | ServiceInfo, deviceType?: DynamsoftEnumsDWT.EnumDWT_DeviceType | number, forceRefresh?: boolean): Promise<Device[]>;
459
+ /**
460
+ * Based on serviceInfo, return the existing object if already exists, otherwise, create a new one.
461
+ * @param serviceInfo The service information.
462
+ */
463
+ CreateRemoteScanObjectAsync(serviceInfo: ServiceInfo): Promise<RemoteScanObject>;
437
464
  }
438
465
  export interface DisplayInfo {
439
466
  loaderBarSource?: string;
@@ -516,6 +543,58 @@ export interface DWTInstall {
516
543
  funcConfirmExitAfterSave?: (firedByDocumentEdit: boolean) => void;
517
544
  funcConfirmCropViewerExit?: (bChanged: boolean, previousViewerName: string) => Promise<Number | DynamsoftEnumsDWT.EnumDWT_ConfirmExitType>;
518
545
  funcConfirmMainViewerExit?: (bChanged: boolean, previousViewerName: string) => Promise<Number | DynamsoftEnumsDWT.EnumDWT_ConfirmExitType>;
546
+
547
+ OnLTSConnectionFailure?: (message?: string) => void;
548
+ OnLTSReturnedAnError?: (message?: string) => void;
549
+ OnLTSUUIDError?: (message?: string) => void;
550
+ OnLTSConnectionWarning?: () => void;
551
+ OnLTSPublicLicenseMessage?: (message?: string) => void;
552
+ }
553
+ export interface RemoteScanObject {
554
+ /**
555
+ * Return all available devices (scanners, eSCL scanners, etc.) for the device type (if specified)
556
+ * @param deviceType The device type
557
+ * @param refresh Default value: false
558
+ */
559
+ getDevices(deviceType?: DynamsoftEnumsDWT.EnumDWT_DeviceType | number, refresh?: boolean): Promise<Device[]>;
560
+ /**
561
+ * Select the device to use for scanning
562
+ * @param device the device
563
+ */
564
+ selectDevice(device: Device): Promise<boolean>;
565
+ /**
566
+ * Scan documents into another DWObject control. Supports eSCL scanners and all other scanners with limited capabilities.
567
+ * @param deviceConfiguration The device configuration
568
+ * @param sendTo The DWObject control to scan into
569
+ */
570
+ acquireImage(deviceConfiguration?: DeviceConfiguration, sendTo?: WebTwain): Promise<boolean>;
571
+ /**
572
+ * Close the data source (a TWAIN/ICA/SANE device which in most cases is a scanner) to free it to be used by other applications.
573
+ */
574
+ closeSource(): Promise<boolean>;
575
+ /**
576
+ * Bring up the Source Selection User Interface (UI) for the user to choose a data source.
577
+ * @param deviceType The device type.
578
+ */
579
+ selectSource(deviceType?: DynamsoftEnumsDWT.EnumDWT_DeviceType | number): Promise<number>;
580
+ /**
581
+ * Gets detailed information about all capabilities of the current data source.
582
+ * @argument capabilityDetails Detailed information about the specified capabilities.
583
+ */
584
+ getCapabilities():Promise<CapabilityDetails[]>;
585
+ /**
586
+ * Sets up one or multiple capabilities in one call.
587
+ * @param capabilities A object that describes how to set capabilities.
588
+ */
589
+ setCapabilities(capabilities: Capabilities): Promise<boolean>;
590
+ /**
591
+ * Load a data source to get it ready to acquire images.
592
+ */
593
+ openSource():Promise<boolean>;
594
+ /**
595
+ * Delete the Remote Scan Object.
596
+ */
597
+ dispose(): boolean;
519
598
  }
520
599
  declare const Dynamsoft: (DWTInstall & typeof DynamsoftStatic);
521
600
  //declare const Dynamsoft: (typeof DynamsoftStatic);
@@ -1,5 +1,6 @@
1
1
  import { DynamsoftEnumsDWT } from "./Dynamsoft.Enum";
2
2
  import { WebTwainEdit } from "./WebTwain.Edit";
3
+ import { WebTwain } from "./WebTwain";
3
4
 
4
5
  export interface WebTwainAcquire extends WebTwainEdit {
5
6
  /**
@@ -84,9 +85,10 @@ export interface WebTwainAcquire extends WebTwainEdit {
84
85
  ): boolean | void;
85
86
  /**
86
87
  * Bring up the Source Selection User Interface (UI) for the user to choose a data source.
88
+ * @param deviceType The device type. Added the parameter deviceType in Dynamic Web TWAIN 18
87
89
  */
88
- SelectSourceAsync(
89
- ): Promise<boolean>;
90
+ SelectSourceAsync(deviceType?: DynamsoftEnumsDWT.EnumDWT_DeviceType | number
91
+ ): Promise<number>;
90
92
  /**
91
93
  * Select a data source by its index.
92
94
  * @param index The index of the data source.
@@ -97,6 +99,22 @@ export interface WebTwainAcquire extends WebTwainEdit {
97
99
  * @param index The index of the data source.
98
100
  */
99
101
  SelectSourceByIndexAsync(index: number): Promise<boolean>;
102
+ /**
103
+ * Return all available devices (scanners, eSCL scanners, etc.) for the device type (if specified)
104
+ * @param deviceType The device type
105
+ * @param refresh Default value: false
106
+ */
107
+ GetDevicesAsync(deviceType?: DynamsoftEnumsDWT.EnumDWT_DeviceType | number, refresh?: boolean): Promise<Device[]>;
108
+ /**
109
+ * Select the device to use for scanning
110
+ * @param device the device
111
+ */
112
+ SelectDeviceAsync(device: Device): Promise< boolean>;
113
+ /**
114
+ * Scan documents into another DWObject control. eSCL is not supported.
115
+ * @param deviceConfiguration The device configuration
116
+ */
117
+ AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
100
118
  /**
101
119
  * Sets a timer which stops the data source opening process once it expires.
102
120
  * @param duration Define the duration of the timer (in milliseconds).
@@ -635,6 +653,10 @@ export interface DeviceConfiguration {
635
653
  * Whether to close the built-in User Interface after aquisition. Only valid when {IfShowUI} is true.
636
654
  */
637
655
  IfDisableSourceAfterAcquire?: boolean;
656
+ /**
657
+ * Whether to close source after aquisition.
658
+ */
659
+ IfCloseSourceAfterAcquire?:boolean;
638
660
  /**
639
661
  * Whether to retrieve information about the image after it's transferred.
640
662
  */
@@ -646,7 +668,7 @@ export interface DeviceConfiguration {
646
668
  /**
647
669
  * How much extended information is retrieved. Only valid when {IfGetExtImageInfo} is true.
648
670
  */
649
- extendedImageInfoQueryLevel?: number;
671
+ extendedImageInfoQueryLevel?: DynamsoftEnumsDWT.EnumDWT_ExtImageInfo | number;
650
672
  /**
651
673
  * Whether to simulate the manufacturer's UI inside the client-side browser (only effective when IfShowUI is true).
652
674
  * (Added in 16.2)
@@ -1067,3 +1089,15 @@ export interface CapabilitySetup {
1067
1089
  */
1068
1090
  exception?: string;
1069
1091
  }
1092
+ export interface ServiceInfo {
1093
+ server: string; // same to serverUrl, user input
1094
+ attrs?: any;
1095
+ }
1096
+ export interface Device {
1097
+ name: string;
1098
+ displayName: string;
1099
+ deviceType: DynamsoftEnumsDWT.EnumDWT_DeviceType;
1100
+ serviceInfo?: ServiceInfo;
1101
+ deviceInfo?: any;
1102
+ acquireImage(deviceConfiguration: DeviceConfiguration | null, sendTo: WebTwain): Promise< boolean>;
1103
+ }
@@ -67,6 +67,10 @@ export interface WebTwainViewer extends WebTwainAcquire {
67
67
  */
68
68
  Zoom: number;
69
69
  Viewer: DynamsoftViewer;
70
+ /**
71
+ * Delete the web-twain Object.
72
+ */
73
+ dispose(): Promise<void>;
70
74
  }
71
75
  export interface DynamsoftViewer {
72
76
  /**
@@ -233,7 +237,7 @@ export interface DynamsoftViewer {
233
237
  * [Scope] Main viewer
234
238
  * [Description] Refresh the viewer, the effect is shown in "onPageRender" event
235
239
  */
236
- render(): void;
240
+ render(): boolean;
237
241
  /**
238
242
  * [Scope] Global
239
243
  * [Description] Create an image editor with specified settings.
@@ -255,7 +259,7 @@ export interface DynamsoftViewer {
255
259
  * @param location Whether to put the element in the main viewer. Allowed values are left, top, right, bottom.
256
260
  * @param ifFull Whether to display the element in full screen.
257
261
  */
258
- createCustomElement(element: HTMLDivElement, location?: string, ifFull?: boolean): CustomElement;
262
+ createCustomElement(element: HTMLDivElement | HTMLElement, location?: string, ifFull?: boolean): CustomElement;
259
263
  /**
260
264
  * [Scope] Global
261
265
  * [Description] Create a document editor with specified settings.
@@ -337,17 +341,17 @@ export interface DynamsoftViewer {
337
341
  * [Description] Create a Dynamsoft Viewer instance and bind it to the WebTwain instance.
338
342
  * @param element Specify an HTML element to create the viewer.
339
343
  */
340
- bind(element: HTMLDivElement, documentViewerTemplate?: DocumentViewerTemplate): boolean;
344
+ bind(element: HTMLDivElement | HTMLElement, documentViewerTemplate?: DocumentViewerTemplate): boolean;
341
345
  /**
342
346
  * [Scope] Main viewer
343
347
  * [Description] Show the viewer (Main viewer, ImageEditor, ThumbnailViewer, CustomElement).
344
348
  */
345
- show(): void;
349
+ show(): boolean;
346
350
  /**
347
351
  * [Scope] Main viewer
348
352
  * [Description] Hide the viewer(Main viewer, ImageEditor, ThumbnailViewer, CustomElement).
349
353
  */
350
- hide(): void;
354
+ hide(): boolean;
351
355
  /**
352
356
  * [Scope] Main viewer
353
357
  * [Description] Unbind the viewer.
@@ -374,7 +378,7 @@ export interface EditorSettings {
374
378
  * [Scope] ImageEditor viewer
375
379
  * [Description] Specify an HTML Element.
376
380
  */
377
- element?: HTMLDivElement;
381
+ element?: HTMLDivElement | HTMLElement;
378
382
  /**
379
383
  * [Scope] ImageEditor viewer
380
384
  * [Description] The width of the image editor viewer. The default value is "100%".
@@ -581,17 +585,17 @@ export interface CustomElement {
581
585
  * [Scope] Current Element
582
586
  * [Description] Show the element.
583
587
  */
584
- show(): void;
588
+ show(): boolean;
585
589
  /**
586
590
  * [Scope] Current Element
587
591
  * [Description] Hide the element.
588
592
  */
589
- hide(): void;
593
+ hide(): boolean;
590
594
  /**
591
595
  * [Scope] Current Element
592
596
  * [Description] Delete the element.
593
597
  */
594
- dispose(): void;
598
+ dispose(): boolean;
595
599
 
596
600
  element?: any;
597
601
  }
@@ -600,12 +604,12 @@ export interface ImageEditor {
600
604
  * [Scope] ImageEditor viewer
601
605
  * [Description] Show the ImageEditor viewer.
602
606
  */
603
- show(): void;
607
+ show(): boolean;
604
608
  /**
605
609
  * [Scope] ImageEditor viewer
606
610
  * [Description] Hide the ImageEditor viewer.
607
611
  */
608
- hide(): void;
612
+ hide(): boolean;
609
613
  /**
610
614
  * [Scope] ImageEditor viewer
611
615
  * [Description] Delete the ImageEditor viewer.
@@ -617,17 +621,17 @@ export interface ThumbnailViewer {
617
621
  * [Scope] Thumbnail viewer
618
622
  * [Description] Show the Thumbnail viewer.
619
623
  */
620
- show(): void;
624
+ show(): boolean;
621
625
  /**
622
626
  * [Scope] Thumbnail viewer
623
627
  * [Description] Hide the Thumbnail viewer.
624
628
  */
625
- hide(): void;
629
+ hide(): boolean;
626
630
  /**
627
631
  * [Scope] Thumbnail viewer
628
632
  * [Description] Delete the Thumbnail viewer.
629
633
  */
630
- dispose(): void;
634
+ dispose(): boolean;
631
635
  /**
632
636
  * [Scope] Thumbnail viewer
633
637
  * [Description] Set the view mode.
@@ -788,17 +792,17 @@ export interface DocumentEditor {
788
792
  * [Scope] DocumentEditor viewer
789
793
  * [Description] Show the DocumentEditor viewer.
790
794
  */
791
- show(): void;
795
+ show(): boolean;
792
796
  /**
793
797
  * [Scope] DocumentEditor viewer
794
798
  * [Description] Hide the DocumentEditor viewer.
795
799
  */
796
- hide(): void;
800
+ hide(): boolean;
797
801
  /**
798
802
  * [Scope] DocumentEditor viewer
799
803
  * [Description] Delete the DocumentEditor viewer.
800
804
  */
801
- dispose(): void;
805
+ dispose(): boolean;
802
806
  }
803
807
 
804
808
  export interface ViewMode {
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * Copyright 2022, Dynamsoft Corporation
16
16
  * Author: Dynamsoft Support Team
17
- * Version: 17.3
17
+ * Version: 18.0.2
18
18
  */
19
19
  import Dynamsoft from "./Dynamsoft";
20
20
  export default Dynamsoft;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "dwt",
3
- "version": "17.3.4",
3
+ "version": "18.0.2",
4
4
  "author": {
5
5
  "name": "Dynamsoft",
6
6
  "url": "https://www.dynamsoft.com"
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE.txt",
9
9
  "dependencies": {
10
- "dynamsoft-javascript-barcode": "8.8.7"
10
+ "dynamsoft-javascript-barcode": "9.2.13"
11
11
  },
12
12
  "description": "Dynamic Web TWAIN is a TWAIN/ICA/SANE-based scanning SDK software specifically designed for web applications running on Windows/macOS/Linux. With just a few lines of code, you can develop robust applications to scan documents from TWAIN/ICA/SANE-compatible scanners, edit the scanned images and save them to a local/server file system or document repository.",
13
13
  "devDependencies": {},