From db0cdf68135a2f2e59ac98008f5748702bc9c54a Mon Sep 17 00:00:00 2001 From: hehongyang9 Date: Wed, 22 Jun 2022 17:55:37 +0800 Subject: [PATCH] =?UTF-8?q?image=5Fanimator=E7=9A=84=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=9A=84=E6=BA=90=E6=96=87=E4=BB=B6=E5=A2=9E=E5=8A=A0=E5=AF=B9?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=96=87=E4=BB=B6=E7=9A=84=E6=94=AF=E6=8C=81?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81string=E5=92=8CResource=E4=B8=A4?= =?UTF-8?q?=E7=A7=8D=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hehongyang9 Change-Id: I4161823c7e34a4b5d51bbab2443d724f38fc69bc --- .../component/ets/image_animator.d.ts | 59 +++++++++++++++---- 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/api/@internal/component/ets/image_animator.d.ts b/api/@internal/component/ets/image_animator.d.ts index aa269104fd..14a4f81de1 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. -- Gitee