dwt 18.5.0 → 18.5.1

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.
@@ -35,12 +35,12 @@ export interface Webcam {
35
35
  CloseSource(): boolean;
36
36
  /**
37
37
  * Start to play the video stream from the current camera.
38
- * @param DWObject Specify a WebTwain instance to show the video.
38
+ * @param DWTObject Specify a WebTwain instance to show the video.
39
39
  * @param quality Specify the quality of the video.
40
40
  * @param frameDidShow A callback function that is triggered after each video frame is shown.
41
41
  */
42
42
  PlayVideo(
43
- DWObject: WebTwain,
43
+ DWTObject: WebTwain,
44
44
  quality: number,
45
45
  frameDidShow?: () => void
46
46
  ): boolean;
@@ -247,8 +247,8 @@ export interface DWTPro {
247
247
  host: string,
248
248
  port: string | number,
249
249
  portSSL: string | number,
250
- successCallBack: (DWObject: WebTwain) => void,
251
- failureCallBack: ({code: number, message: string}) => void): void;
250
+ successCallBack: (DWTObject: WebTwain) => void,
251
+ failureCallBack: (error: {code: number, message: string}) => void): void;
252
252
  /**
253
253
  * Create a WebTwain instance with UI.
254
254
  * @param ContainerId Specify the HTML element (typically of the type HTMLDivElement) to hold the UI.
@@ -258,14 +258,14 @@ export interface DWTPro {
258
258
  * @param successCallback A callback function that is executed if the request succeeds.
259
259
  * @param failureCallback A callback function that is executed if the request fails.
260
260
  */
261
- CreateDWTObject(ContainerId: string, successCallBack: (DWObject: WebTwain) => void, failureCallBack: ({code: number, message: string}) => void): void;
261
+ CreateDWTObject(ContainerId: string, successCallBack: (DWTObject: WebTwain) => void, failureCallBack: (error: {code: number, message: string}) => void): void;
262
262
  /**
263
263
  * Create a WebTwain instance without UI.
264
264
  * @param WebTwainId Specify the Id of the instance.
265
265
  * @param successCallback A callback function that is executed if the request succeeds.
266
266
  * @param failureCallback A callback function that is executed if the request fails.
267
267
  */
268
- CreateDWTObjectEx(dwtInitialConfig: DWTInitialConfig, successCallBack: (DWObject: WebTwain) => void, failureCallBack: (error: {code: number, message: string}) => void): void;
268
+ CreateDWTObjectEx(dwtInitialConfig: DWTInitialConfig, successCallBack: (DWTObject: WebTwain) => void, failureCallBack: (error: {code: number, message: string}) => void): void;
269
269
  /**
270
270
  * Define the display info.
271
271
  */
@@ -23,7 +23,7 @@ export interface RemoteScanObject {
23
23
  */
24
24
  getDevices(deviceQueryParams?:{serviceInfo?:ServiceInfo, deviceType?: DynamsoftEnumsDWT.EnumDWT_DeviceType | number, refresh?:boolean}): Promise<Device[]>;
25
25
  /**
26
- * Scan documents into another DWObject control. Supports eSCL scanners and all other scanners with limited capabilities.
26
+ * Scan documents into another DWTObject control. Supports eSCL scanners and all other scanners with limited capabilities.
27
27
  * @param device the device
28
28
  * @param deviceConfiguration The device configuration
29
29
  */
@@ -124,7 +124,7 @@ export interface WebTwainAcquire extends WebTwainEdit {
124
124
  */
125
125
  SelectDeviceAsync(device: Device): Promise< boolean>;
126
126
  /**
127
- * Scan documents into another DWObject control. eSCL is not supported.
127
+ * Scan documents into another DWTObject control. eSCL is not supported.
128
128
  * @param deviceConfiguration The device configuration
129
129
  */
130
130
  AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
@@ -134,7 +134,7 @@ export interface OutputInfo {
134
134
  /**
135
135
  * Path of the image if it's transferred to the disk.
136
136
  */
137
- Path?: string;
137
+ path?: string;
138
138
  /**
139
139
  * Information about the image.
140
140
  */
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "dwt",
3
- "version": "18.5.0",
3
+ "version": "18.5.1",
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-core": "*"
10
11
  },
11
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.",
12
13
  "devDependencies": {},