From a25c2cc9ed124e033b0c4e378ab976215510b2c5 Mon Sep 17 00:00:00 2001 From: wujinhui Date: Fri, 8 Aug 2025 10:25:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?frmeNode=20=E6=96=B0=E5=A2=9E=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20applyAttributesFinish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wujinhui --- api/arkui/FrameNode.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/arkui/FrameNode.d.ts b/api/arkui/FrameNode.d.ts index af643929bd..8b2d9e2642 100644 --- a/api/arkui/FrameNode.d.ts +++ b/api/arkui/FrameNode.d.ts @@ -3239,6 +3239,22 @@ export declare namespace typeNode { * @since 20 */ export function getAttribute(node: FrameNode, nodeType: 'GridItem'): GridItemAttribute | undefined; + + /** + * Get the attribute instance of FrameNode to set attributes. + * If the node is not created using ArkTS, cross-language access must be enabled; otherwise, undefined is returned. + * This API does not support declaratively created nodes. + * + * @param { FrameNode } node - the target FrameNode. + * @param { 'GridItem' } nodeType - node type. + * @returns { GridItemAttribute | undefined } - Return the attribute instance of FrameNode, and return undefined if it + * does not exist. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @arkts 1.1&1.2 + */ + export function applyAttributesFinish(): void } /** -- Gitee From fb4df5983eadc0156849c8583083fd34b4a7f2f6 Mon Sep 17 00:00:00 2001 From: wujinhui Date: Fri, 8 Aug 2025 10:43:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?framenode=20=E6=96=B0=E5=A2=9E=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20applyAttributesFinish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wujinhui --- api/arkui/FrameNode.d.ts | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/api/arkui/FrameNode.d.ts b/api/arkui/FrameNode.d.ts index 8b2d9e2642..94dfcfae21 100644 --- a/api/arkui/FrameNode.d.ts +++ b/api/arkui/FrameNode.d.ts @@ -1269,6 +1269,21 @@ export declare class FrameNode { * @since 20 */ getNodePropertyValue(property: AnimationPropertyType): number[]; + + /** + * Triggers node updates in the current frame. + * + * When node attributes are modified after the current frame's build phase (i.e., after + * the unified processing of dirty nodes), the node updates will be deferred to the next + * frame. This function forces immediate node updates within the current frame to + * ensure rendering effects are applied synchronously. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + invalidateAttributes(): void; } /** @@ -3239,22 +3254,6 @@ export declare namespace typeNode { * @since 20 */ export function getAttribute(node: FrameNode, nodeType: 'GridItem'): GridItemAttribute | undefined; - - /** - * Get the attribute instance of FrameNode to set attributes. - * If the node is not created using ArkTS, cross-language access must be enabled; otherwise, undefined is returned. - * This API does not support declaratively created nodes. - * - * @param { FrameNode } node - the target FrameNode. - * @param { 'GridItem' } nodeType - node type. - * @returns { GridItemAttribute | undefined } - Return the attribute instance of FrameNode, and return undefined if it - * does not exist. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @arkts 1.1&1.2 - */ - export function applyAttributesFinish(): void } /** -- Gitee