ms-types 0.0.59 → 0.0.61

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,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -16,6 +16,6 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "vitepress": "^1.6.4",
19
- "vitepress-theme-teek": "^1.4.6"
19
+ "vitepress-theme-teek": "^1.5.0"
20
20
  }
21
21
  }
package/types/action.d.ts CHANGED
@@ -2,6 +2,12 @@
2
2
  * 动作模块 包含点击、滑动、长按滑动、返回首页等动作
3
3
  */
4
4
  declare namespace action {
5
+ /**
6
+ * 设置动作抖动值 点击、滑动等动作会在像素范围-5到5随机偏移
7
+ * @param value 抖动值
8
+ * @example action.setJitterValue(5)
9
+ */
10
+ function setJitterValue(value: number): void;
5
11
  /**
6
12
  * 点击
7
13
  * @param x 坐标x
package/types/media.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  declare namespace media {
5
5
  /**
6
6
  * 保存图像到相册
7
- * @param img 图像ID
7
+ * @param imageId 图像ID
8
8
  * @returns 是否保存成功
9
9
  * @example
10
10
  * const imageId = image.readImage("screen.png")
@@ -15,7 +15,7 @@ declare namespace media {
15
15
  * }
16
16
  * }
17
17
  */
18
- function saveImageToAlbum(img: string): boolean;
18
+ function saveImageToAlbum(imageId: string): boolean;
19
19
 
20
20
  /**
21
21
  * 保存视频路径到相册