ms-types 0.4.1 → 0.4.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.
package/package.json
CHANGED
package/types/node.d.ts
CHANGED
|
@@ -104,28 +104,6 @@ declare interface NodeInfo {
|
|
|
104
104
|
* 节点是否可接收事件 用于判断是否显示在屏幕上
|
|
105
105
|
*/
|
|
106
106
|
hittable(): boolean;
|
|
107
|
-
/**
|
|
108
|
-
* 无障碍点击
|
|
109
|
-
*/
|
|
110
|
-
tap(): boolean;
|
|
111
|
-
/**
|
|
112
|
-
* 无障碍双击
|
|
113
|
-
*/
|
|
114
|
-
doubleTap(): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* 无障碍长按
|
|
117
|
-
* @param duration 长按持续时间
|
|
118
|
-
*/
|
|
119
|
-
press(duration: number): boolean;
|
|
120
|
-
/**
|
|
121
|
-
* 无障碍滑动
|
|
122
|
-
* @param direction 滑动方向
|
|
123
|
-
* @param velocity 滑动速度 默认为 default
|
|
124
|
-
*/
|
|
125
|
-
swipe(
|
|
126
|
-
direction: "up" | "down" | "left" | "right",
|
|
127
|
-
velocity?: "default" | "fast" | "slow"
|
|
128
|
-
): boolean;
|
|
129
107
|
/**
|
|
130
108
|
* 获取父节点
|
|
131
109
|
*/
|
|
@@ -102,28 +102,6 @@ declare interface $节点信息 {
|
|
|
102
102
|
* 节点是否可接收事件 用于判断是否显示在屏幕上
|
|
103
103
|
*/
|
|
104
104
|
hittable(): 布尔值;
|
|
105
|
-
/**
|
|
106
|
-
* 无障碍点击
|
|
107
|
-
*/
|
|
108
|
-
tap(): 布尔值;
|
|
109
|
-
/**
|
|
110
|
-
* 无障碍双击
|
|
111
|
-
*/
|
|
112
|
-
doubleTap(): 布尔值;
|
|
113
|
-
/**
|
|
114
|
-
* 无障碍长按
|
|
115
|
-
* @param duration 长按持续时间
|
|
116
|
-
*/
|
|
117
|
-
press(duration: 数字): 布尔值;
|
|
118
|
-
/**
|
|
119
|
-
* 无障碍滑动
|
|
120
|
-
* @param direction 滑动方向
|
|
121
|
-
* @param velocity 滑动速度 默认为 default
|
|
122
|
-
*/
|
|
123
|
-
swipe(
|
|
124
|
-
direction: "up" | "down" | "left" | "right",
|
|
125
|
-
velocity?: "default" | "fast" | "slow"
|
|
126
|
-
): 布尔值;
|
|
127
105
|
/**
|
|
128
106
|
* 获取父节点
|
|
129
107
|
*/
|