dwt 19.1.0 → 19.2.0

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.
@@ -56,15 +56,15 @@ export interface RemoteScanObject {
56
56
  /**
57
57
  * @param forceRefresh Default value: false.
58
58
  */
59
- getDynamsoftService(forceRefresh?: boolean): Promise<ServiceInfo[]>;
59
+ getServices(forceRefresh?: boolean): Promise<ServiceInfo[]>;
60
60
  /**
61
61
  * Set the default dynamsoftService for storing the data
62
62
  */
63
- setDefaultDynamsoftService(serviceInfo:ServiceInfo):Promise<void>;
63
+ setDefaultService(serviceInfo:ServiceInfo):Promise<void>;
64
64
  /**
65
65
  * Get the default dynamsoftService.
66
66
  */
67
- getDefaultDynamsoftService():ServiceInfo|null;
67
+ getDefaultService():ServiceInfo|null;
68
68
  /**
69
69
  * Get image(s) form dynamsoftService.
70
70
  * @param indices Specify the image(s).
@@ -355,6 +355,10 @@ export interface WebTwainAcquire extends WebTwainEdit {
355
355
  * Return the value of the top edge of the current image frame (in Unit).
356
356
  */
357
357
  readonly ImageLayoutFrameTop: number;
358
+ /**
359
+ * Return the frame number of the current image.
360
+ */
361
+ readonly ImageLayoutFrameNumber: number;
358
362
  /**
359
363
  * Return the document number of the current image.
360
364
  */
@@ -32,6 +32,10 @@ export interface WebTwainBuffer extends WebTwainIO {
32
32
  * @param tag The tag used as the filter.
33
33
  */
34
34
  FilterImagesByTag(tag: string): boolean;
35
+ /**
36
+ * Stop filtering images by tag.
37
+ */
38
+ ClearFilter(): boolean;
35
39
  /**
36
40
  * Return the pixel bit depth of the specified image.
37
41
  * @param index Specify the image.
@@ -28,7 +28,7 @@ export interface WebTwainEdit extends WebTwainBuffer {
28
28
  * @param index Specify the image.
29
29
  * @param value Specify the value of contrast.
30
30
  */
31
- ChangeContrastAsnyc(
31
+ ChangeContrastAsync(
32
32
  index: number,
33
33
  value: number
34
34
  ): Promise<boolean>;
@@ -233,9 +233,9 @@ export interface DynamsoftViewer {
233
233
  y: string; //Default is "center", values: "top", "bottom", "center"
234
234
  }
235
235
  /**
236
- * Whether the viewer removes the focus border after selecting with the Tab key. Default value: true.
236
+ * Whether the viewer displays the focus border after selecting with the Tab key. Default value: false.
237
237
  */
238
- disableFocusOutline: boolean; // default value: true
238
+ focusOutlineEnabled: boolean; // default value: false
239
239
  /**
240
240
  * [Scope] Main viewer
241
241
  * [Description] Return the index of the next image of the currently selected image.
@@ -1,9 +1,4 @@
1
1
  // Project: https://www.dynamsoft.com/products/webtwain_overview.aspx
2
- // Definitions by: Xiao Ling <https://github.com/yushulx>
3
- // Josh Hall <https://github.com/jbh>
4
- // Lincoln Hu <https://github.com/lincoln2018>
5
- // Tom Kent <https://github.com/Tom-Dynamsoft>
6
- // Dave Sueltenfuss <https://github.com/dsueltenfuss>
7
2
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
8
3
  // TypeScript Version: 3.1
9
4
 
@@ -13,7 +8,7 @@
13
8
  *
14
9
  * Copyright 2025, Dynamsoft Corporation
15
10
  * Author: Dynamsoft Support Team
16
- * Version: 19.0
11
+ * Version: 19.2
17
12
  */
18
13
  import Dynamsoft from "./Dynamsoft";
19
14
  export default Dynamsoft;
package/dwt-openapi.yaml CHANGED
@@ -4229,6 +4229,11 @@ components:
4229
4229
  will be locked, if the scanner is a twain source, the source will be
4230
4230
  opened automatically. Recommend to set it as false, avoid your
4231
4231
  papers may be scanned by others.
4232
+ requestFocusForScanningUI:
4233
+ type: boolean
4234
+ default: true
4235
+ description: >-
4236
+ If true, the scanner UI will be brought to the top and get focus.
4232
4237
  scannerFailureTimeout:
4233
4238
  type: integer
4234
4239
  format: int32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dwt",
3
- "version": "19.1.0",
3
+ "version": "19.2.0",
4
4
  "author": {
5
5
  "name": "Dynamsoft",
6
6
  "url": "https://www.dynamsoft.com"