From 9976729950dcd523184dec2999bef209c6e5f719 Mon Sep 17 00:00:00 2001 From: Tom Kent Date: Fri, 28 Aug 2020 10:52:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#47045=20[dwt=2016.?= =?UTF-8?q?1.1]=20Adding=20a=20few=20missing=20definitions=20by=20@Tom-Dyn?= =?UTF-8?q?amsoft?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update to 16.1 * add back v12~v14 * fix wrong APIs * fix grammar err * adding a few missing definitions --- types/dwt/Dynamsoft.d.ts | 4 ++++ types/dwt/WebTwain.Buffer.d.ts | 2 +- types/dwt/WebTwain.Viewer.d.ts | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/types/dwt/Dynamsoft.d.ts b/types/dwt/Dynamsoft.d.ts index c1dac2416e..ecb6490bc8 100644 --- a/types/dwt/Dynamsoft.d.ts +++ b/types/dwt/Dynamsoft.d.ts @@ -384,6 +384,10 @@ export interface WebTwainEnv { * Remove and destroy all WebTwain instances. */ Unload(): void; + /** + * Whether to download the wasm for Camera Addon to use on initialization. + */ + UseCameraAddonWasm: boolean; /** * Whether to use the library in Local-Service mode or WASM mode. */ diff --git a/types/dwt/WebTwain.Buffer.d.ts b/types/dwt/WebTwain.Buffer.d.ts index cb92a7873e..3a0e7cee2a 100644 --- a/types/dwt/WebTwain.Buffer.d.ts +++ b/types/dwt/WebTwain.Buffer.d.ts @@ -212,7 +212,7 @@ export interface WebTwainBuffer extends WebTwainIO { * [Deprecation] Return how many images are selected. * [Alternative] Read the length of SelectedImagesIndices instead. */ - readonly SelectedImagesCount: number; + SelectedImagesCount: number; /** * Return the indices of the selected images. */ diff --git a/types/dwt/WebTwain.Viewer.d.ts b/types/dwt/WebTwain.Viewer.d.ts index 5ef52c95f1..7c9e7b9ae5 100644 --- a/types/dwt/WebTwain.Viewer.d.ts +++ b/types/dwt/WebTwain.Viewer.d.ts @@ -123,6 +123,10 @@ export interface DynamsoftViewer { name: string, className: string ): boolean; + /** + * Return or set the margin between two images or the margin between one side of an image and the border of the viewer. + */ + imageMargin: number; /** * The mode of operation. Allowed values are 0(no selection, cursor is pointer), 1 (seleciton, cursor is crosshair) */