From 015edf040beb00e3f5a9946c422da5f60faf009b Mon Sep 17 00:00:00 2001 From: zoulinken Date: Tue, 16 Jul 2024 16:48:16 +0800 Subject: [PATCH 1/2] modify custom shadow units Signed-off-by: zoulinken --- arkui/ace_engine/native/native_node.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 68bd6887d74..12bd0bf30fd 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -623,7 +623,7 @@ typedef enum { * @brief Defines the custom shadow effect. This attribute can be set, reset, and obtained as required through APIs. * * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * .value[0]?.f32: blur radius of the shadow, in vp.\n + * .value[0]?.f32: blur radius of the shadow, in px.\n * .value[1]?.i32: whether to enable the coloring strategy. The value 1 means to enable the coloring * strategy, and 0 (default value) means the opposite.\n * .value[2]?.f32: offset of the shadow along the x-axis, in vp.\n @@ -635,7 +635,7 @@ typedef enum { * * \n * Format of the return value {@link ArkUI_AttributeItem}:\n - * .value[0].f32: blur radius of the shadow, in vp.\n + * .value[0].f32: blur radius of the shadow, in px.\n * .value[1].i32: whether to enable the coloring strategy. \n * .value[2].f32: offset of the shadow along the x-axis, in vp.\n * .value[3].f32: offset of the shadow along the y-axis, in vp.\n -- Gitee From dbed446fbaf1c0138338a7726f3853518a1d3544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=9E=97=E8=82=AF?= <735001321@qq.com> Date: Thu, 18 Jul 2024 07:05:56 +0000 Subject: [PATCH 2/2] update arkui/ace_engine/native/native_node.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹林肯 <735001321@qq.com> --- arkui/ace_engine/native/native_node.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 12bd0bf30fd..20d3994c247 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -623,11 +623,11 @@ typedef enum { * @brief Defines the custom shadow effect. This attribute can be set, reset, and obtained as required through APIs. * * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * .value[0]?.f32: blur radius of the shadow, in px.\n + * .value[0]?.f32: blur radius of the shadow, in vp.\n * .value[1]?.i32: whether to enable the coloring strategy. The value 1 means to enable the coloring * strategy, and 0 (default value) means the opposite.\n - * .value[2]?.f32: offset of the shadow along the x-axis, in vp.\n - * .value[3]?.f32: offset of the shadow along the y-axis, in vp.\n + * .value[2]?.f32: offset of the shadow along the x-axis, in px.\n + * .value[3]?.f32: offset of the shadow along the y-axis, in px.\n * .value[4]?.i32: shadow type {@link ArkUI_ShadowType}. The default value is ARKUI_SHADOW_TYPE_COLOR.\n * .value[5]?.u32: shadow color, in 0xARGB format. For example, 0xFFFF0000 indicates red.\n * .value[6]?.u32: whether to fill the shadow. The value 1 means to fill the shadow, and 0 @@ -635,10 +635,10 @@ typedef enum { * * \n * Format of the return value {@link ArkUI_AttributeItem}:\n - * .value[0].f32: blur radius of the shadow, in px.\n + * .value[0].f32: blur radius of the shadow, in vp.\n * .value[1].i32: whether to enable the coloring strategy. \n - * .value[2].f32: offset of the shadow along the x-axis, in vp.\n - * .value[3].f32: offset of the shadow along the y-axis, in vp.\n + * .value[2].f32: offset of the shadow along the x-axis, in px.\n + * .value[3].f32: offset of the shadow along the y-axis, in px.\n * .value[4].i32: shadow type {@link ArkUI_ShadowType}. The default value is ARKUI_SHADOW_TYPE_COLOR.\n * .value[5].u32: shadow color, in 0xARGB format. For example, 0xFFFF0000 indicates red.\n * .value[6].u32: whether to fill the shadow. The value 1 means to fill the shadow, and 0 -- Gitee