From bead868b438650d16975094f95c44da0a33796e2 Mon Sep 17 00:00:00 2001 From: lexiaoyao2 Date: Tue, 19 Aug 2025 14:52:12 +0800 Subject: [PATCH] svg parse Signed-off-by: lexiaoyao2 Change-Id: I8b5993376cfe8fa091829145c72544793eabfa5b --- api/@internal/component/ets/image.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api/@internal/component/ets/image.d.ts b/api/@internal/component/ets/image.d.ts index 72d7e101d4..b984e2a225 100644 --- a/api/@internal/component/ets/image.d.ts +++ b/api/@internal/component/ets/image.d.ts @@ -2274,6 +2274,19 @@ declare class ImageAttribute extends CommonMethod { * @arkts 1.1&1.2 */ orientation(orientation: ImageRotateOrientation) : ImageAttribute; + + /** + * Set the range of SVG parsing capabilities supported through enable switch. + * + * @param { boolean } enable - switch + * @returns { ImageAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 21 + */ + supportSvg2(enable: boolean) : ImageAttribute; } /** -- Gitee