ms-types 0.9.27 → 0.9.29
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/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
---@meta
|
|
1
|
+
---@meta cv
|
|
2
2
|
---@class OpenCV
|
|
3
3
|
local _OpenCV = {}
|
|
4
4
|
|
|
5
|
-
--- OpenCV Mat 句柄模块;require("cv")
|
|
5
|
+
--- OpenCV Mat 句柄模块;require("cv")。方法与常量对齐 JS `cv` 运行时导出。
|
|
6
6
|
|
|
7
7
|
--- absdiff
|
|
8
8
|
---@param ... any
|
|
@@ -724,6 +724,5 @@ function _OpenCV.warpPerspective(...) return nil end
|
|
|
724
724
|
---@return any
|
|
725
725
|
function _OpenCV.zeros(...) return nil end
|
|
726
726
|
|
|
727
|
-
package.loaded['opencv'] = _OpenCV
|
|
728
727
|
package.loaded['cv'] = _OpenCV
|
|
729
728
|
return _OpenCV
|
package/types/lua/dotocr.lua
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
---@class DotOCR
|
|
3
3
|
local _DotOCR = {}
|
|
4
4
|
|
|
5
|
-
--- 点阵 OCR;require("dotocr")
|
|
5
|
+
--- 点阵 OCR;require("dotocr")
|
|
6
6
|
|
|
7
7
|
--- loadFont
|
|
8
8
|
---@param fontPath string
|
|
@@ -42,5 +42,4 @@ function _DotOCR.recognizeAbs(fontId, input, x, y, ex, ey, confidenceThreshold)
|
|
|
42
42
|
function _DotOCR.findTextAbs(fontId, input, targetTexts, x, y, ex, ey, confidenceThreshold, exactMatch) return {} end
|
|
43
43
|
|
|
44
44
|
package.loaded['dotocr'] = _DotOCR
|
|
45
|
-
package.loaded['dotOcr'] = _DotOCR
|
|
46
45
|
return _DotOCR
|
package/types/lua/node.lua
CHANGED
|
@@ -20,16 +20,23 @@ local _Node = {}
|
|
|
20
20
|
---@field label string 节点标签
|
|
21
21
|
---@field type string 节点类型
|
|
22
22
|
---@field value string 节点值
|
|
23
|
+
---@field placeholderValue string 输入框占位文字
|
|
23
24
|
---@field title string 节点名称
|
|
24
25
|
---@field visible boolean 是否可见
|
|
25
26
|
---@field enabled boolean 是否启用
|
|
26
|
-
---@field accessible boolean 是否可访问
|
|
27
|
-
---@field selected boolean 是否选中
|
|
28
27
|
---@field bounds NodeBounds 节点边界
|
|
29
28
|
---@field depth integer 节点深度
|
|
30
29
|
---@field index integer 节点索引
|
|
31
30
|
---@field parentId string 父节点ID
|
|
32
31
|
---@field childCount integer 子节点数量
|
|
32
|
+
---@field hittable fun(self: NodeInfo): boolean 当前是否可点击
|
|
33
|
+
---@field tap fun(self: NodeInfo): boolean 单击
|
|
34
|
+
---@field doubleTap fun(self: NodeInfo): boolean 双击
|
|
35
|
+
---@field press fun(self: NodeInfo, duration: integer|nil): boolean 长按,默认 500ms
|
|
36
|
+
---@field scrollToVisible fun(self: NodeInfo): boolean 滚到可见
|
|
37
|
+
---@field clearInput fun(self: NodeInfo): boolean 清空输入
|
|
38
|
+
---@field input fun(self: NodeInfo, text: string): boolean 追加输入
|
|
39
|
+
---@field setValue fun(self: NodeInfo, text: string): boolean 设置值
|
|
33
40
|
---@field clickCenter fun(self: NodeInfo, duration: integer|nil): boolean 点击中心
|
|
34
41
|
---@field clickRandom fun(self: NodeInfo, duration: integer|nil): boolean 点击随机位置
|
|
35
42
|
---@field parent fun(self: NodeInfo): NodeInfo|nil 父节点
|
|
@@ -52,6 +59,9 @@ local _Node = {}
|
|
|
52
59
|
---@field titleMatch fun(self: NodeSelector, match: string): NodeSelector 设置名称匹配
|
|
53
60
|
---@field identifier fun(self: NodeSelector, identifier: string): NodeSelector 设置标识符
|
|
54
61
|
---@field identifierMatch fun(self: NodeSelector, match: string): NodeSelector 设置标识符匹配
|
|
62
|
+
---@field id fun(self: NodeSelector, id: string): NodeSelector 按节点 ID 筛选
|
|
63
|
+
---@field placeholderValue fun(self: NodeSelector, placeholderValue: string): NodeSelector 按占位文字筛选
|
|
64
|
+
---@field placeholderValueMatch fun(self: NodeSelector, match: string): NodeSelector 按占位文字匹配筛选
|
|
55
65
|
---@field type fun(self: NodeSelector, typetitle: string): NodeSelector 设置类型
|
|
56
66
|
---@field typeMatch fun(self: NodeSelector, match: string): NodeSelector 设置类型匹配
|
|
57
67
|
---@field value fun(self: NodeSelector, value: string): NodeSelector 设置值
|
package/types/lua/yolocls.lua
CHANGED
package/types/lua/alias/cv.lua
DELETED