diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 77d8e7ce9239d6974228da63b7c2633ed0ff10d4..380b46d026e24b21322c2c9f0d212e1c92ad8d20 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -25592,7 +25592,21 @@ declare class CommonMethod { linearGradientBlur(value: number, options: LinearGradientBlurOptions): T; /** - * Applies a linear gradient foreground blur effect to the component. + * Adds the content wave gradient color effect for the current component. + * + * @param { number } radius - the radius of wave gradient. + * @param { number } translateX - x coordinate of wave gradient center. + * @param { number } translateY - y coordinate of wave gradient center. + * @param { WaveGradientColorOptions } options - the wave gradient color options. + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 14 + */ + waveGradientColor(radius: number, translateX: number, translateY: number, options: WaveGradientColorOptions): T; + + /** + * Applies a linear gradient foreground blur effect to the component. * * @param { Optional } blurRadius - the blurring radius. * The larger the blurring radius, the more blurring the content, and if the value is 0, the content blurring effect is not blurring. @@ -31010,6 +31024,19 @@ declare interface OverlayOffset { */ declare type FractionStop = [ number, number ]; +/** + * Defines the segment of wave gradient color. + * The first element in the tuple means the color. + * The second element means the position that the color fills. + * The range of this value is [0,1]. A value of 1 means region ending position and 0 means region starting position. + * + * @typedef { [ ResourceColor, number ] } ColorFractionStop + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 14 + */ +declare type ColorFractionStop = [ ResourceColor, number ]; + /** * CommonShapeMethod * @@ -31866,6 +31893,64 @@ declare interface LinearGradientBlurOptions { direction: GradientDirection; } +/** + * Wave Gradient Color Interface + * + * @interface WaveGradientColorOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 14 + */ +declare interface WaveGradientColorOptions { + /** + * Color and its percentage of whole wave gradient. + * + * @type { ColorFractionStop[] } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 14 + */ + colorFractionStops: ColorFractionStop[]; + /** + * Direction of wave gradient color. + * + * @type { GradientDirection } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 14 + */ + direction: GradientDirection; +} + +/** + * Wave Gradient Color Interface + * + * @interface WaveGradientColorOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 14 + */ +declare interface WaveGradientColorOptions { + /** + * Color and its percentage of whole wave gradient. + * + * @type { ColorFractionStop[] } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 14 + */ + colorFractionStops: ColorFractionStop[]; + /** + * Direction of wave gradient color. + * + * @type { GradientDirection } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 14 + */ + direction: GradientDirection; +} + /** * Define motion blur anchor coordinates. *