From bbad4ef060a63f45945a2e3e1258eced2ff5852f Mon Sep 17 00:00:00 2001 From: jao_liu Date: Wed, 10 Apr 2024 13:11:02 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B2=92=E5=AD=90=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E6=94=AF=E6=8C=81=E5=8F=91=E5=B0=84=E5=99=A8=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=8A=A8=E6=80=81=E6=9B=B4=E6=96=B0=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jao_liu Change-Id: I9d1a95ff11d91cbbe830702b878c757a9bf2115c --- api/@internal/component/ets/particle.d.ts | 65 ++++++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/api/@internal/component/ets/particle.d.ts b/api/@internal/component/ets/particle.d.ts index 9e30e7938..77c609b80 100644 --- a/api/@internal/component/ets/particle.d.ts +++ b/api/@internal/component/ets/particle.d.ts @@ -335,6 +335,57 @@ interface ParticleConfigs { [ParticleType.IMAGE]: ImageParticleParameters; } +/** + * Defines the emitter property. + * + * @interface EmitterProperty + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 12 + */ +interface EmitterProperty { + + /** + * Emitter index. + * + * @type { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 12 + */ + index : number; + + /** + * Emitter emission rate. + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 12 + */ + emitRate?: number; + + /** + * Emitter emission rate. Only support number type. + * + * @type { ?PositionT } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 12 + */ + position?: PositionT; + + /** + * Emitter emission window size. Only support number type. + * + * @type { ?SizeT } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 12 + */ + size?: SizeT; +} + /** * Defines the emitter Options. * @interface EmitterOptions @@ -1132,7 +1183,19 @@ declare enum ParticleUpdater { * @atomicservice * @since 11 */ -declare class ParticleAttribute extends CommonMethod {} +declare class ParticleAttribute extends CommonMethod { + + /** + * Add particle animation component properties. + * + * @param { Array } value - The emitter property. + * @returns { ParticleAttribute } Returns the particle attribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 12 + */ + emitter(value : Array) : ParticleAttribute; +} /** * Defines Particle Component.