ms-types 0.9.16 → 0.9.18
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 +1 -1
- package/types/cloud.d.ts +1 -1
- package/types/index.d.ts +3 -3
- package/types/pip.d.ts +1 -6
- package/types/zh/index.d.ts +1 -1
- package/types/zh//344/272/221/346/216/247/346/250/241/345/235/227.d.ts +1 -1
- package/types/zh//346/202/254/346/265/256/347/252/227/346/250/241/345/235/227.d.ts +2 -7
package/package.json
CHANGED
package/types/cloud.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare namespace cloud {
|
|
|
8
8
|
* @param url 完整 ws:// 或 wss:// 云控地址。
|
|
9
9
|
* @param deviceNo 可选设备编号,不传时沿用当前保存的设备编号。
|
|
10
10
|
* @returns URL 校验通过且连接请求已提交时返回 true。
|
|
11
|
-
* @description
|
|
11
|
+
* @description 只能在主脚本上下文调用;只影响当前运行期云控连接,不会写入设置页的持久化云控配置。
|
|
12
12
|
* @example
|
|
13
13
|
* const accepted = cloud.connect("wss://example.com/control", "device-001");
|
|
14
14
|
*/
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="action.d.ts" />
|
|
2
|
-
/// <reference path="
|
|
2
|
+
/// <reference path="appleocr.d.ts" />
|
|
3
3
|
/// <reference path="cloud.d.ts" />
|
|
4
4
|
/// <reference path="config.d.ts" />
|
|
5
5
|
/// <reference path="cryptoUtils.d.ts" />
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
/// <reference path="mysql.d.ts" />
|
|
17
17
|
/// <reference path="netCard.d.ts" />
|
|
18
18
|
/// <reference path="node.d.ts" />
|
|
19
|
-
/// <reference path="
|
|
19
|
+
/// <reference path="paddleocr.d.ts" />
|
|
20
20
|
/// <reference path="pip.d.ts" />
|
|
21
21
|
/// <reference path="system.d.ts" />
|
|
22
22
|
/// <reference path="thread.d.ts" />
|
|
23
|
-
/// <reference path="
|
|
23
|
+
/// <reference path="tomatoocr.d.ts" />
|
|
24
24
|
/// <reference path="tts.d.ts" />
|
|
25
25
|
/// <reference path="ui.d.ts" />
|
|
26
26
|
/// <reference path="utils.d.ts" />
|
package/types/pip.d.ts
CHANGED
|
@@ -20,14 +20,9 @@ declare namespace pip {
|
|
|
20
20
|
* @returns true代表已提交切换请求
|
|
21
21
|
*/
|
|
22
22
|
function switchToCustomMode(): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* 关闭悬浮窗
|
|
25
|
-
* @returns true代表已提交关闭请求
|
|
26
|
-
*/
|
|
27
|
-
function closeWindow(): boolean;
|
|
28
23
|
/**
|
|
29
24
|
* 设置日志模式或自定义模式的悬浮窗内容尺寸
|
|
30
|
-
*
|
|
25
|
+
* 日志模式和自定义模式会分别持久化尺寸;保活模式返回 false
|
|
31
26
|
* @param width 目标内容宽度
|
|
32
27
|
* @param height 目标内容高度
|
|
33
28
|
* @returns true代表尺寸已提交,false代表当前模式不允许设置或宽高无效
|
package/types/zh/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
/// <reference path="悬浮窗模块.d.ts" />
|
|
21
21
|
/// <reference path="HID模块.d.ts" />
|
|
22
22
|
/// <reference path="HTTP模块.d.ts" />
|
|
23
|
-
/// <reference path="
|
|
23
|
+
/// <reference path="MySql模块.d.ts" />
|
|
24
24
|
/// <reference path="PaddleOCR模块.d.ts" />
|
|
25
25
|
/// <reference path="YOLO模块.d.ts" />
|
|
26
26
|
/// <reference path="YOLO分类模块.d.ts" />
|
|
@@ -6,7 +6,7 @@ declare namespace $云控 {
|
|
|
6
6
|
* @param 地址 完整 ws:// 或 wss:// 云控地址。
|
|
7
7
|
* @param 设备编号 可选设备编号,不传时沿用当前保存的设备编号。
|
|
8
8
|
* @returns URL 校验通过且连接请求已提交时返回 true。
|
|
9
|
-
* @description
|
|
9
|
+
* @description 只能在主脚本上下文调用;只影响当前运行期云控连接,不会写入设置页的持久化云控配置。
|
|
10
10
|
* @example
|
|
11
11
|
* const 已提交 = $云控.连接("wss://example.com/control", "device-001");
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="全局模块.d.ts" />
|
|
2
2
|
/**
|
|
3
|
-
* 悬浮窗模块
|
|
3
|
+
* 悬浮窗模块 包含悬浮窗日志窗口的显示、模式切换、状态查询等功能
|
|
4
4
|
*/
|
|
5
5
|
declare namespace $悬浮窗 {
|
|
6
6
|
/**
|
|
@@ -24,14 +24,9 @@ declare namespace $悬浮窗 {
|
|
|
24
24
|
* @returns true代表已提交切换请求
|
|
25
25
|
*/
|
|
26
26
|
function 切换到自定义模式(): 布尔值;
|
|
27
|
-
/**
|
|
28
|
-
* 关闭悬浮窗
|
|
29
|
-
* @returns true代表已提交关闭请求
|
|
30
|
-
*/
|
|
31
|
-
function 关闭悬浮窗(): 布尔值;
|
|
32
27
|
/**
|
|
33
28
|
* 设置日志模式或自定义模式的悬浮窗内容尺寸
|
|
34
|
-
*
|
|
29
|
+
* 日志模式和自定义模式会分别持久化尺寸;保活模式返回 false
|
|
35
30
|
* @param 宽度 目标内容宽度
|
|
36
31
|
* @param 高度 目标内容高度
|
|
37
32
|
* @returns true代表尺寸已提交,false代表当前模式不允许设置或宽高无效
|