From 0b61ea2b690c30bb60f04755e351787eb1012cf4 Mon Sep 17 00:00:00 2001 From: DMGithubPublisher Date: Sat, 7 Jun 2025 07:30:22 +0800 Subject: [PATCH] update to internal commit b99a7ea9 --- api/document-scanner.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/document-scanner.md b/api/document-scanner.md index 1fbb98f..a2012ae 100644 --- a/api/document-scanner.md +++ b/api/document-scanner.md @@ -257,7 +257,7 @@ interface DocumentResultViewConfig { const documentScanner = new Dynamsoft.DocumentScanner({ license: "YOUR_LICENSE_KEY_HERE", // Replace this with your actual license key resultViewConfig: { - onDone: async (result) => + onDone: async (result) => { const canvas = result.correctedImageResult.toCanvas(); resultContainer.appendChild(canvas); @@ -332,14 +332,14 @@ Create a scan region with a height-to-width ratio of 3:2, translated upwards by ```javascript scanRegion { ratio: { - width: 2; - height: 3; - }; - regionBottomMargin: 20; + width: 2, + height: 3, + }, + regionBottomMargin: 20, style: { - strokeWidth: 3; - strokeColor: "green"; - }; + strokeWidth: 3, + strokeColor: "green", + }, } ``` @@ -354,7 +354,7 @@ A simplified configuration type for toolbar buttons. export type ToolbarButtonConfig = Pick<"icon" | "label" | "isHidden">; ``` -#### Properties +#### Properties | Property | Type | Description | | ---------- | -------------------- | ----------------------------------- | @@ -448,4 +448,4 @@ interface EngineResourcePaths { "ddv"?: string | PathInfo; "dwt"?: string | DwtInfo; } -``` \ No newline at end of file +```