diff --git a/api/@internal/component/ets/image_animator.d.ts b/api/@internal/component/ets/image_animator.d.ts index aa269104fdb4ab6f8372db7265413d7b459cf3b4..14a4f81de1da3d0f0b3d796451536ccd777e433c 100644 --- a/api/@internal/component/ets/image_animator.d.ts +++ b/api/@internal/component/ets/image_animator.d.ts @@ -25,6 +25,54 @@ interface ImageAnimatorInterface { (): ImageAnimatorAttribute; } +/** + * Defines the ImageFrameInfo Interface. + * @since 7 + */ +interface ImageFrameInfo { + /** + * Image path + * @type { string } + * @since 7 + */ + /** + * Image path + * @type { string | Resource } + * @since 9 + */ + src: string | Resource; + /** + * Image width + * @type: { number | string } + * @since 7 + */ + width?: number | string; + /** + * Image height + * @type: { number | string } + * @since 7 + */ + height?: number | string; + /** + * Vertical coordinate of the image relative to the upper left corner of the component + * @type: { number | string } + * @since 7 + */ + top?: number | string; + /** + * Horizontal coordinate of the image relative to the upper left corner of the component + * @type: { number | string } + * @since 7 + */ + left?: number | string; + /** + * Playback duration of this image frame, in milliseconds. + * @type: { number } + * @since 7 + */ + duration?: number; +} + /** * inheritance CommonMethod * @since 7 @@ -34,16 +82,7 @@ declare class ImageAnimatorAttribute extends CommonMethod, - ): ImageAnimatorAttribute; + images(value: Array): ImageAnimatorAttribute; /** * The default value is the initial state, which is used to control the playback status.