From 65ec0cf55c43f5390295c45c7eb8fb6b2e70a5af Mon Sep 17 00:00:00 2001 From: xiangyuan Date: Fri, 8 Aug 2025 11:46:52 +0800 Subject: [PATCH] add sizeInVp Signed-off-by: xiangyuan --- api/@internal/component/ets/styled_string.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@internal/component/ets/styled_string.d.ts b/api/@internal/component/ets/styled_string.d.ts index 13e178bb06..3b6359f198 100644 --- a/api/@internal/component/ets/styled_string.d.ts +++ b/api/@internal/component/ets/styled_string.d.ts @@ -1779,6 +1779,18 @@ declare class ImageAttachment { */ readonly size?: SizeOptions; + /** + * Get the imageSize of the StyledString in vp unit. + * + * @type { ?SizeOptions } - the imageSize of the StyledString in vp unit or undefined + * @readonly + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + readonly sizeInVp?: SizeOptions; + /** * Get the ImageSpanAlignment of the StyledString. * -- Gitee