diff --git a/api/@ohos.arkui.node.static.d.ets b/api/@ohos.arkui.node.static.d.ets index 9a9aaa4b3a1cfe902af44e7199471e23c523b642..14fc1972b081a5152be9ee1c7a54b82b492aa712 100644 --- a/api/@ohos.arkui.node.static.d.ets +++ b/api/@ohos.arkui.node.static.d.ets @@ -56,7 +56,7 @@ export { typeNode, NodeAdapter } from 'arkui.FrameNode'; * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, NodeBorderRadiuses, CornerRadius, Rect, Edges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from 'arkui.Graphics'; +export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, NodeBorderRadiuses, CornerRadius, Rect, NodeEdges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from 'arkui.Graphics'; /** * Export Graphics. Defines the basic types related to the Graphics. * diff --git a/api/arkui/FrameNode.static.d.ets b/api/arkui/FrameNode.static.d.ets index 4d0317323700ee13ecaf3e967800c4acadff2641..f59320887f472aa3b6b51b94c570350e50380dbf 100644 --- a/api/arkui/FrameNode.static.d.ets +++ b/api/arkui/FrameNode.static.d.ets @@ -20,7 +20,7 @@ */ import { RenderNode } from 'arkui.RenderNode'; -import { Size, Position, Edges, LengthMetrics, SizeT } from 'arkui.Graphics'; +import { Size, Position, NodeEdges, LengthMetrics, SizeT } from 'arkui.Graphics'; import { DrawContext } from 'arkui.Graphics'; import { ComponentContent } from 'arkui.ComponentContent'; import { BusinessError } from '@ohos.base'; @@ -382,29 +382,29 @@ export declare class FrameNode { /** * Get the user config border width of the FrameNode. * - * @returns { Edges } - Returns the user config border width of the FrameNode. + * @returns { NodeEdges } - Returns the user config border width of the FrameNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getUserConfigBorderWidth(): Edges; + getUserConfigBorderWidth(): NodeEdges; /** * Get the user config padding of the FrameNode. * - * @returns { Edges } - Returns the user config padding of the FrameNode. + * @returns { NodeEdges } - Returns the user config padding of the FrameNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getUserConfigPadding(): Edges; + getUserConfigPadding(): NodeEdges; /** * Get the user config margin of the FrameNode. * - * @returns { Edges } - Returns the user config margin of the FrameNode. + * @returns { NodeEdges } - Returns the user config margin of the FrameNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getUserConfigMargin(): Edges; + getUserConfigMargin(): NodeEdges; /** * Get the user config size of the FrameNode. diff --git a/api/arkui/Graphics.static.d.ets b/api/arkui/Graphics.static.d.ets index f8f6ff7ff85b6ff7f87031f1335b6188ecf173bb..c740bfb812cfd3f9d626d2ed349499658218db1c 100644 --- a/api/arkui/Graphics.static.d.ets +++ b/api/arkui/Graphics.static.d.ets @@ -315,11 +315,11 @@ export declare interface Frame { /** * Defines the Edge property. * - * @interface Edges + * @interface NodeEdges * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export interface Edges { +export interface NodeEdges { /** * Left property. * @@ -1100,31 +1100,31 @@ 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. + * @returns { NodeEdges } - 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: number): NodeEdges; /** * 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. + * @returns { NodeEdges } - 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: number): NodeEdges; /** * Obtain a object with all edges are set to the same style. * * @param { BorderStyle } all - The edge style will be set. - * @returns { Edges } - The object with all edges are set to the same style. + * @returns { NodeEdges } - The object with all edges are set to the same style. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export declare function borderStyles(all: BorderStyle): Edges; +export declare function borderStyles(all: BorderStyle): NodeEdges; /** * Obtain a BorderRadiuses object with all edges are set to the same radius. diff --git a/api/arkui/RenderNode.static.d.ets b/api/arkui/RenderNode.static.d.ets index 468b4ba6ea493f18b5070bfd41ec6d55258f580a..8c3c8ebeb796d8462b39d2d8f7d864ae806e44ce 100644 --- a/api/arkui/RenderNode.static.d.ets +++ b/api/arkui/RenderNode.static.d.ets @@ -19,7 +19,7 @@ * @kit ArkUI * @arkts 1.2 */ -import { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, NodeBorderRadiuses, ShapeMask, ShapeClip, Edges, LengthMetricsUnit } from 'arkui.Graphics'; +import { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, NodeBorderRadiuses, ShapeMask, ShapeClip, NodeEdges, LengthMetricsUnit } from 'arkui.Graphics'; import { BorderStyle } from '@ohos.arkui.component'; /** @@ -424,58 +424,58 @@ export declare class RenderNode { /** * Set border style of the RenderNode. * - * @param { Edges } style - the border style of the RenderNode. + * @param { NodeEdges } style - the border style of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set borderStyle(style: Edges); + set borderStyle(style: NodeEdges); /** * Get border style of the RenderNode. * - * @returns { Edges } - Returns the border style of the RenderNode. + * @returns { NodeEdges } - Returns the border style of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get borderStyle(): Edges; + get borderStyle(): NodeEdges | undefined; /** * Set border width of the RenderNode. * - * @param { Edges } width - the border width of the RenderNode. + * @param { NodeEdges } width - the border width of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set borderWidth(width: Edges); + set borderWidth(width: NodeEdges); /** * Get border width of the RenderNode. * - * @returns { Edges } - Returns the border width of the RenderNode. + * @returns { NodeEdges } - Returns the border width of the RenderNode. * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get borderWidth(): Edges; + get borderWidth(): NodeEdges | undefined; /** * Set border color of the RenderNode. * - * @param { Edges } color - the border color of the RenderNode. + * @param { NodeEdges } color - the border color of the RenderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - set borderColor(color: Edges); + set borderColor(color: NodeEdges); /** * Get border color of the RenderNode. * - * @returns { Edges } - Returns the border color of the RenderNode. + * @returns { NodeEdges } - Returns the border color of the RenderNode. * @default 0XFF000000 * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get borderColor(): Edges; + get borderColor(): NodeEdges | undefined; /** * Set border radius of the RenderNode. @@ -512,7 +512,7 @@ export declare class RenderNode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - get shapeMask(): ShapeMask; + get shapeMask(): ShapeMask | undefined; /** * Set shape clip of the RenderNode.