ms-types 0.0.48 → 0.0.49

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/action.d.ts +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/action.d.ts CHANGED
@@ -138,6 +138,22 @@ declare namespace action {
138
138
  endY: number,
139
139
  duration?: number
140
140
  ): boolean;
141
+ /**
142
+ * 执行组合操作
143
+ * @param actions 操作列表
144
+ * @returns 执行组合操作是否成功
145
+ * @example action.actions({
146
+ * "type": "pointer",
147
+ * "id": "pointer1",
148
+ * "parameters": { "pointerType": "touch" },
149
+ * "actions": [
150
+ * { "type": "pointerMove", "duration": 0, "x": x1, "y": y1 },
151
+ * { "type": "pointerDown", "button": 0 },
152
+ * { "type": "pointerUp", "button": 0 }
153
+ * ]
154
+ * })
155
+ */
156
+ function actions(actions: Record<string, any>): boolean;
141
157
  /**
142
158
  * 输入文本
143
159
  * @param text 文本内容