From 974ecbc92bfb4a859ea70974a99c344a7d4c7127 Mon Sep 17 00:00:00 2001 From: wangmiaoliang Date: Wed, 10 Sep 2025 17:00:14 +0800 Subject: [PATCH] change Edges to NodeEdges Signed-off-by: wangmiaoliang Change-Id: Ib65a8ad2087d27629a1a0c948662a4c7a903af6e --- api/@ohos.arkui.node.static.d.ets | 2 +- api/arkui/FrameNode.static.d.ets | 14 +++++++------- api/arkui/Graphics.static.d.ets | 16 ++++++++-------- api/arkui/RenderNode.static.d.ets | 28 ++++++++++++++-------------- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/api/@ohos.arkui.node.static.d.ets b/api/@ohos.arkui.node.static.d.ets index 9a9aaa4b3a..14fc1972b0 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 4d03173237..f59320887f 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 f8f6ff7ff8..c740bfb812 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 468b4ba6ea..8c3c8ebeb7 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. -- Gitee