deeke-script-app 1.5.1 → 1.5.2

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.
@@ -8,6 +8,8 @@ declare global {
8
8
  constructor(left: number, top: number, right: number, bottom: number);
9
9
  public height(): number;
10
10
  public width(): number;
11
+ public centerX(): number;
12
+ public centerY(): number;
11
13
  }
12
14
  }
13
15
 
package/deekeScript.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "测试",
2
+ "name": "测试测试",
3
3
  "icon": "images/test/app.png",
4
4
  "head": "images/test/app.png",
5
5
  "settingTopBg": "images/test/setting-top.png",
@@ -11,12 +11,12 @@
11
11
  },
12
12
  "groups": [
13
13
  {
14
- "title": "DY·万能引流",
14
+ "title": "DY·万能引流测试",
15
15
  "titleHidden": false,
16
16
  "hidden": false,
17
17
  "methods": [
18
18
  {
19
- "title": "推荐营销",
19
+ "title": "推荐营销2",
20
20
  "icon": "images/test/finger.png",
21
21
  "jsFile": "script/task/dy.js",
22
22
  "settingPage": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeke-script-app",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "DeekeScript应用",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
package/test/2.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+
3
+
4
+ let tag = UiSelector().text('QQ').findOne();
5
+ console.log(tag);
6
+ Gesture.click(tag.bounds().centerX(), tag.bounds().centerY());