diff --git a/api/@internal/component/ets/image_span.d.ts b/api/@internal/component/ets/image_span.d.ts index 3bce91cbbca0dbd9cd51514addd6172d423cc404..9fe11a55c902978e536554fa08fb4d259b879ba2 100644 --- a/api/@internal/component/ets/image_span.d.ts +++ b/api/@internal/component/ets/image_span.d.ts @@ -158,6 +158,19 @@ declare class ImageSpanAttribute extends BaseSpan { */ onComplete(callback: ImageCompleteCallback): ImageSpanAttribute; + /** + * Sets the color filter effect on the image span. + * + * @param { boolean } enable - switch + * @returns { ImageSpanAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 21 + */ + supportSvg2(enable: boolean): ImageSpanAttribute; + /** * Sets a callback which is triggered when an exception occurs during image loading. * The field of "message" returned in the callback carries the detailed information of failed image loading. diff --git a/api/@internal/component/ets/styled_string.d.ts b/api/@internal/component/ets/styled_string.d.ts index 45b24924e6438a393e4488cffbdc635ad2c0f80c..dc2f65e83ee0e2c4890daffc8a6f67a46c9243cd 100644 --- a/api/@internal/component/ets/styled_string.d.ts +++ b/api/@internal/component/ets/styled_string.d.ts @@ -1842,6 +1842,18 @@ declare class ImageAttachment { * @arkts 1.1&1.2 */ readonly colorFilter?: ColorFilterType; + + /** + * Gets the color filter effect on the image span. + * + * @type { ?boolean } - the imageAttachmentLayoutStyle of the StyledString or undefined + * @readonly + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + readonly supportSvg2?: boolean; } /** @@ -1939,6 +1951,18 @@ declare interface ResourceImageAttachmentOptions { * @arkts 1.1&1.2 */ syncLoad?: boolean; + + /** + * Sets the color filter effect on the image span. + * The default parameter type is bool, and the default value is false. + * + * @type { ?boolean } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + supportSvg2?: boolean; } /**