@bettergi/types 0.0.4 → 0.0.5
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.
|
@@ -33,7 +33,11 @@ export interface ImageRegion extends Region {
|
|
|
33
33
|
* @param successAction 识别成功回调
|
|
34
34
|
* @param failAction 识别失败回调
|
|
35
35
|
*/
|
|
36
|
-
find: (
|
|
36
|
+
find: (
|
|
37
|
+
ro: RecognitionObject,
|
|
38
|
+
successAction?: (region: Region) => void,
|
|
39
|
+
failAction?: () => void
|
|
40
|
+
) => Region;
|
|
37
41
|
|
|
38
42
|
/**
|
|
39
43
|
* 在本区域内查找识别对象,返回所有找到的结果
|
|
@@ -44,7 +48,7 @@ export interface ImageRegion extends Region {
|
|
|
44
48
|
*/
|
|
45
49
|
findMulti: (
|
|
46
50
|
ro: RecognitionObject,
|
|
47
|
-
successAction?: () =>
|
|
51
|
+
successAction?: (regions: List<Region>) => void,
|
|
48
52
|
failAction?: () => void
|
|
49
53
|
) => List<Region>;
|
|
50
54
|
}
|
|
@@ -121,9 +121,10 @@ declare global {
|
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* 鼠标滚动
|
|
124
|
+
* @param scrollAmountInClicks - 滚动的点击数 正数向上滚动,负数向下滚动
|
|
124
125
|
* @since 0.44.5
|
|
125
126
|
*/
|
|
126
|
-
function verticalScroll(): void;
|
|
127
|
+
function verticalScroll(scrollAmountInClicks: number): void;
|
|
127
128
|
|
|
128
129
|
/**
|
|
129
130
|
* 捕获当前游戏窗口内容
|