From 14fd3857d262a21bae800175f9535e0602657375 Mon Sep 17 00:00:00 2001
From: yihao_lin
Date: Thu, 31 Jul 2025 21:18:19 +0800
Subject: [PATCH] number to int
Signed-off-by: yihao_lin
---
...@ohos.arkui.componentSnapshot.static.d.ets | 36 +-
api/@ohos.arkui.componentUtils.static.d.ets | 108 +--
api/@ohos.arkui.dragController.static.d.ets | 8 +-
api/arkui/component/common.static.d.ets | 659 ++++++------------
api/arkui/component/gesture.static.d.ets | 208 +++---
5 files changed, 375 insertions(+), 644 deletions(-)
diff --git a/api/@ohos.arkui.componentSnapshot.static.d.ets b/api/@ohos.arkui.componentSnapshot.static.d.ets
index f24eb7c1e6..a14d444e25 100644
--- a/api/@ohos.arkui.componentSnapshot.static.d.ets
+++ b/api/@ohos.arkui.componentSnapshot.static.d.ets
@@ -40,35 +40,35 @@ declare namespace componentSnapshot {
/**
* Left side position of rectangle, in PX.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- left: number;
+ left: double;
/**
* Right side position of Rectangle, in PX.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- right: number;
+ right: double;
/**
* Top side position of Rectangle, in PX.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- top: number;
+ top: double;
/**
* Bottom side position of Rectangle, in PX.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- bottom: number;
+ bottom: double;
}
/**
* Defines the extra options for snapshot taking, if this is used, the start and end will
@@ -82,35 +82,35 @@ declare namespace componentSnapshot {
/**
* Left/Right side position of rectangle, in PX
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- start: number;
+ start: double;
/**
* End side position of Rectangle, in PX.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- end: number;
+ end: double;
/**
* Left/Right side position of rectangle, in PX
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- top: number;
+ top: double;
/**
* Bottom side position of Rectangle, in PX.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- bottom: number;
+ bottom: double;
}
/**
* Defines the snapshot region rect type.
@@ -131,11 +131,11 @@ declare namespace componentSnapshot {
/**
* Defines the scale property to render the snapshot.
*
- * @type {?number}
+ * @type {?double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- scale?: number;
+ scale?: double;
/**
* Whether to wait the rendering is finished.
*
diff --git a/api/@ohos.arkui.componentUtils.static.d.ets b/api/@ohos.arkui.componentUtils.static.d.ets
index 3db3aebc22..43d52bdc70 100644
--- a/api/@ohos.arkui.componentUtils.static.d.ets
+++ b/api/@ohos.arkui.componentUtils.static.d.ets
@@ -121,20 +121,20 @@ declare namespace componentUtils {
/**
* Defines the width property.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- width: number;
+ width: double;
/**
* Defines the height property.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- height: number;
+ height: double;
}
@@ -149,20 +149,20 @@ declare namespace componentUtils {
/**
* Coordinate x of the Position.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- x: number;
+ x: double;
/**
* Coordinate y of the Position.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- y: number;
+ y: double;
}
@@ -177,29 +177,29 @@ declare namespace componentUtils {
/**
* Indicates the translation distance of the x-axis, in vp.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- x: number;
+ x: double;
/**
* Indicates the translation distance of the y-axis, in vp.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- y: number;
+ y: double;
/**
* Indicates the translation distance of the z-axis, in vp.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- z: number;
+ z: double;
}
@@ -214,47 +214,47 @@ declare namespace componentUtils {
/**
* Zoom factor of the x-axis.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- x: number;
+ x: double;
/**
* Zoom factor of the y-axis.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- y: number;
+ y: double;
/**
* Zoom factor of the z-axis.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- z: number;
+ z: double;
/**
* Transform the x-axis coordinate of the center point.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- centerX: number;
+ centerX: double;
/**
* Transform the y-axis coordinate of the center point.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- centerY: number;
+ centerY: double;
}
@@ -269,83 +269,83 @@ declare namespace componentUtils {
/**
* Axis of rotation vector x coordinate.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- x: number;
+ x: double;
/**
* Axis of rotation vector y coordinate.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- y: number;
+ y: double;
/**
* Axis of rotation vector z coordinate.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- z: number;
+ z: double;
/**
* Transform the x-axis coordinate of the center point.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- centerX: number;
+ centerX: double;
/**
* Transform the y-axis coordinate of the center point.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- centerY: number;
+ centerY: double;
/**
* Rotation angle.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- angle: number;
+ angle: double;
}
/**
* The matrix is column-first fourth-order matrix.
- * @typedef { [number, number, number, number, number, number, number, number, number, number, number, number,
- * number, number, number, number,] } Matrix4Result
+ * @typedef { [double, double, double, double, double, double, double, double, double, double, double, double,
+ * double, double, double, double,] } Matrix4Result
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
export type Matrix4Result = [
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number,
- number
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double,
+ double
];
}
export default componentUtils;
diff --git a/api/@ohos.arkui.dragController.static.d.ets b/api/@ohos.arkui.dragController.static.d.ets
index a78d8c648f..43f88424d1 100644
--- a/api/@ohos.arkui.dragController.static.d.ets
+++ b/api/@ohos.arkui.dragController.static.d.ets
@@ -157,11 +157,11 @@ declare namespace dragController {
/**
* A unique identifier to identify which touch point.
- * @type { number }
+ * @type { int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- pointerId: number;
+ pointerId: int;
/**
@@ -213,11 +213,11 @@ declare namespace dragController {
/**
* Animation duration, in ms.
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- duration?: number;
+ duration?: int;
/**
diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets
index 31b466c06d..f938c1f15a 100644
--- a/api/arkui/component/common.static.d.ets
+++ b/api/arkui/component/common.static.d.ets
@@ -3228,31 +3228,25 @@ export declare class TransitionEffect {
*
* @interface ItemDragInfo
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
export declare interface ItemDragInfo {
/**
* Obtains the X coordinate of the drag window, in vp.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- x: number;
+ x: double;
/**
* Obtains the Y coordinate of the drag window, in vp.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- y: number;
+ y: double;
}
/**
* Enum of using the effects template mode.
@@ -4837,9 +4831,6 @@ export type ModifierKeyStateGetter = (keys: Array) => boolean;
*
* @interface BaseEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
export declare interface BaseEvent {
@@ -4848,108 +4839,78 @@ export declare interface BaseEvent {
*
* @type { EventTarget }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
target: EventTarget;
/**
* Timestamp of the event.
*
- * @type { number }
+ * @type { long }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- timestamp: number;
+ timestamp: long;
/**
* Event input device.
*
* @type { SourceType }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
source: SourceType;
/**
* the Horizontal axis coordinate.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- axisHorizontal?: number;
+ axisHorizontal?: double;
/**
* the Vertical axis coordinate.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- axisVertical?: number;
+ axisVertical?: double;
/**
* Press pressure.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- pressure: number;
+ pressure: double;
/**
* Angle between the projection of the stylus on the device plane and the x-axis.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- tiltX: number;
+ tiltX: double;
/**
* Angle between the projection of the stylus on the device plane and the y-axis.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- tiltY: number;
+ tiltY: double;
/**
* Indicates the angle at which the stylus rotates around the Z-axis.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- rollAngle?: number;
+ rollAngle?: double;
/**
* Event input source.
*
* @type { SourceTool }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
sourceTool: SourceTool;
@@ -4958,31 +4919,25 @@ export declare interface BaseEvent {
*
* @type { ?ModifierKeyStateGetter }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
getModifierKeyState?: ModifierKeyStateGetter;
/**
* Indicates the ID of the input device that triggers the current event.
*
- * @type { ?number } [deviceId] The ID of the input device that triggers the current event
+ * @type { ?int } [deviceId] The ID of the input device that triggers the current event
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- deviceId?: number;
+ deviceId?: int;
/**
* Indicates the screen ID on which the event occurred.
*
- * @type { ?number } [targetDisplayId] The screen ID on which the event occurred.
+ * @type { ?int } [targetDisplayId] The screen ID on which the event occurred.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- targetDisplayId?: number;
+ targetDisplayId?: int;
}
/**
* Border image option
@@ -5100,81 +5055,62 @@ export declare class LayoutPolicy {
* @extends BaseEvent
* @interface ClickEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
export declare interface ClickEvent extends BaseEvent {
/**
* X coordinate of the click relative to the upper left corner of the application screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- displayX: number;
+ displayX: double;
/**
* Y coordinate of the click relative to the upper left corner of the application screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- displayY: number;
+ displayY: double;
/**
* X coordinate of the click relative to the upper left corner of the application window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- windowX: number;
+ windowX: double;
/**
* Y coordinate of the click relative to the upper left corner of the application window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- windowY: number;
+ windowY: double;
/**
* X coordinate of the click point relative to the left edge of the clicked element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- x: number;
+ x: double;
/**
* Y coordinate of the click point relative to the left edge of the clicked element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- y: number;
+ y: double;
/**
* Whether the event is triggered by a left-hand or right-hand tap.
*
* @type { InteractionHand }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
hand?: InteractionHand;
@@ -5184,8 +5120,6 @@ export declare interface ClickEvent extends BaseEvent {
* @type { function }
* @throws { BusinessError } 100017 - Component does not support prevent function.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
preventDefault: () => void;
@@ -5196,70 +5130,62 @@ export declare interface ClickEvent extends BaseEvent {
* @extends BaseEvent
* @interface HoverEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
export declare interface HoverEvent extends BaseEvent {
/**
* X coordinate of the hover point relative to the left edge of the hover element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- x?: number;
+ x?: double;
/**
* Y coordinate of the hover point relative to the upper edge of the hover element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- y?: number;
+ y?: double;
/**
* X coordinate of the hover point relative to the left edge of the current window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- windowX?: number;
+ windowX?: double;
/**
* Y coordinate of the hover point relative to the upper edge of the current window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- windowY?: number;
+ windowY?: double;
/**
* X coordinate of the hover point relative to the left edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- displayX?: number;
+ displayX?: double;
/**
* Y coordinate of the hover point relative to the upper edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- displayY?: number;
+ displayY?: double;
/**
* The blocking hover event pops up.
*
* @type { function }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
stopPropagation: () => void;
@@ -5270,7 +5196,6 @@ export declare interface HoverEvent extends BaseEvent {
* @extends BaseEvent
* @interface MouseEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
export declare interface MouseEvent extends BaseEvent {
@@ -5279,7 +5204,6 @@ export declare interface MouseEvent extends BaseEvent {
*
* @type { MouseButton }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
button: MouseButton;
@@ -5288,70 +5212,62 @@ export declare interface MouseEvent extends BaseEvent {
*
* @type { MouseAction }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
action: MouseAction;
/**
* X coordinate of the mouse pointer relative to the upper left corner of the application screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- displayX: number;
+ displayX: double;
/**
* Y coordinate of the mouse pointer relative to the upper left corner of the application screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- displayY: number;
+ displayY: double;
/**
* X coordinate of the mouse pointer relative to the upper left corner of the application window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- windowX: number;
+ windowX: double;
/**
* Y coordinate of the mouse pointer relative to the upper left corner of the application window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- windowY: number;
+ windowY: double;
/**
* X coordinate of the mouse pointer relative to the upper left corner of the component being clicked.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- x: number;
+ x: double;
/**
* Y coordinate of the mouse pointer relative to the upper left corner of the component being clicked.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- y: number;
+ y: double;
/**
* Stops the event from bubbling upwards or downwards.
*
* @type { function }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
stopPropagation: () => void;
@@ -5359,28 +5275,25 @@ export declare interface MouseEvent extends BaseEvent {
* X axis offset relative to the previous reported mouse pointer position. When the mouse pointer is at
* the edge of the screen, the value may be less than the difference of the X coordinate reported twice.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- rawDeltaX?: number;
+ rawDeltaX?: double;
/**
* Y axis offset relative to the previous reported mouse pointer position. When the mouse pointer is at
* the edge of the screen, the value may be less than the difference of the Y coordinate reported twice.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- rawDeltaY?: number;
+ rawDeltaY?: double;
/**
* Array of all mouse buttons that are currently pressed.
*
* @type { ?MouseButton[] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
pressedButtons?: MouseButton[];
@@ -5391,7 +5304,6 @@ export declare interface MouseEvent extends BaseEvent {
* @extends BaseEvent
* @typedef AccessibilityHoverEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
export declare interface AccessibilityHoverEvent extends BaseEvent {
@@ -5400,72 +5312,63 @@ export declare interface AccessibilityHoverEvent extends BaseEvent {
*
* @type { AccessibilityHoverType }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
type: AccessibilityHoverType;
/**
* X coordinate of the accessibility hover point relative to the left edge of the event hit element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- x: number;
+ x: double;
/**
* Y coordinate of the accessibility hover point relative to the upper edge of the event hit element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- y: number;
+ y: double;
/**
* X coordinate of the accessibility hover point relative to the left edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- displayX: number;
+ displayX: double;
/**
* Y coordinate of the accessibility hover point relative to the upper edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- displayY: number;
+ displayY: double;
/**
* X coordinate of the accessibility hover point relative to the left edge of the current window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- windowX: number;
+ windowX: double;
/**
* Y coordinate of the accessibility hover point relative to the upper edge of the current window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- windowY: number;
+ windowY: double;
}
/**
* Type of the touch event.
*
* @interface TouchObject
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
export declare interface TouchObject {
@@ -5474,139 +5377,111 @@ export declare interface TouchObject {
*
* @type { TouchType }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
type: TouchType;
/**
* Unique identifier of a finger.
*
- * @type { number }
+ * @type { int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- id: number;
+ id: int;
/**
* X coordinate of the touch point relative to the upper left corner of the application screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- displayX: number;
+ displayX: double;
/**
* Y coordinate of the touch point relative to the upper left corner of the application screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- displayY: number;
+ displayY: double;
/**
* X coordinate of the touch point relative to the upper left corner of the application window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- windowX: number;
+ windowX: double;
/**
* Y coordinate of the touch point relative to the upper left corner of the application window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- windowY: number;
+ windowY: double;
/**
* X coordinate of the touch point relative to the upper left corner of the event responding component.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- x: number;
+ x: double;
/**
* Y coordinate of the touch point relative to the upper left corner of the event responding component.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- y: number;
+ y: double;
/**
* Whether the event is triggered by a left-hand or right-hand tap.
*
* @type { InteractionHand }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
hand?: InteractionHand;
/**
* Time when the finger is pressed.
*
- * @type { ?number }
+ * @type { ?long }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- pressedTime?: number;
+ pressedTime?: long;
/**
- * Pressure value of the finger press.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- */
- pressure?: number;
+ * Pressure value of the finger press.
+ *
+ * @type { ?double }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ pressure?: double;
/**
* Width of the area pressed by the finger.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- width?: number;
+ width?: double;
/**
* Height of the area pressed by the finger.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- height?: number;
+ height?: double;
}
/**
* TouchObject getHistoricalPoints Function Parameters
*
* @interface HistoricalPoint
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
export declare interface HistoricalPoint {
@@ -5615,41 +5490,33 @@ export declare interface HistoricalPoint {
*
* @type { TouchObject }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
touchObject: TouchObject;
/**
* Contact area between the finger pad and the screen.
*
- * @type { number }
+ * @type { int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- size: number;
+ size: int;
/**
* Pressure of the touch event.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- force: number;
+ force: double;
/**
* Timestamp of the touch event.
*
- * @type { number }
+ * @type { long }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- timestamp: number;
+ timestamp: long;
}
/**
* Touch Action Function Parameters
@@ -5730,7 +5597,6 @@ export declare interface TouchEvent extends BaseEvent {
* @extends BaseEvent
* @interface AxisEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
export declare interface AxisEvent extends BaseEvent {
@@ -5739,100 +5605,89 @@ export declare interface AxisEvent extends BaseEvent {
*
* @type { AxisAction }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
action: AxisAction;
/**
* X coordinate of the mouse cursor relative to the left edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- displayX: number;
+ displayX: double;
/**
* Y coordinate of the mouse cursor relative to the upper edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- displayY: number;
+ displayY: double;
/**
* X coordinate of the mouse cursor relative to the left edge of the current window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- windowX: number;
+ windowX: double;
/**
* Y coordinate of the mouse cursor relative to the upper edge of the current window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- windowY: number;
+ windowY: double;
/**
* X coordinate of the mouse cursor relative to the left edge of the axis event hit element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- x: number;
+ x: double;
/**
* Y coordinate of the mouse cursor relative to the upper edge of the axis event hit element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- y: number;
+ y: double;
/**
* Scroll step configuration which is only mouse wheel has.
* *
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- scrollStep?: number;
+ scrollStep?: double;
/**
* Active event bubbling.
*
* @type { Callback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
propagation: Callback;
/**
* Obtains the value of the horizontal scroll axis for this axis event.
*
- * @returns { number }
+ * @returns { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- getHorizontalAxisValue(): number;
+ getHorizontalAxisValue(): double;
/**
* Obtains the value of the vertical scroll axis for this axis event.
*
- * @returns { number }
+ * @returns { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- getVerticalAxisValue(): number;
+ getVerticalAxisValue(): double;
}
/**
* Defines the callback type used in onSizeChange.
@@ -6391,58 +6246,46 @@ export declare enum BlendApplyType {
*
* @interface DragEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
export declare interface DragEvent {
/**
* X coordinate of the touch point relative to the left edge of the device screen.
*
- * @returns { number }
+ * @returns { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- getDisplayX(): number;
+ getDisplayX(): double;
/**
* Y coordinate of the touch point relative to the upper edge of the device screen.
*
- * @returns { number }
+ * @returns { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- getDisplayY(): number;
+ getDisplayY(): double;
/**
* X coordinate of the touch point relative to the left edge of the current window.
*
- * @returns { number }
+ * @returns { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- getWindowX(): number;
+ getWindowX(): double;
/**
* Y coordinate of the touch point relative to the left edge of the current window.
*
- * @returns { number }
+ * @returns { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- getWindowY(): number;
+ getWindowY(): double;
/**
* If copy is COPY, this DragEvent is a copy event.
* @type { DragBehavior } Operation, if use copy then set COPY, else set MOVE.
* @default COPY
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
dragBehavior: DragBehavior;
@@ -6451,7 +6294,6 @@ export declare interface DragEvent {
*
* @type { boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
useCustomDropAnimation: boolean;
@@ -6460,8 +6302,6 @@ export declare interface DragEvent {
*
* @param { UnifiedData } unifiedData - dragData.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
setData(unifiedData: UnifiedData): void;
@@ -6472,8 +6312,6 @@ export declare interface DragEvent {
* @throws { BusinessError } 190001 - Data not found.
* @throws { BusinessError } 190002 - Data error.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
getData(): UnifiedData;
@@ -6482,8 +6320,6 @@ export declare interface DragEvent {
*
* @returns { Summary } - get Summary Data.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
getSummary(): Summary;
@@ -6492,8 +6328,6 @@ export declare interface DragEvent {
*
* @param { DragResult } dragResult - the return of dragEvent.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
setResult(dragResult: DragResult): void;
@@ -6502,8 +6336,6 @@ export declare interface DragEvent {
*
* @returns { DragResult } - dragResult Data.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
getResult(): DragResult;
@@ -6512,48 +6344,38 @@ export declare interface DragEvent {
*
* @returns { Rectangle } - getPreview rectangle.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
getPreviewRect(): Rectangle;
/**
* Get the x axis velocity of drag gesture.
*
- * @returns { number } - get x axis velocity.
+ * @returns { double } - get x axis velocity.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- getVelocityX(): number;
+ getVelocityX(): double;
/**
* Get the y axis velocity of drag gesture.
*
- * @returns { number } - get y axis velocity.
+ * @returns { double } - get y axis velocity.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- getVelocityY(): number;
+ getVelocityY(): double;
/**
* Get the velocity of drag gesture.
*
- * @returns { number } - get velocity.
+ * @returns { double } - get velocity.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- getVelocity(): number;
+ getVelocity(): double;
/**
* Query the modifier key press state, support 'ctrl'|'alt'|'shift'
*
* @type { ?ModifierKeyStateGetter }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
getModifierKeyState?: ModifierKeyStateGetter;
@@ -6567,8 +6389,6 @@ export declare interface DragEvent {
*
* @param { Callback } customDropAnimation - the custom drop animation function.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
executeDropAnimation(customDropAnimation: Callback): void;
@@ -6589,7 +6409,7 @@ export declare interface DragEvent {
* @systemapi
* @since 20
*/
- enableInternalDropAnimation(configuration: string): void;
+ enableInternalDropAnimation(configuration: string): void;
}
/**
* The event callback function for drag and drop common interfaces.
@@ -6635,8 +6455,6 @@ export declare interface DropOptions {
*
* @interface KeyEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
export declare interface KeyEvent {
@@ -6645,28 +6463,22 @@ export declare interface KeyEvent {
*
* @type { KeyType }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
type: KeyType;
/**
* Key code of a key
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- keyCode: number;
+ keyCode: double;
/**
* Key value of a key.
*
* @type { string }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
keyText: string;
@@ -6675,49 +6487,39 @@ export declare interface KeyEvent {
*
* @type { KeySource }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
keySource: KeySource;
/**
* Indicates the ID of the input device that triggers the current key.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- deviceId: number;
+ deviceId: double;
/**
* Indicates the status of the key when the key is pressed.
* The value 1 indicates the pressed state, and the value 0 indicates the unpressed state.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- metaKey: number;
+ metaKey: double;
/**
* Timestamp when the key was pressed.
*
- * @type { number }
+ * @type { long }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- timestamp: number;
+ timestamp: long;
/**
* Block event bubbling.
*
* @type { function }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
stopPropagation: () => void;
@@ -6727,7 +6529,6 @@ export declare interface KeyEvent {
* @type { IntentionCode }
* @default IntentionCode.INTENTION_UNKNOWN
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
intentionCode: IntentionCode;
@@ -6736,20 +6537,17 @@ export declare interface KeyEvent {
*
* @type { ?ModifierKeyStateGetter }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
getModifierKeyState?: ModifierKeyStateGetter;
/**
* Unicode of a key
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- unicode?: number;
+ unicode?: double;
}
/**
* Focus axis event object description.
@@ -6757,25 +6555,22 @@ export declare interface KeyEvent {
* @extends BaseEvent
* @interface FocusAxisEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
export declare interface FocusAxisEvent extends BaseEvent {
/**
* The axis values of axis event.
*
- * @type { Map }
+ * @type { Map }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- axisMap: Map;
+ axisMap: Map;
/**
* The blocking event pops up.
*
* @type { Callback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
stopPropagation: Callback;
@@ -6785,43 +6580,38 @@ export declare interface FocusAxisEvent extends BaseEvent {
*
* @interface CrownEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
export declare interface CrownEvent {
/**
*The timestamp of the rotating crown event.
*
- * @type { number }
+ * @type { long }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- timestamp: number;
+ timestamp: long;
/**
* The angular velocity of a rotating crown.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- angularVelocity: number;
+ angularVelocity: double;
/**
* The rotation angle of the rotating crown.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- degree: number;
+ degree: double;
/**
* The behavior of rotating crown.
*
* @type { CrownAction }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
action: CrownAction;
@@ -6830,7 +6620,6 @@ export declare interface CrownEvent {
*
* @type { Callback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
stopPropagation: Callback;
@@ -9441,78 +9230,62 @@ export declare class ProgressMask {
* Defines TouchTestInfo class.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
export declare class TouchTestInfo {
/**
* Get the X-coordinate relative to the window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- windowX: number;
+ windowX: double;
/**
* Get the Y-coordinate relative to the window.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- windowY: number;
+ windowY: double;
/**
* Get the X-coordinate relative to the current component.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- parentX: number;
+ parentX: double;
/**
* Get the Y-coordinate relative to the current component.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- parentY: number;
+ parentY: double;
/**
* Get the X-coordinate relative to the sub component.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- x: number;
+ x: double;
/**
* Get the Y-coordinate relative to the sub component.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- y: number;
+ y: double;
/**
* Get the rectangle of sub component.
*
* @type { RectResult }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
rect: RectResult;
@@ -9521,8 +9294,6 @@ export declare class TouchTestInfo {
*
* @type { string }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
id: string;
@@ -9622,21 +9393,18 @@ export declare interface PixelStretchEffectOptions {
*
* @interface ClickEffect
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
export declare interface ClickEffect {
/**
* Set the click effect level.
*
- * @type { ClickEffectLevel }
+ * @type { ?ClickEffectLevel }
* @default ClickEffectLevel.Light
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- level: ClickEffectLevel;
+ level?: ClickEffectLevel;
/**
* Set scale number.
* This default scale is same as the scale of click effect level.
@@ -9648,12 +9416,11 @@ export declare interface ClickEffect {
*
If level is set to undefined or null (both of which evaluate to ClickEffectLevel.LIGHT), the default value is 0.90.
*
If scale is set to undefined or null, the default zoom ratio for the set level will be used.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
- scale?: number;
+ scale?: double;
}
/**
* Defines the fadingEdge options.
@@ -10069,8 +9836,6 @@ export declare enum MenuPolicy {
*
* @interface DragPreviewOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
export declare interface DragPreviewOptions {
@@ -10080,29 +9845,24 @@ export declare interface DragPreviewOptions {
* @type { ?(DragPreviewMode | Array) }
* @default DragPreviewMode.AUTO
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
mode?: DragPreviewMode | Array;
/**
* The flag for number showing.
*
- * @type { ?(boolean | number) }
+ * @type { ?(boolean | int) }
* @default true
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- numberBadge?: boolean | number;
+ numberBadge?: boolean | int;
/**
* Drag start animation effect from drag preview to the handle drag image.
*
* @type { ?DraggingSizeChangeEffect }
* @default DraggingSizeChangeEffect.DEFAULT
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
* @since 20
*/
sizeChangeEffect?: DraggingSizeChangeEffect;
@@ -10597,7 +10357,7 @@ export declare interface CommonMethod {
* @atomicservice
* @since 20
*/
- default backgroundImage(src: ResourceStr | PixelMap | undefined, repeat?: ImageRepeat | undefined): this;
+ default backgroundImage(src: ResourceStr | PixelMap | undefined, repeat?: ImageRepeat): this;
/**
* Background image
*
@@ -10610,7 +10370,7 @@ export declare interface CommonMethod {
* @atomicservice
* @since 20
*/
- default backgroundImage(src: ResourceStr | PixelMap | undefined, options?: BackgroundImageOptions | undefined): this;
+ default backgroundImage(src: ResourceStr | PixelMap | undefined, options?: BackgroundImageOptions): this;
/**
* Background image size
*
@@ -10964,9 +10724,6 @@ export declare interface CommonMethod {
* @param { function } event
* @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
default onClick(event: ((event: ClickEvent) => void) | undefined): this;
@@ -10980,16 +10737,13 @@ export declare interface CommonMethod {
*
Click events cannot be triggered if the finger moves more than 20 px after pressing down.
*
* @param { function } event - this function callback executed when the click action is recognized
- * @param { number } distanceThreshold - the distance threshold of finger's movement when detecting a click action
+ * @param { double } distanceThreshold - the distance threshold of finger's movement when detecting a click action
* @default (2^31-1)vp
* @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- default onClick(event: Callback | undefined, distanceThreshold: number | undefined): this;
+ default onClick(event: Callback | undefined, distanceThreshold: double | undefined): this;
/**
* Trigger a hover event.
*
@@ -12588,27 +12342,23 @@ export declare interface CommonMethod {
/**
* id for distribute identification.
*
- * @param { number } value
+ * @param { int } value
* @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- default restoreId(value: number | undefined): this;
+ default restoreId(value: int | undefined): this;
/**
* Trigger a visible area change event.
*
- * @param { Array } ratios - Threshold array. Each threshold represents a ratio of the component's visible area to the component's total area.
+ * @param { Array } ratios - Threshold array. Each threshold represents a ratio of the component's visible area to the component's total area.
* The value range of the threshold is [0.0, 1.0].
* @param { VisibleAreaChangeCallback } event - Callback for visible area changes of the component.
* @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- default onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this;
+ default onVisibleAreaChange(ratios: Array | undefined, event: VisibleAreaChangeCallback | undefined): this;
/**
* Set or reset the callback which is triggered when the visibleArea of component changed.
* The interval between two visible area change callbacks will not be less than the expected update interval.
@@ -12617,8 +12367,6 @@ export declare interface CommonMethod {
* @param { VisibleAreaChangeCallback | undefined } event - The callback will be triggered when the visibleArea of component changed and get close to any number in ratios defined by options.
* If set undefined will reset the target callback.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
default onVisibleAreaApproximateChange(options: VisibleAreaEventOptions | undefined, event: VisibleAreaChangeCallback | undefined): this;
@@ -12699,7 +12447,7 @@ export declare interface CommonMethod {
* @atomicservice
* @since 20
*/
- default keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: (() => void) | undefined): this;
+ default keyboardShortcut(value: string | FunctionKey | undefined, keys: Array | undefined, action?: () => void): this;
/**
* Sets whether to enable accessibility grouping.
*
@@ -13172,34 +12920,25 @@ export declare interface OverlayOptions {
*
* @typedef OverlayOffset
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
export declare interface OverlayOffset {
/**
* Defines x.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- x?: number;
+ x?: double;
/**
* Defines y.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
* @since 20
*/
- y?: number;
+ y?: double;
}
/**
* Defines the segment of blur.
@@ -14847,32 +14586,26 @@ export type AccessibilityCallback = (isHover: boolean, event: AccessibilityHover
*
* @interface VisibleAreaEventOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
export declare interface VisibleAreaEventOptions {
/**
* Each number in ratios indicates the value of visibility ratio. Each number in the Array value range in [0, 1].
*
- * @type { Array }
+ * @type { Array }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- ratios: Array;
+ ratios: Array;
/**
* The value of expectedUpdateInterval indicates desired update period(ms).
*
- * @type { ?number }
+ * @type { ?double }
* @default 1000
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
- expectedUpdateInterval?: number;
+ expectedUpdateInterval?: double;
}
/**
* Defines the callback type used in VisibleAreaChange events.
@@ -14880,13 +14613,11 @@ export declare interface VisibleAreaEventOptions {
* @typedef { function } VisibleAreaChangeCallback
* @param { boolean } isExpanding - Indicates the ratio of the visible area to its own area compared to the last change.
* It is true as the ratio increases and false as the ratio decreases.
- * @param { number } currentRatio - The value of currentRatio indicates the visibility ratio of the current component.
+ * @param { double } currentRatio - The value of currentRatio indicates the visibility ratio of the current component.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
* @since 20
*/
-export type VisibleAreaChangeCallback = (isExpanding: boolean, currentRatio: number) => void;
+export type VisibleAreaChangeCallback = (isExpanding: boolean, currentRatio: double) => void;
/**
* Defines a UICommonEvent which is used to set different common event to target component.
*
diff --git a/api/arkui/component/gesture.static.d.ets b/api/arkui/component/gesture.static.d.ets
index d9d0eb49af..0ca1ab62ab 100644
--- a/api/arkui/component/gesture.static.d.ets
+++ b/api/arkui/component/gesture.static.d.ets
@@ -317,59 +317,59 @@ export interface FingerInfo {
/**
* Finger unique identifier.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- id: number;
+ id: double;
/**
* X coordinate of the touch point relative to the left edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- globalX: number;
+ globalX: double;
/**
* The Y coordinate of the touch point relative to the upper edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- globalY: number;
+ globalY: double;
/**
* X coordinate of the touch point relative to the left edge of the touched element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- localX: number;
+ localX: double;
/**
* Y coordinate of the touch point relative to the upper edge of the touched element.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- localY: number;
+ localY: double;
/**
* X coordinate of the touch point relative to the left edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- displayX: number;
+ displayX: double;
/**
* Y coordinate of the touch point relative to the upper edge of the device screen.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- displayY: number;
+ displayY: double;
/**
* Type of the touch hand.
*
@@ -446,41 +446,41 @@ export interface PanGestureEvent extends BaseGestureEvent {
* Gesture event offset X.
* The unit is vp.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- offsetX: number;
+ offsetX: double;
/**
* Gesture event offset Y.
* The unit is vp.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- offsetY: number;
+ offsetY: double;
/**
* X-axis velocity of the gesture.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- velocityX: number;
+ velocityX: double;
/**
* Y-axis velocity of the gesture.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- velocityY: number;
+ velocityY: double;
/**
* velocity of the gesture.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- velocity: number;
+ velocity: double;
}
/**
* Defines event info for pinch gesture.
@@ -494,29 +494,29 @@ export interface PinchGestureEvent extends BaseGestureEvent {
/**
* Scaling ratio.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- scale: number;
+ scale: double;
/**
* X-axis coordinate of the kneading center point.
* The unit is vp.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- pinchCenterX: number;
+ pinchCenterX: double;
/**
* Y-axis coordinate of the kneading center point.
* The unit is vp.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- pinchCenterY: number;
+ pinchCenterY: double;
}
/**
* Defines event info for rotation gesture.
@@ -531,11 +531,11 @@ export interface RotationGestureEvent extends BaseGestureEvent {
* Gesture event direction angle.
* The unit is deg.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- angle: number;
+ angle: double;
}
/**
* Defines event info for swipe gesture.
@@ -550,20 +550,20 @@ export interface SwipeGestureEvent extends BaseGestureEvent {
* Gesture event direction angle.
* The unit is deg.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- angle: number;
+ angle: double;
/**
* Gesture event slide speed.
* The unit is vp.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- speed: number;
+ speed: double;
}
/**
* Defines event info for gesture.
@@ -597,91 +597,91 @@ export interface GestureEvent extends BaseEvent {
* The unit is vp.
* Used in PanGesture.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- offsetX: number;
+ offsetX: double;
/**
* Gesture event offset Y.
* The unit is vp.
* Used in PanGesture.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- offsetY: number;
+ offsetY: double;
/**
* Gesture event direction angle.
* The unit is deg.
* Used in RotationGesture and SwipeGesture.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- angle: number;
+ angle: double;
/**
* Gesture event slide speed.
* The unit is vp.
* Used in SwipeGesture.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- speed: number;
+ speed: double;
/**
* Scaling ratio.
* Used in PinchGesture.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- scale: number;
+ scale: double;
/**
* X-axis coordinate of the kneading center point.
* The unit is vp.
* Used in PinchGesture.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- pinchCenterX: number;
+ pinchCenterX: double;
/**
* Y-axis coordinate of the kneading center point.
* The unit is vp.
* Used in PinchGesture.
*
- * @type { number }
+ * @type { double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- pinchCenterY: number;
+ pinchCenterY: double;
/**
* X-axis velocity of the gesture.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- velocityX: number;
+ velocityX: double;
/**
* Y-axis velocity of the gesture.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- velocityY: number;
+ velocityY: double;
/**
* velocity of the gesture.
- * @type {number}
+ * @type {double}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- velocity: number;
+ velocity: double;
}
/**
* Defines the BaseHandlerOptions options.
@@ -739,27 +739,27 @@ export declare interface TapGestureParameters extends BaseHandlerOptions {
/**
* Number of consecutive clicks recognized. If the value is less than 1, the default value is used.
*
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- count?: number;
+ count?: int;
/**
* The hand index that triggers the click. If the value is less than 1, the default value is used.
*
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- fingers?: number;
+ fingers?: int;
/**
* The limited move distance of click. If the value is less than 0, the default value is used.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- distanceThreshold?: number;
+ distanceThreshold?: double;
}
/**
* Defines TapGesture.
@@ -868,19 +868,19 @@ export declare class PanGestureOptions {
/**
* Sets the setDistance attribute.
*
- * @param { number } value
+ * @param { double } value
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- setDistance(value: number): void;
+ setDistance(value: double): void;
/**
* Sets the setFingers attribute.
*
- * @param { number } value
+ * @param { int } value
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- setFingers(value: number): void;
+ setFingers(value: int): void;
/**
* Get the pan direction attribute.
*
@@ -893,11 +893,11 @@ export declare class PanGestureOptions {
* Returns the pan gesture's distance.
* The unit is vp.
*
- * @returns { number } - the distance of the pan gesture.
+ * @returns { double } - the distance of the pan gesture.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- getDistance(): number;
+ getDistance(): double;
}
/**
* Defines PanGesture.
@@ -1165,20 +1165,20 @@ export interface TapGestureHandlerOptions extends BaseHandlerOptions {
* Indicates the number of consecutive clicks recognized. If the value is less than 1, the default value is used.
* The default value is 1.
*
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- count?: number;
+ count?: int;
/**
* Indicates the hand index that triggers the click. If the value is less than 1, the default value is used.
* The default value is 1.
*
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- fingers?: number;
+ fingers?: int;
}
/**
* Defines the TapGesture handler.
@@ -1219,11 +1219,11 @@ export interface LongPressGestureHandlerOptions extends BaseHandlerOptions {
* Indicates the hand index that triggers the long press. If the value is less than 1, the default value is used.
* The default value is 1.
*
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- fingers?: number;
+ fingers?: int;
/**
* Indicates whether an event is triggered repeatedly.
* The default value is false.
@@ -1237,11 +1237,11 @@ export interface LongPressGestureHandlerOptions extends BaseHandlerOptions {
* Indicates minimum press and hold time, in milliseconds.
* The default value is 500ms.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- duration?: number;
+ duration?: double;
}
/**
* Defines the LongPressGesture handler.
@@ -1301,11 +1301,11 @@ export interface PanGestureHandlerOptions extends BaseHandlerOptions {
* Indicates the hand index that triggers the pan. If the value is less than 1, the default value is used.
* The default value is 1.
*
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- fingers?: number;
+ fingers?: int;
/**
* Indicates the move direction of the pan gesture.
* The default value is PanDirection.All.
@@ -1319,11 +1319,11 @@ export interface PanGestureHandlerOptions extends BaseHandlerOptions {
* Indicates minimum move distance.
* The default value is 5vp.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- distance?: number;
+ distance?: double;
}
/**
* Defines the PanGesture handler.
@@ -1391,11 +1391,11 @@ export interface SwipeGestureHandlerOptions extends BaseHandlerOptions {
* Indicates the hand index that triggers the swipe. If the value is less than 1, the default value is used.
* The default value is 1.
*
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- fingers?: number;
+ fingers?: int;
/**
* Indicates the move direction of the swipe gesture.
* The default value is SwipeDirection.All.
@@ -1409,11 +1409,11 @@ export interface SwipeGestureHandlerOptions extends BaseHandlerOptions {
* Indicates minimum move speed.
* The default value is 100vp/s.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- speed?: number;
+ speed?: double;
}
/**
* Defines the SwipeGesture handler.
@@ -1454,20 +1454,20 @@ export interface PinchGestureHandlerOptions extends BaseHandlerOptions {
* Indicates the hand index that triggers the pinch. If the value is less than 1, the default value is used.
* The default value is 1.
*
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- fingers?: number;
+ fingers?: int;
/**
* Indicates minimum pinch move distance.
* The default value is 5vp.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- distance?: number;
+ distance?: double;
}
/**
* Defines the PinchGesture handler.
@@ -1535,20 +1535,20 @@ export interface RotationGestureHandlerOptions extends BaseHandlerOptions {
* Indicates the hand index that triggers the rotation. If the value is less than 1, the default value is used.
* The default value is 1.
*
- * @type { ?number }
+ * @type { ?int }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- fingers?: number;
+ fingers?: int;
/**
* Indicates minimum rotate angle.
* The default value is 1deg.
*
- * @type { ?number }
+ * @type { ?double }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- angle?: number;
+ angle?: double;
}
/**
* Defines the RotationGesture handler.
@@ -1845,11 +1845,11 @@ export declare class GestureRecognizer {
/**
* Returns the tap gesture's finger count.
*
- * @returns { number } - the finger count of the tap gesture.
+ * @returns { int } - the finger count of the tap gesture.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- getFingerCount(): number;
+ getFingerCount(): int;
/**
* Returns the tap gesture's limitFingerCount.
*
@@ -1870,11 +1870,11 @@ export declare class TapRecognizer extends GestureRecognizer {
/**
* Returns the tap gesture's count.
*
- * @returns { number } - the count of the tap gesture.
+ * @returns { int } - the count of the tap gesture.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- getTapCount(): number;
+ getTapCount(): int;
}
/**
* Defines the long press gesture recognizer.
@@ -1896,11 +1896,11 @@ export declare class LongPressRecognizer extends GestureRecognizer {
* Returns the long press gesture's duration.
* The unit is ms.
*
- * @returns { number } - the duration of the long press gesture.
+ * @returns { double } - the duration of the long press gesture.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- getDuration(): number;
+ getDuration(): double;
}
/**
* Defines the swipe gesture recognizer.
@@ -1914,11 +1914,11 @@ export declare class SwipeRecognizer extends GestureRecognizer {
* Returns the swipe gesture's speed.
* The unit is vp/s.
*
- * @returns { number } - the velocity threshold of the swipe gesture.
+ * @returns { double } - the velocity threshold of the swipe gesture.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- getVelocityThreshold(): number;
+ getVelocityThreshold(): double;
/**
* Returns the swipe gesture's direction.
*
@@ -1940,11 +1940,11 @@ export declare class PinchRecognizer extends GestureRecognizer {
* Returns the pinch gesture's distance.
* The unit is vp.
*
- * @returns { number } - the distance of the pinch gesture.
+ * @returns { double } - the distance of the pinch gesture.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- getDistance(): number;
+ getDistance(): double;
}
/**
* Defines the rotation gesture recognizer.
@@ -1957,11 +1957,11 @@ export declare class RotationRecognizer extends GestureRecognizer {
/**
* Returns the rotation gesture's angle.
*
- * @returns { number } - the angle of the rotation gesture.
+ * @returns { double } - the angle of the rotation gesture.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- getAngle(): number;
+ getAngle(): double;
}
/**
* Defines the gesture recognizer.
--
Gitee