From 3b99b2b833b576f9826868fc0aa1f6432c477b5d Mon Sep 17 00:00:00 2001 From: wangxiuxiu96 Date: Thu, 4 Sep 2025 16:13:18 +0800 Subject: [PATCH] =?UTF-8?q?API=E3=80=90=E5=9F=BA=E7=A1=80=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=E3=80=91Text=E5=B1=9E=E6=80=A7=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E5=92=8ClmageSpancolorFilter=E6=94=AF=E6=8C=81svg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangxiuxiu96 Change-Id: I361df7011018ca324ec43523f6df78cb4f246095 --- api/@internal/component/ets/image_span.d.ts | 12 ++++++++++++ api/@internal/component/ets/styled_string.d.ts | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/api/@internal/component/ets/image_span.d.ts b/api/@internal/component/ets/image_span.d.ts index 3bce91cbbc..d89dc23642 100644 --- a/api/@internal/component/ets/image_span.d.ts +++ b/api/@internal/component/ets/image_span.d.ts @@ -183,6 +183,18 @@ declare class ImageSpanAttribute extends BaseSpan { * @arkts 1.1&1.2 */ alt(value: PixelMap): ImageSpanAttribute; + + /** + * Set the range of SVG parsing capabilities supported through enable switch. + * + * @param { boolean } enable - switch + * @returns { ImageSpanAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since arkts {'1.1':'21','1.2':'21'} + * @arkts 1.1&1.2 + */ + supportSvg2(enable: boolean) : ImageSpanAttribute; } /** diff --git a/api/@internal/component/ets/styled_string.d.ts b/api/@internal/component/ets/styled_string.d.ts index 45b24924e6..85272b326d 100644 --- a/api/@internal/component/ets/styled_string.d.ts +++ b/api/@internal/component/ets/styled_string.d.ts @@ -1939,6 +1939,18 @@ declare interface ResourceImageAttachmentOptions { * @arkts 1.1&1.2 */ syncLoad?: boolean; + + /** + * Set the range of SVG parsing capabilities supported through enable switch. + * + * @param { boolean } enable - switch + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since arkts {'1.1':'21','1.2':'21'} + * @arkts 1.1&1.2 + */ + supportSvg2(enable: boolean) : ImageAttribute; } /** -- Gitee