ms-types 0.3.7 → 0.3.9
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
package/types/media.d.ts
CHANGED
|
@@ -87,4 +87,15 @@ declare namespace media {
|
|
|
87
87
|
* }
|
|
88
88
|
*/
|
|
89
89
|
function playMp3WaitEnd(path: string, loop: boolean): boolean;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 查询MP3音乐是否正在播放
|
|
93
|
+
* @returns 是否正在播放
|
|
94
|
+
* @example
|
|
95
|
+
* const playing = media.isMp3Playing()
|
|
96
|
+
* if (playing) {
|
|
97
|
+
* logi("正在播放")
|
|
98
|
+
* }
|
|
99
|
+
*/
|
|
100
|
+
function isMp3Playing(): boolean;
|
|
90
101
|
}
|
package/types/node.d.ts
CHANGED
|
@@ -37,6 +37,10 @@ declare interface NodeBoundsInfo {
|
|
|
37
37
|
|
|
38
38
|
declare interface NodeInfo {
|
|
39
39
|
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* 节点标识符
|
|
42
|
+
*/
|
|
43
|
+
identifier: string;
|
|
40
44
|
/**
|
|
41
45
|
* 节点标签
|
|
42
46
|
*/
|
|
@@ -185,6 +189,18 @@ declare class NodeSelector {
|
|
|
185
189
|
* @returns 节点选择器
|
|
186
190
|
*/
|
|
187
191
|
titleMatch(match: string): NodeSelector;
|
|
192
|
+
/**
|
|
193
|
+
* 获取节点标识符
|
|
194
|
+
* @param identifier 节点标识符
|
|
195
|
+
* @returns 节点选择器
|
|
196
|
+
*/
|
|
197
|
+
identifier(identifier: string): NodeSelector;
|
|
198
|
+
/**
|
|
199
|
+
* 获取节点标识符匹配
|
|
200
|
+
* @param match 匹配字符串
|
|
201
|
+
* @returns 节点选择器
|
|
202
|
+
*/
|
|
203
|
+
identifierMatch(match: string): NodeSelector;
|
|
188
204
|
/**
|
|
189
205
|
* 获取节点类型
|
|
190
206
|
* @param type 节点类型
|
|
@@ -88,4 +88,15 @@ declare namespace $媒体 {
|
|
|
88
88
|
* }
|
|
89
89
|
*/
|
|
90
90
|
function 同步播放MP3音乐(文件路径: 字符串, 是否循环播放: 布尔值): 布尔值;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* 查询MP3音乐是否正在播放
|
|
94
|
+
* @returns 是否正在播放
|
|
95
|
+
* @example
|
|
96
|
+
* const 是否正在播放 = $媒体.查询MP3音乐是否正在播放()
|
|
97
|
+
* if (是否正在播放) {
|
|
98
|
+
* $打印信息日志("正在播放")
|
|
99
|
+
* }
|
|
100
|
+
*/
|
|
101
|
+
function 查询MP3音乐是否正在播放(): 布尔值;
|
|
91
102
|
}
|
|
@@ -38,6 +38,10 @@ declare interface $节点位置信息 {
|
|
|
38
38
|
|
|
39
39
|
declare interface $节点信息 {
|
|
40
40
|
id: 字符串;
|
|
41
|
+
/**
|
|
42
|
+
* 节点标识符
|
|
43
|
+
*/
|
|
44
|
+
identifier: 字符串;
|
|
41
45
|
/**
|
|
42
46
|
* 节点标签
|
|
43
47
|
*/
|
|
@@ -186,6 +190,18 @@ declare class $节点选择器 {
|
|
|
186
190
|
* @returns 节点选择器
|
|
187
191
|
*/
|
|
188
192
|
titleMatch(match: 字符串): $节点选择器;
|
|
193
|
+
/**
|
|
194
|
+
* 获取节点标识符
|
|
195
|
+
* @param identifier 节点标识符
|
|
196
|
+
* @returns 节点选择器
|
|
197
|
+
*/
|
|
198
|
+
identifier(identifier: 字符串): $节点选择器;
|
|
199
|
+
/**
|
|
200
|
+
* 获取节点标识符匹配
|
|
201
|
+
* @param match 匹配字符串
|
|
202
|
+
* @returns 节点选择器
|
|
203
|
+
*/
|
|
204
|
+
identifierMatch(match: 字符串): $节点选择器;
|
|
189
205
|
/**
|
|
190
206
|
* 获取节点类型
|
|
191
207
|
* @param type 节点类型
|