assistsx-js 0.0.2037 → 0.0.2038
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/dist/AssistsXAsync.d.ts +1 -2
- package/dist/AssistsXAsync.js +1 -1
- package/package.json +1 -1
- package/src/AssistsXAsync.ts +16 -15
package/dist/AssistsXAsync.d.ts
CHANGED
|
@@ -98,8 +98,7 @@ export declare class AssistsXAsync {
|
|
|
98
98
|
* @param param0 识别参数
|
|
99
99
|
* @returns 截图识别结果
|
|
100
100
|
*/
|
|
101
|
-
static recognizeTextInScreenshot(
|
|
102
|
-
targetText: string;
|
|
101
|
+
static recognizeTextInScreenshot(targetText: string, { rotationDegrees, overlayHiddenScreenshotDelayMillis, restoreOverlay, region, timeout, }: {
|
|
103
102
|
rotationDegrees?: number;
|
|
104
103
|
overlayHiddenScreenshotDelayMillis?: number;
|
|
105
104
|
restoreOverlay?: boolean;
|
package/dist/AssistsXAsync.js
CHANGED
|
@@ -124,7 +124,7 @@ export class AssistsXAsync {
|
|
|
124
124
|
* @param param0 识别参数
|
|
125
125
|
* @returns 截图识别结果
|
|
126
126
|
*/
|
|
127
|
-
static async recognizeTextInScreenshot(
|
|
127
|
+
static async recognizeTextInScreenshot(targetText, { rotationDegrees, overlayHiddenScreenshotDelayMillis, restoreOverlay = true, region, timeout, }) {
|
|
128
128
|
const response = await this.asyncCall(CallMethod.recognizeTextInScreenshot, {
|
|
129
129
|
args: {
|
|
130
130
|
targetText,
|
package/package.json
CHANGED
package/src/AssistsXAsync.ts
CHANGED
|
@@ -206,21 +206,22 @@ export class AssistsXAsync {
|
|
|
206
206
|
* @param param0 识别参数
|
|
207
207
|
* @returns 截图识别结果
|
|
208
208
|
*/
|
|
209
|
-
public static async recognizeTextInScreenshot(
|
|
210
|
-
targetText,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
209
|
+
public static async recognizeTextInScreenshot(
|
|
210
|
+
targetText: string,
|
|
211
|
+
{
|
|
212
|
+
rotationDegrees,
|
|
213
|
+
overlayHiddenScreenshotDelayMillis,
|
|
214
|
+
restoreOverlay = true,
|
|
215
|
+
region,
|
|
216
|
+
timeout,
|
|
217
|
+
}: {
|
|
218
|
+
rotationDegrees?: number;
|
|
219
|
+
overlayHiddenScreenshotDelayMillis?: number;
|
|
220
|
+
restoreOverlay?: boolean;
|
|
221
|
+
region?: RecognizeTextRegion;
|
|
222
|
+
timeout?: number;
|
|
223
|
+
}
|
|
224
|
+
): Promise<RecognizeTextInScreenshotResult> {
|
|
224
225
|
const response = await this.asyncCall(
|
|
225
226
|
CallMethod.recognizeTextInScreenshot,
|
|
226
227
|
{
|