@maaxyz/maa-node 5.6.0-beta.2 → 5.6.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.
- package/dist/pipeline.d.ts +18 -21
- package/package.json +7 -7
package/dist/pipeline.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ declare global {
|
|
|
46
46
|
threshold?: MaybeArray<number, Mode>
|
|
47
47
|
order_by?: OrderByMap['TemplateMatch']
|
|
48
48
|
index?: number
|
|
49
|
-
method?:
|
|
49
|
+
method?: 10001 | 3 | 5
|
|
50
50
|
green_mask?: boolean
|
|
51
51
|
},
|
|
52
52
|
'template',
|
|
@@ -92,21 +92,17 @@ declare global {
|
|
|
92
92
|
connected?: boolean
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
type RecognitionOCR<Mode> =
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
'expected',
|
|
108
|
-
Mode
|
|
109
|
-
>
|
|
95
|
+
type RecognitionOCR<Mode> = {
|
|
96
|
+
roi?: Rect | NodeName
|
|
97
|
+
roi_offset?: Rect
|
|
98
|
+
expected?: MaybeArray<string, Mode>
|
|
99
|
+
threshold?: MaybeArray<number, Mode>
|
|
100
|
+
replace?: MaybeArray<FixedArray<string, 2>, Mode>
|
|
101
|
+
order_by?: OrderByMap['OCR']
|
|
102
|
+
index?: number
|
|
103
|
+
only_rec?: boolean
|
|
104
|
+
model?: string
|
|
105
|
+
}
|
|
110
106
|
|
|
111
107
|
type RecognitionNeuralNetworkClassify<Mode> = RequiredIfStrict<
|
|
112
108
|
{
|
|
@@ -475,11 +471,12 @@ declare global {
|
|
|
475
471
|
type Task = Recognition<ModeFragment> & Action<ModeFragment> & General<ModeFragment>
|
|
476
472
|
type StrictTask = Recognition<ModeStrict> & Action<ModeStrict> & General<ModeStrict>
|
|
477
473
|
|
|
478
|
-
type RecursiveRequired<T> =
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
474
|
+
type RecursiveRequired<T> =
|
|
475
|
+
T extends Record<string, unknown>
|
|
476
|
+
? {
|
|
477
|
+
[key in keyof T]: NonNullable<RecursiveRequired<T[key]>>
|
|
478
|
+
}
|
|
479
|
+
: T
|
|
483
480
|
|
|
484
481
|
type DumpTask = RecursiveRequired<
|
|
485
482
|
Recognition<ModeDump> & Action<ModeDump> & General<ModeDump>
|
package/package.json
CHANGED
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">= 20.0.0"
|
|
22
22
|
},
|
|
23
|
-
"version": "5.6.0
|
|
23
|
+
"version": "5.6.0",
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@maaxyz/maa-node-darwin-arm64": "5.6.0
|
|
26
|
-
"@maaxyz/maa-node-darwin-x64": "5.6.0
|
|
27
|
-
"@maaxyz/maa-node-linux-arm64": "5.6.0
|
|
28
|
-
"@maaxyz/maa-node-linux-x64": "5.6.0
|
|
29
|
-
"@maaxyz/maa-node-win32-arm64": "5.6.0
|
|
30
|
-
"@maaxyz/maa-node-win32-x64": "5.6.0
|
|
25
|
+
"@maaxyz/maa-node-darwin-arm64": "5.6.0",
|
|
26
|
+
"@maaxyz/maa-node-darwin-x64": "5.6.0",
|
|
27
|
+
"@maaxyz/maa-node-linux-arm64": "5.6.0",
|
|
28
|
+
"@maaxyz/maa-node-linux-x64": "5.6.0",
|
|
29
|
+
"@maaxyz/maa-node-win32-arm64": "5.6.0",
|
|
30
|
+
"@maaxyz/maa-node-win32-x64": "5.6.0"
|
|
31
31
|
}
|
|
32
32
|
}
|