gis-common 5.1.37 → 5.2.1
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/gis-common.es.js +62 -14002
- package/dist/gis-common.umd.js +1 -1
- package/dist/index.d.ts +10 -3
- package/package.json +40 -41
package/dist/index.d.ts
CHANGED
|
@@ -166,6 +166,13 @@ export declare class AudioPlayer {
|
|
|
166
166
|
constructor(url: string);
|
|
167
167
|
play(): void;
|
|
168
168
|
pause(): void;
|
|
169
|
+
/**
|
|
170
|
+
* @description 从头开始连续播放指定次数,全部播放完成后 resolve
|
|
171
|
+
* 注意: 中途被 pause() 暂停时 Promise 会保持 pending,直到继续播放完成
|
|
172
|
+
* @param {number} times 播放次数
|
|
173
|
+
* @returns {Promise<void>}
|
|
174
|
+
*/
|
|
175
|
+
playTimes(times: number): Promise<void>;
|
|
169
176
|
get muted(): boolean;
|
|
170
177
|
/**
|
|
171
178
|
* @description 设置静音状态,如果静音,autoplay属性将失效
|
|
@@ -1314,8 +1321,8 @@ export declare class MqttClient extends EventDispatcher {
|
|
|
1314
1321
|
_onError(): void;
|
|
1315
1322
|
_onMessage(): void;
|
|
1316
1323
|
sendMsg(topic: string, msg: string): this | undefined;
|
|
1317
|
-
subscribe(topic:
|
|
1318
|
-
unsubscribe(topic
|
|
1324
|
+
subscribe(topic: string | string[]): this;
|
|
1325
|
+
unsubscribe(topic?: string | string[]): this;
|
|
1319
1326
|
unsubscribeAll(): this;
|
|
1320
1327
|
unconnect(): void;
|
|
1321
1328
|
}
|
|
@@ -1655,7 +1662,7 @@ export declare const Util: {
|
|
|
1655
1662
|
* @param text 要复制的文本
|
|
1656
1663
|
* @returns 返回一个Promise,表示复制操作的结果
|
|
1657
1664
|
*/
|
|
1658
|
-
|
|
1665
|
+
copyText(text: string): Promise<void>;
|
|
1659
1666
|
isArray(a: any): a is any[];
|
|
1660
1667
|
isObject(a: any): boolean;
|
|
1661
1668
|
isNil(a: any): boolean;
|
package/package.json
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gis-common",
|
|
3
|
-
"version": "5.1
|
|
4
|
-
"author": "Guo.Yan <luv02@vip.qq.com>",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"private": false,
|
|
7
|
-
"module": "dist/gis-common.umd.js",
|
|
8
|
-
"main": "dist/gis-common.umd.js",
|
|
9
|
-
"type": "module",
|
|
10
|
-
"files": [
|
|
11
|
-
"dist"
|
|
12
|
-
],
|
|
13
|
-
"types": "dist/index.d.ts",
|
|
14
|
-
"exports": {
|
|
15
|
-
".": {
|
|
16
|
-
"import": "./dist/gis-common.umd.js",
|
|
17
|
-
"require": "./dist/gis-common.umd.js"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"dev": "vite",
|
|
22
|
-
"lib": "vite build --mode lib",
|
|
23
|
-
"serve": "vite preview"
|
|
24
|
-
},
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": ""
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"mqtt
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@types/leaflet": "^1.9.12",
|
|
34
|
-
"@types/node": "^22.5.5",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"vite": "^5.4
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "gis-common",
|
|
3
|
+
"version": "5.2.1",
|
|
4
|
+
"author": "Guo.Yan <luv02@vip.qq.com>",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"private": false,
|
|
7
|
+
"module": "dist/gis-common.umd.js",
|
|
8
|
+
"main": "dist/gis-common.umd.js",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/gis-common.umd.js",
|
|
17
|
+
"require": "./dist/gis-common.umd.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "vite",
|
|
22
|
+
"lib": "vite build --mode lib",
|
|
23
|
+
"serve": "vite preview"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": ""
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"mqtt": "^5.15.1"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/leaflet": "^1.9.12",
|
|
34
|
+
"@types/node": "^22.5.5",
|
|
35
|
+
"terser": "^5.32.0",
|
|
36
|
+
"typescript": "^5.5.4",
|
|
37
|
+
"vite": "^5.4.0",
|
|
38
|
+
"vite-plugin-dts": "^4.5.4"
|
|
39
|
+
}
|
|
40
|
+
}
|