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.
- package/README.md +19 -19
- package/dist/dist/DynamsoftServiceSetup-arm64.deb +0 -0
- package/dist/dist/DynamsoftServiceSetup.deb +0 -0
- package/dist/dist/DynamsoftServiceSetup.msi +0 -0
- package/dist/dist/DynamsoftServiceSetup.pkg +0 -0
- package/dist/dist/DynamsoftServiceSetup.rpm +0 -0
- package/dist/dynamsoft.webtwain.min.js +82 -45
- package/dist/dynamsoft.webtwain.min.mjs +182 -144
- package/dist/src/dynamsoft.lts.js +10 -10
- package/dist/src/dynamsoft.webtwain.css +138 -21
- package/dist/src/dynamsoft.webtwain.viewer.css +3 -3
- package/dist/src/dynamsoft.webtwain.viewer.js +3 -3
- package/dist/types/Addon.Webcam.d.ts +2 -2
- package/dist/types/Dynamsoft.d.ts +4 -4
- package/dist/types/RemoteScan.d.ts +1 -1
- package/dist/types/WebTwain.Acquire.d.ts +1 -1
- package/dist/types/WebTwain.Util.d.ts +1 -1
- package/package.json +2 -1
|
@@ -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
|
|
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
|
-
|
|
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: (
|
|
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: (
|
|
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: (
|
|
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
|
|
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
|
|
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>;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dwt",
|
|
3
|
-
"version": "18.5.
|
|
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": {},
|