diff --git a/api/@ohos.arkui.UIContext.static.d.ets b/api/@ohos.arkui.UIContext.static.d.ets index 5b07f38ef099391f34701fc1f553b6fe4754a074..d47af96c7b278cbdddfc9e394d50bc721df753da 100755 --- a/api/@ohos.arkui.UIContext.static.d.ets +++ b/api/@ohos.arkui.UIContext.static.d.ets @@ -2248,20 +2248,20 @@ export declare abstract class FrameCallback { /** * Call when a new display frame is being rendered. * - * @param { number } frameTimeInNano - The frame time in nanoseconds. + * @param { long } frameTimeInNano - The frame time in nanoseconds. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onFrame(frameTimeInNano: number): void; + onFrame(frameTimeInNano: long): void; /** * Called at the end of the next idle frame. If there is no next frame, will request one automatically. * - * @param { number } timeLeftInNano - The remaining time from the deadline for this frame. + * @param { long } timeLeftInNano - The remaining time from the deadline for this frame. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onIdle(timeLeftInNano: number): void; + onIdle(timeLeftInNano: long): void; } /** @@ -2801,35 +2801,35 @@ export declare class UIContext { /** * Get FrameNode by uniqueId. * - * @param { number } id - The uniqueId of the FrameNode. + * @param { long } id - The uniqueId of the FrameNode. * @returns { FrameNode | null } - The FrameNode with the target uniqueId, or null if the frameNode is not existed. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getFrameNodeByUniqueId(id: number): FrameNode | null; + getFrameNodeByUniqueId(id: long): FrameNode | null; /** * Get page information of the frameNode with uniqueId. * - * @param { number } id - The uniqueId of the target FrameNode. + * @param { long } id - The uniqueId of the target FrameNode. * @returns { PageInfo } - The page information of the frameNode with the target uniqueId, includes * navDestination and router page information. If the frame node does not have navDestination and * router page information, it will return an empty object. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getPageInfoByUniqueId(id: number): PageInfo; + getPageInfoByUniqueId(id: long): PageInfo; /** * Get navigation information of the frameNode with uniqueId. * - * @param { number } id - The uniqueId of the target FrameNode. + * @param { long } id - The uniqueId of the target FrameNode. * @returns { observer.NavigationInfo | undefined } - The navigation information of the frameNode with the * target uniqueId, or undefined if the frameNode is not existed or does not have navigation information. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getNavigationInfoByUniqueId(id: number): observer.NavigationInfo | undefined; + getNavigationInfoByUniqueId(id: long): observer.NavigationInfo | undefined; /** * Dynamic dimming. @@ -2871,57 +2871,57 @@ export declare class UIContext { /** * Converts a value in vp units to a value in px. - * @param { number } value - * @returns { number } + * @param { double } value + * @returns { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - vp2px(value: number): number; + vp2px(value: double): double; /** * Converts a value in px units to a value in vp. - * @param { number } value - * @returns { number } + * @param { double } value + * @returns { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - px2vp(value: number): number; + px2vp(value: double): double; /** * Converts a value in fp units to a value in px. - * @param { number } value - * @returns { number } + * @param { double } value + * @returns { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - fp2px(value: number): number; + fp2px(value: double): double; /** * Converts a value in px units to a value in fp. - * @param { number } value - * @returns { number } + * @param { double } value + * @returns { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - px2fp(value: number): number; + px2fp(value: double): double; /** * Converts a value in lpx units to a value in px. - * @param { number } value - * @returns { number } + * @param { double } value + * @returns { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - lpx2px(value: number): number; + lpx2px(value: double): double; /** * Converts a value in px units to a value in lpx. - * @param { number } value - * @returns { number } + * @param { double } value + * @returns { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - px2lpx(value: number): number; + px2lpx(value: double): double; /** * Get current LocalStorage shared from stage. @@ -3042,11 +3042,11 @@ export declare class UIContext { * Post a frame callback to run on the next frame after the specified delay. * * @param { FrameCallback } frameCallback - The frame callback to run on the next frame. - * @param { number } delayTime - The delay time in milliseconds, + * @param { long } delayTime - The delay time in milliseconds, * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - postDelayedFrameCallback(frameCallback: FrameCallback, delayTime: number): void; + postDelayedFrameCallback(frameCallback: FrameCallback, delayTime: long): void; /** * Require DynamicSyncScene by id. @@ -3177,14 +3177,14 @@ export declare class UIContext { /** * Sets the component freezing flag based on the component uniqueId to prevent the * UI component from marking and updating dirty areas. - * @param { number } uniqueId - Unique Id of the frame node. + * @param { long } uniqueId - Unique Id of the frame node. * @param { boolean } isFrozen - whether the component is frozen. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 */ - freezeUINode(uniqueId: number, isFrozen: boolean): void; + freezeUINode(uniqueId: long, isFrozen: boolean): void; /** * Get object text menu controller. diff --git a/api/@ohos.arkui.observer.static.d.ets b/api/@ohos.arkui.observer.static.d.ets index 96c1b2bcc33dbdaf891d2b3f811d933a783d0fd2..5c57a199f4e37f611ec3fd5dcf4d798f0b3a2287 100644 --- a/api/@ohos.arkui.observer.static.d.ets +++ b/api/@ohos.arkui.observer.static.d.ets @@ -504,11 +504,11 @@ declare namespace uiObserver { /** * The changed screen density. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - density: number; + density: double; } /** * NavDestination switch info diff --git a/api/@ohos.arkui.performanceMonitor.static.d.ets b/api/@ohos.arkui.performanceMonitor.static.d.ets index c035aa775bd1629f8a8320a5e416a093a3cd0011..a6a5350c7d6161e5eaf291e1a0481b20096a95cd 100644 --- a/api/@ohos.arkui.performanceMonitor.static.d.ets +++ b/api/@ohos.arkui.performanceMonitor.static.d.ets @@ -143,12 +143,12 @@ declare namespace performanceMonitor { * * @param { ActionType } type - Indicates the scene input event type. * @param { SourceType } sourceType - Indicates the scene input source type. - * @param { number } time - Indicates the scene input time. + * @param { long } time - Indicates the scene input time. * @throws { BusinessError } 202 - not system application. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 */ - function recordInputEventTime(type: ActionType, sourceType: SourceType, time: number): void; + function recordInputEventTime(type: ActionType, sourceType: SourceType, time: long): void; } export default performanceMonitor; \ No newline at end of file diff --git a/api/@ohos.arkui.shape.static.d.ets b/api/@ohos.arkui.shape.static.d.ets index c84cfe09e2ae98ef477db1f4e3ba3c029e265dfc..e067ee411160390849da3782ea65b598233cd32d 100644 --- a/api/@ohos.arkui.shape.static.d.ets +++ b/api/@ohos.arkui.shape.static.d.ets @@ -209,12 +209,12 @@ export declare class RectShape extends BaseShape { /** * Sets the corner radius for RectShape. * - * @param { number | string | Array } radius + * @param { double | string | Array } radius * @returns { RectShape } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - radius(radius: number | string | Array): RectShape; + radius(radius: double | string | Array): RectShape; } /** * Defines a circle drawing class. diff --git a/api/@ohos.uiAppearance.static.d.ets b/api/@ohos.uiAppearance.static.d.ets index 944beaeabe83df6479a47a6232f829a7dd8a10a6..5c750ab919abe8eefef25d7e4363bc55a3514d2a 100644 --- a/api/@ohos.uiAppearance.static.d.ets +++ b/api/@ohos.uiAppearance.static.d.ets @@ -107,25 +107,21 @@ declare namespace uiAppearance { * Set the system font-scale. * * @permission ohos.permission.UPDATE_CONFIGURATION - * @param { number } fontScale - indicates the font-scale to set + * @param { double } fontScale - indicates the font-scale to set * @returns { Promise } the promise returned by the function * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Parameter error. Possible causes: - *
1. Mandatory parameters are left unspecified. - *
2. Incorrect parameters types. - *
3. Parameter verification failed. * @throws { BusinessError } 500001 - Internal error. * @syscap SystemCapability.ArkUI.UiAppearance * @systemapi hide this for inner system use * @since 20 */ - function setFontScale(fontScale: number): Promise; + function setFontScale(fontScale: double): Promise; /** * Acquire the current font-scale. * - * @returns { number } current font-scale. + * @returns { double } current font-scale. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. @@ -134,30 +130,26 @@ declare namespace uiAppearance { * @syscap SystemCapability.ArkUI.UiAppearance * @since 20 */ - function getFontScale(): number; + function getFontScale(): double; /** * Set the system font-weight-scale. * * @permission ohos.permission.UPDATE_CONFIGURATION - * @param { number } fontWeightScale - indicates the font-weight-scale to set + * @param { double } fontWeightScale - indicates the font-weight-scale to set * @returns { Promise } the promise returned by the function * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Parameter error. Possible causes: - *
1. Mandatory parameters are left unspecified. - *
2. Incorrect parameters types. - *
3. Parameter verification failed. * @throws { BusinessError } 500001 - Internal error. * @syscap SystemCapability.ArkUI.UiAppearance * @systemapi hide this for inner system use * @since 20 */ - function setFontWeightScale(fontWeightScale: number): Promise; + function setFontWeightScale(fontWeightScale: double): Promise; /** * Acquire the current font-weight-scale. * - * @returns { number } current font-weight-scale. + * @returns { double } current font-weight-scale. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. *
2. Incorrect parameters types. @@ -166,6 +158,6 @@ declare namespace uiAppearance { * @syscap SystemCapability.ArkUI.UiAppearance * @since 20 */ - function getFontWeightScale(): number; + function getFontWeightScale(): double; } export default uiAppearance; diff --git a/api/arkui/FrameNode.static.d.ets b/api/arkui/FrameNode.static.d.ets index 01f7065205ea5775066c0e9519b7d0349f33c252..88a7fdf8854216302e5128f34b84bca9a3cb9e6b 100644 --- a/api/arkui/FrameNode.static.d.ets +++ b/api/arkui/FrameNode.static.d.ets @@ -239,31 +239,31 @@ export declare class FrameNode { /** * Get a child of the current FrameNode by index. * - * @param { number } index - The index of the desired node in the children of FrameNode. + * @param { int } index - The index of the desired node in the children of FrameNode. * @param { ExpandMode | undefined } [expandMode] - The expand mode. Default value is ExpandMode.EXPAND. * @returns { FrameNode | null } - Returns a FrameNode. When the required node does not exist, returns null. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getChild(index: number, expandMode?: ExpandMode | undefined): FrameNode | null; + getChild(index: int, expandMode?: ExpandMode | undefined): FrameNode | null; /** * Get the index of the current FrameNode's first child node which is on the tree. * - * @returns { number } - Returns the index of the current FrameNode's first child node which is on the tree. + * @returns { int } - Returns the index of the current FrameNode's first child node which is on the tree. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getFirstChildIndexWithoutExpand(): number; + getFirstChildIndexWithoutExpand(): int; /** * Get the index of the current FrameNode's last child node which is on the tree. * - * @returns { number } - Returns the index of the current FrameNode's last child node which is on the tree. + * @returns { int } - Returns the index of the current FrameNode's last child node which is on the tree. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getLastChildIndexWithoutExpand(): number; + getLastChildIndexWithoutExpand(): int; /** * Get the first child of the current FrameNode. @@ -308,23 +308,23 @@ export declare class FrameNode { /** * Get the children count of the current FrameNode. * - * @returns { number } - Returns the number of the children of the current FrameNode. + * @returns { int } - Returns the number of the children of the current FrameNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getChildrenCount(): number; + getChildrenCount(): int; /** * Move node to the target Framenode as child. * * @param { FrameNode } targetParent - The target parent node. - * @param { number } [index] - The index which the node is moved to. If the value is a negative number or invalid, + * @param { int } [index] - The index which the node is moved to. If the value is a negative number or invalid, * the node is moved to the end of the target parent node. Moves to the end of the target parent node by default. * @throws { BusinessError } 100021 - The FrameNode is not modifiable. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - moveTo(targetParent: FrameNode, index?: number): void; + moveTo(targetParent: FrameNode, index?: int): void; /** * Dispose the FrameNode immediately. @@ -427,11 +427,11 @@ export declare class FrameNode { /** * Get the unique id of the FrameNode. * - * @returns { number } - Returns the unique id of the FrameNode. + * @returns { long } - Returns the unique id of the FrameNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getUniqueId(): number; + getUniqueId(): long; /** * Get the type of the FrameNode. The type is the name of component, for example, the nodeType of Button is "Button", @@ -446,11 +446,11 @@ export declare class FrameNode { /** * Get the opacity of the FrameNode. * - * @returns { number } - Returns the opacity of the FrameNode. + * @returns { double } - Returns the opacity of the FrameNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getOpacity(): number; + getOpacity(): double; /** * Get if the FrameNode is visible. @@ -666,7 +666,7 @@ export declare class FrameNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - addComponentContent(content: ComponentContent): void; + addComponentContent(content: ComponentContent): void; /** * Set the cross-language options of the target FrameNode. @@ -2144,19 +2144,19 @@ export declare class NodeAdapter { /** * Set the total number of node count. * - * @param { number } count - The total number of node count. + * @param { int } count - The total number of node count. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set totalNodeCount(count: number); + set totalNodeCount(count: int); /** * Get the total number of node count. * - * @returns { number } - Return the total number of node count. + * @returns { int } - Return the total number of node count. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get totalNodeCount(): number; + get totalNodeCount(): int; /** * Define the operation of reloading all data. * @@ -2167,39 +2167,39 @@ export declare class NodeAdapter { /** * Define the data reload operation.Reload a specified amount of data starting from the index value. * - * @param { number } start - Start loading index values for data. - * @param { number } count - Load the number of data. + * @param { int } start - Start loading index values for data. + * @param { int } count - Load the number of data. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - reloadItem(start: number, count: number): void; + reloadItem(start: int, count: int): void; /** * Define data deletion operations.Delete a specified amount of data starting from the index value. * - * @param { number } start - Start deleting index values for data. - * @param { number } count - Delete the number of data. + * @param { int } start - Start deleting index values for data. + * @param { int } count - Delete the number of data. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - removeItem(start: number, count: number): void; + removeItem(start: int, count: int): void; /** * Define data insertion operations.Insert a specified amount of data starting from the index value. * - * @param { number } start - Start Insert index values for data. - * @param { number } count - Insert the number of data. + * @param { int } start - Start Insert index values for data. + * @param { int } count - Insert the number of data. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - insertItem(start: number, count: number): void; + insertItem(start: int, count: int): void; /** * Define data movement operations. Move data from the starting index to the ending index. * - * @param { number } from - Starting index value. - * @param { number } to - End index value. + * @param { int } from - Starting index value. + * @param { int } to - End index value. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - moveItem(from: number, to: number): void; + moveItem(from: int, to: int): void; /** * Obtain all data results. * @@ -2227,39 +2227,39 @@ export declare class NodeAdapter { * Call this callback when loading for the first time or when a new node slides in.Used to generate custom IDs, * developers need to ensure the uniqueness of the IDs themselves. * - * @param { number } index - Load the index value of the data. - * @returns { number } - Returning the developer's custom ID requires the developer to ensure its uniqueness. + * @param { int } index - Load the index value of the data. + * @returns { int } - Returning the developer's custom ID requires the developer to ensure its uniqueness. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onGetChildId(index: number): number; + onGetChildId(index: int): int; /** * Call this callback when loading for the first time or when a new node slides in. * - * @param { number } index - Load the index value of the data. + * @param { int } index - Load the index value of the data. * @returns { FrameNode } - Returns the FrameNode node that loads the node. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onCreateChild(index: number): FrameNode; + onCreateChild(index: int): FrameNode; /** * Called when the child node is about to be destroyed. * - * @param { number } id - The child node ID that is about to be destroyed. + * @param { int } id - The child node ID that is about to be destroyed. * @param { FrameNode } node - The FrameNode node that is about to be destroyed. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onDisposeChild(id: number, node: FrameNode): void; + onDisposeChild(id: int, node: FrameNode): void; /** * Call this callback when reloading or reusing. * - * @param { number } id - The child node ID that is about to be reloaded. + * @param { int } id - The child node ID that is about to be reloaded. * @param { FrameNode } node - Reused FrameNode nodes. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onUpdateChild(id: number, node: FrameNode): void; + onUpdateChild(id: int, node: FrameNode): void; /** * Add a NodeAdapter to bind to the node.A node can only be bound to one NodeAdapter. Binding failure returns false. * diff --git a/api/arkui/Graphics.static.d.ets b/api/arkui/Graphics.static.d.ets index 958b186d47a73d47a24716613cb29d130ca58836..c6873ad3712c68356d99b7e94ece373e8e59e9df 100644 --- a/api/arkui/Graphics.static.d.ets +++ b/api/arkui/Graphics.static.d.ets @@ -36,20 +36,20 @@ export interface Size { /** * Get the width of the Size. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - width: number; + width: double; /** * Get the height of the Size. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - height: number; + height: double; } /** @@ -98,20 +98,20 @@ interface Vector2 { /** * Value for x-axis of the vector. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - x: number; + x: double; /** * Value for y-axis of the vector. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - y: number; + y: double; } /** @@ -153,56 +153,56 @@ interface Vector3 { /** * Value for x-axis of the vector. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - x: number; + x: double; /** * Value for y-axis of the vector. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - y: number; + y: double; /** * Value for z-axis of the vector. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - z: number; + z: double; } /** - * It's a 4x4 matrix, represent by number[]. + * It's a 4x4 matrix, represent by double[]. * - * @typedef { [number, number, number, number, number, number, number, number, number, number, number, number, number, - * number, number, number] } Matrix4 + * @typedef { [double, double, double, double, double, double, double, double, double, double, double, double, double, + * double, double, double] } Matrix4 * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ export type Matrix4 = [ - 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 ]; /** @@ -278,38 +278,38 @@ export declare interface Frame { /** * Position value for x-axis of the frame info. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - x: number; + x: double; /** * Position value for y-axis of the frame info. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - y: number; + y: double; /** * Size value for width of the frame info. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - width: number; + width: double; /** * Size value for height of the frame info. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - height: number; + height: double; } /** @@ -473,67 +473,67 @@ export declare class LengthMetrics { /** * Constructor. * - * @param { number } value - The value of length. + * @param { double } value - The value of length. * @param { LengthUnit } [unit] - The length unit. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - constructor(value: number, unit?:LengthUnit); + constructor(value: double, unit?:LengthUnit); /** * Init a lengthMetrics with px unit. * - * @param { number } value - The value of the length metrics. + * @param { double } value - The value of the length metrics. * @returns { LengthMetrics } Returns the lengthMetrics object with unit px. * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - static px(value: number): LengthMetrics; + static px(value: double): LengthMetrics; /** * Init a lengthMetrics with vp unit. * - * @param { number } value - The value of the length metrics. + * @param { double } value - The value of the length metrics. * @returns { LengthMetrics } - Returns the lengthMetrics object with unit vp. * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - static vp(value: number): LengthMetrics; + static vp(value: double): LengthMetrics; /** * Init a lengthMetrics with fp unit. * - * @param { number } value - The value of the length metrics. + * @param { double } value - The value of the length metrics. * @returns { LengthMetrics } Returns the lengthMetrics object with unit fp. * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - static fp(value: number): LengthMetrics; + static fp(value: double): LengthMetrics; /** * Init a lengthMetrics with percent unit. * - * @param { number } value - The value of the length metrics. + * @param { double } value - The value of the length metrics. * @returns { LengthMetrics } Returns the lengthMetrics object with unit percent. * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - static percent(value: number): LengthMetrics; + static percent(value: double): LengthMetrics; /** * Init a lengthMetrics with lpx unit. * - * @param { number } value - The value of the length metrics. + * @param { double } value - The value of the length metrics. * @returns { LengthMetrics } Returns the lengthMetrics object with unit lpx. * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - static lpx(value: number): LengthMetrics; + static lpx(value: double): LengthMetrics; /** * Init a lengthMetrics with Resource unit. @@ -559,11 +559,11 @@ export declare class LengthMetrics { /** * The value of the LengthMetrics. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - public value: number; + public value: double; } /** @@ -576,27 +576,27 @@ export declare class ColorMetrics { /** * Instantiate the ColorMetrics class using color number * - * @param { number } value - color number + * @param { int } value - color number * @returns { ColorMetrics } ColorMetrics class * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - static numeric(value: number): ColorMetrics; + static numeric(value: int): ColorMetrics; /** * Instantiate the ColorMetrics class using color rgb * - * @param { number } red - red value of rgba - * @param { number } green - green value of rgba - * @param { number } blue - blue value of rgba - * @param { number } [alpha] - opacity value of rgba + * @param { int } red - red value of rgba + * @param { int } green - green value of rgba + * @param { int } blue - blue value of rgba + * @param { double } [alpha] - opacity value of rgba * @returns { ColorMetrics } ColorMetrics class * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - static rgba(red: number, green: number, blue: number, alpha?: number): ColorMetrics; + static rgba(red: int, green: int, blue: int, alpha?: double): ColorMetrics; /** * Instantiate the ColorMetrics class using ResourceColor @@ -636,38 +636,38 @@ export declare class ColorMetrics { /** * Get red value of the ColorMetrics. * - * @returns { number } The red value of the ColorMetrics. + * @returns { int } The red value of the ColorMetrics. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get red(): number; + get red(): int; /** * Get green value of the ColorMetrics. * - * @returns { number } The green value of the ColorMetrics. + * @returns { int } The green value of the ColorMetrics. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get green(): number; + get green(): int; /** * Get blue value of the ColorMetrics. * - * @returns { number } The blue value of the ColorMetrics. + * @returns { int } The blue value of the ColorMetrics. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get blue(): number; + get blue(): int; /** * Get opacity value of the ColorMetrics. * - * @returns { number } The opacity value of the ColorMetrics. + * @returns { int } The opacity value of the ColorMetrics. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get alpha(): number; + get alpha(): int; } /** @@ -727,11 +727,11 @@ export type CornerRadius = Corners; /** * BorderRadiuses info. * - * @typedef { Corners } BorderRadiuses + * @typedef { Corners } BorderRadiuses * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export type BorderRadiuses = Corners; +export type BorderRadiuses = Corners; /** * Rect info. @@ -780,29 +780,29 @@ export interface Circle { /** * The x-coordinate of the center of the Circle. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - centerX: number, + centerX: double, /** * The y-coordinate of the center of the Circle. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - centerY: number, + centerY: double, /** * The radius of the Circle. * - * @type { number } + * @type { double } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - radius: number; + radius: double; } /** @@ -886,32 +886,32 @@ export declare class ShapeMask { /** * The fill color of the ShapeMask. * - * @type { number } + * @type { int } * @default 0XFF000000 * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - fillColor: number; + fillColor: int; /** * The stroke color of the ShapeMask. * - * @type { number } + * @type { int } * @default 0XFF000000 * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - strokeColor: number; + strokeColor: int; /** * The stroke width of the ShapeMask. * - * @type { number } + * @type { int } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - strokeWidth: number; + strokeWidth: int; } @@ -979,22 +979,22 @@ export declare class ShapeClip { /** * Obtain a object with all edges are set to the same color. * - * @param { number } all - The edge color will be set. - * @returns { Edges } - The object with all edges are set to the same color. + * @param { int } all - The edge color will be set. + * @returns { Edges } - The object with all edges are set to the same color. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export declare function edgeColors(all: number): Edges; +export declare function edgeColors(all: int): Edges; /** * Obtain a object with all edges are set to the same width. * - * @param { number } all - The edge width will be set. - * @returns { Edges } - The object with all edges are set to the same width. + * @param { double } all - The edge width will be set. + * @returns { Edges } - The object with all edges are set to the same width. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export declare function edgeWidths(all: number): Edges; +export declare function edgeWidths(all: double): Edges; /** * Obtain a object with all edges are set to the same style. @@ -1009,9 +1009,9 @@ export declare function borderStyles(all: BorderStyle): Edges; /** * Obtain a BorderRadiuses object with all edges are set to the same radius. * - * @param { number } all - The edge radius will be set. + * @param { double } all - The edge radius will be set. * @returns { BorderRadiuses } - The BorderRadiuses object. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export declare function borderRadiuses(all: number): BorderRadiuses; +export declare function borderRadiuses(all: double): BorderRadiuses; diff --git a/api/arkui/NodeController.static.d.ets b/api/arkui/NodeController.static.d.ets index a8e00a4c1642469159eb25e03dc66a473e4d3d58..1c35b0c8dbcd3c20ac59963534ddf08b38ba592d 100644 --- a/api/arkui/NodeController.static.d.ets +++ b/api/arkui/NodeController.static.d.ets @@ -126,44 +126,44 @@ export declare abstract class NodeController { /** * OnWillBind Method. Executed before the NodeController is bound to a NodeContainer. * - * @param { number } containerId - the uniqueId of the NodeContainer. + * @param { long } containerId - the uniqueId of the NodeContainer. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 */ - onWillBind(containerId: number): void; + onWillBind(containerId: long): void; /** * OnWillUnbind Method. Executed before the NodeController is unbind with the NodeContainer. * - * @param { number } containerId - the uniqueId of the NodeContainer. + * @param { long } containerId - the uniqueId of the NodeContainer. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 */ - onWillUnbind(containerId: number): void; + onWillUnbind(containerId: long): void; /** * OnBind Method. Executed when the NodeController is bound to a NodeContainer. * - * @param { number } containerId - the uniqueId of the NodeContainer. + * @param { long } containerId - the uniqueId of the NodeContainer. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 */ - onBind(containerId: number): void; + onBind(containerId: long): void; /** * OnUnbind Method. Executed when the NodeController is unbind with the NodeContainer. * - * @param { number } containerId - the uniqueId of the NodeContainer. + * @param { long } containerId - the uniqueId of the NodeContainer. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 */ - onUnbind(containerId: number): void; + onUnbind(containerId: long): void; } diff --git a/api/arkui/RenderNode.static.d.ets b/api/arkui/RenderNode.static.d.ets index 7955d7dff93a7d453a1043d4f7deae1474faeee9..f3ed67561cf467f34c2bccbbead4c18384cd09f8 100644 --- a/api/arkui/RenderNode.static.d.ets +++ b/api/arkui/RenderNode.static.d.ets @@ -77,12 +77,12 @@ export declare class RenderNode { /** * Get a child of the current RenderNode by index. * - * @param { number } index - The index of the desired node in the children of RenderNode. + * @param { int } index - The index of the desired node in the children of RenderNode. * @returns { RenderNode | null } - Returns a RenderNode. When the required node does not exist, returns null. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getChild(index: number): RenderNode | null; + getChild(index: int): RenderNode | null; /** * Get the first child of the current RenderNode. @@ -116,20 +116,20 @@ export declare class RenderNode { /** * Set the background color of the RenderNode. * - * @param { number } color - The background color. Colors are defined as ARGB format represented by number. + * @param { int } color - The background color. Colors are defined as ARGB format represented by number. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set backgroundColor(color: number); + set backgroundColor(color: int); /** * Get the background color of the RenderNode. * - * @returns { number } - Returns a background color. Colors are defined as ARGB format represented by number. + * @returns { int } - Returns a background color. Colors are defined as ARGB format represented by number. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get backgroundColor(): number; + get backgroundColor(): int; /** * Set whether the RenderNode clip to frame. @@ -152,20 +152,20 @@ export declare class RenderNode { /** * Set opacity of the RenderNode. * - * @param { number } value - The opacity of the RenderNode. + * @param { double } value - The opacity of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set opacity(value: number); + set opacity(value: double); /** * Get opacity of the RenderNode. * - * @returns { number } Returns the opacity of the RenderNode. + * @returns { double } Returns the opacity of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get opacity(): number; + get opacity(): double; /** * Set frame size of the RenderNode. @@ -314,22 +314,22 @@ export declare class RenderNode { /** * Set shadow color of the RenderNode. * - * @param { number } color - the shadow color of the RenderNode. Colors are defined as ARGB format represented by + * @param { int } color - the shadow color of the RenderNode. Colors are defined as ARGB format represented by * number. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set shadowColor(color: number); + set shadowColor(color: int); /** * Get shadow color of the RenderNode. * - * @returns { number } - Returns the shadow color of the RenderNode. Colors are defined as ARGB format represented by + * @returns { int } - Returns the shadow color of the RenderNode. Colors are defined as ARGB format represented by * number. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get shadowColor(): number; + get shadowColor(): int; /** * Set shadow offset of the RenderNode. @@ -370,56 +370,56 @@ export declare class RenderNode { /** * Set shadow alpha of the RenderNode. * - * @param { number } alpha - the shadow alpha of the RenderNode. + * @param { double } alpha - the shadow alpha of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set shadowAlpha(alpha: number); + set shadowAlpha(alpha: double); /** * Get shadow alpha of the RenderNode. * - * @returns { number } - Returns the shadow alpha of the RenderNode. + * @returns { double } - Returns the shadow alpha of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get shadowAlpha(): number; + get shadowAlpha(): double; /** * Set shadow elevation of the RenderNode. * - * @param { number } elevation - the shadow elevation of the RenderNode. + * @param { double } elevation - the shadow elevation of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set shadowElevation(elevation: number); + set shadowElevation(elevation: double); /** * Get shadow elevation of the RenderNode. * - * @returns { number } - Returns the shadow elevation of the RenderNode. + * @returns { double } - Returns the shadow elevation of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get shadowElevation(): number; + get shadowElevation(): double; /** * Set shadow radius of the RenderNode. * - * @param { number } radius - the shadow radius of the RenderNode. + * @param { double } radius - the shadow radius of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set shadowRadius(radius: number); + set shadowRadius(radius: double); /** * Get shadow radius of the RenderNode. * - * @returns { number } - Returns the shadow radius of the RenderNode. + * @returns { double } - Returns the shadow radius of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get shadowRadius(): number; + get shadowRadius(): double; /** * Set border style of the RenderNode. @@ -442,17 +442,16 @@ export declare class RenderNode { /** * Set border width of the RenderNode. * - * @param { Edges } width - the border width of the RenderNode. + * @param { Edges } width - the border width of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set borderWidth(width: Edges); + set borderWidth(width: Edges); /** * Get border width of the RenderNode. * * @returns { Edges } - Returns the border width of the RenderNode. - * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -461,17 +460,16 @@ export declare class RenderNode { /** * Set border color of the RenderNode. * - * @param { Edges } color - the border color of the RenderNode. + * @param { Edges } color - the border color of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set borderColor(color: Edges); + set borderColor(color: Edges); /** * Get border color of the RenderNode. * * @returns { Edges } - Returns the border color of the RenderNode. - * @default 0XFF000000 * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ diff --git a/api/arkui/component/resources.static.d.ets b/api/arkui/component/resources.static.d.ets index 7cc0b410236756ed8fc707d42d8486db4144a3de..e8d9489785aa467fc986b3b8b5475710afb2c560 100644 --- a/api/arkui/component/resources.static.d.ets +++ b/api/arkui/component/resources.static.d.ets @@ -24,8 +24,8 @@ import { Resource } from './../../../api/global/resource'; /** * Obtain the resource in resources, used by plugin. * - * @param { number } id - Indicates the id of resource. - * @param { number } type - Indicates the type of resource. + * @param { long } id - Indicates the id of resource. + * @param { long } type - Indicates the type of resource. * @param { string } bundleName - Indicates the name of bundle. * @param { string } moduleName - Indicates the name of module. * @param { Object[] } params - Custom parameters. @@ -34,13 +34,13 @@ import { Resource } from './../../../api/global/resource'; * @since 20 */ export declare function _r( - id: number, type: number, bundleName: string, moduleName: string, ...params: Object[]): Resource; + id: long, type: long, bundleName: string, moduleName: string, ...params: Object[]): Resource; /** * Obtain the resource in resources/rawfile, used by plugin. * - * @param { number } id - Indicates the id of resource. - * @param { number } type - Indicates the type of resource. + * @param { long } id - Indicates the id of resource. + * @param { long } type - Indicates the type of resource. * @param { string } bundleName - Indicates the name of bundle. * @param { string } moduleName - Indicates the name of module. * @param { Object[] } params - Custom parameters. @@ -49,4 +49,4 @@ export declare function _r( * @since 20 */ export declare function _rawfile( - id: number, type: number, bundleName: string, moduleName: string, ...params: Object[]): Resource; + id: long, type: long, bundleName: string, moduleName: string, ...params: Object[]): Resource; diff --git a/api/arkui/component/units.static.d.ets b/api/arkui/component/units.static.d.ets index 3a151b75bff0defdcba4baf54e1ab10d7f169d1b..91cd09fca39dddf5287d8d6539c1007fa48d5d4e 100644 --- a/api/arkui/component/units.static.d.ets +++ b/api/arkui/component/units.static.d.ets @@ -37,11 +37,11 @@ export type Resource = _Resource; /** * Defines the length property with string, number and resource unit. * - * @typedef { string | number | Resource } Length + * @typedef { string | double | Resource } Length * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export type Length = string | number | Resource; +export type Length = string | double | Resource; /** * Defines the length property with number in units of px. @@ -55,11 +55,11 @@ export type PX = string; /** * Defines the length property with number or number in units of vp. * - * @typedef { string | number } VP + * @typedef { string | double } VP * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export type VP = string | number; +export type VP = string | double; /** * Defines the length property with number in units of fp. @@ -712,11 +712,11 @@ export declare interface Offset { /** * Defines the color which can use resource. * - * @typedef { Color | number | string | Resource } ResourceColor + * @typedef { Color | int | string | Resource } ResourceColor * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export type ResourceColor = Color | number | string | Resource; +export type ResourceColor = Color | int | string | Resource; /** * Defines the length constrain property.