From a908b826895353811119b0a30e5163afe98d70c8 Mon Sep 17 00:00:00 2001 From: lingzhengyang Date: Mon, 7 Jul 2025 11:16:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0variableRadiusBlur?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lingzhengyang --- api/@ohos.graphics.uiEffect.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api/@ohos.graphics.uiEffect.d.ts b/api/@ohos.graphics.uiEffect.d.ts index 929fbdc1db..765b2238c0 100644 --- a/api/@ohos.graphics.uiEffect.d.ts +++ b/api/@ohos.graphics.uiEffect.d.ts @@ -221,6 +221,19 @@ declare namespace uiEffect { * @since 20 */ hdrBrightnessRatio(ratio: number): Filter; + + /** + * Sets variable radius blur effect with radius map. + * @param { number } radius - 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. + * @param { Mask } radiusMap + * @returns { Filter } - Returns the Filter that the current effect have been added. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Graphics.Drawing + * @systemapi + * @since 20 + */ + variableRadiusBlur(radius: number, radiusMap: Mask): Filter; } /** -- Gitee From a458e503e226ce1061c36114898b90149f37e74e Mon Sep 17 00:00:00 2001 From: lingzhengyang Date: Mon, 7 Jul 2025 11:16:10 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0variableRadiusBlur?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lingzhengyang --- api/@ohos.graphics.uiEffect.d.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/api/@ohos.graphics.uiEffect.d.ts b/api/@ohos.graphics.uiEffect.d.ts index 929fbdc1db..2976c9abdf 100644 --- a/api/@ohos.graphics.uiEffect.d.ts +++ b/api/@ohos.graphics.uiEffect.d.ts @@ -221,6 +221,35 @@ declare namespace uiEffect { * @since 20 */ hdrBrightnessRatio(ratio: number): Filter; + + /** + * Sets variable radius blur effect with radius map. + * + * @param { number } radius - 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. + * @param { Mask } radiusMap + * @returns { Filter } - Returns the Filter that the current effect have been added. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Graphics.Drawing + * @systemapi + * @since 20 + */ + variableRadiusBlur(radius: number, radiusMap: Mask): Filter; + + /** + * Generates lighting effects from height map and directional light. + * + * @param { common2D.Point3d } direction + * @param { Color } color + * @param { number } intensity + * @param { Mask } [bumpMask] + * @returns { Filter } - Returns the Filter that the current effect have been added. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Graphics.Drawing + * @systemapi + * @since 20 + */ + directionLight(direction: common2D.Point3d, color: ColorGamut, intensity: number, bumpMask?: Mask): Filter; } /** -- Gitee From 98f774fe659661a26e768d930a5069fda5affd76 Mon Sep 17 00:00:00 2001 From: lingzhengyang Date: Tue, 8 Jul 2025 07:10:49 +0000 Subject: [PATCH 3/3] update api/@ohos.graphics.uiEffect.d.ts. Signed-off-by: lingzhengyang Signed-off-by: lingzhengyang --- api/@ohos.graphics.uiEffect.d.ts | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/api/@ohos.graphics.uiEffect.d.ts b/api/@ohos.graphics.uiEffect.d.ts index 29694c74da..ba248b5e44 100644 --- a/api/@ohos.graphics.uiEffect.d.ts +++ b/api/@ohos.graphics.uiEffect.d.ts @@ -226,8 +226,9 @@ declare namespace uiEffect { * Sets variable radius blur effect with radius map. * * @param { number } radius - 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. - * @param { Mask } radiusMap + * The larger the blurring radius, the more blurring the content, + * and if the value is 0, the content blurring effect is not blurring. + * @param { Mask } radiusMap - the alpha of the mask determines the degree of blurring. * @returns { Filter } - Returns the Filter that the current effect have been added. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.Graphics.Drawing @@ -239,10 +240,10 @@ declare namespace uiEffect { /** * Generates lighting effects from height map and directional light. * - * @param { common2D.Point3d } direction - * @param { Color } color - * @param { number } intensity - * @param { Mask } [bumpMask] + * @param { common2D.Point3d } direction - Direction of light + * @param { Color } color - Color of light + * @param { number } intensity - Intensity of light + * @param { Mask } [bumpMask] - Bump mask, as a displacement map that affects lighting effects * @returns { Filter } - Returns the Filter that the current effect have been added. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.Graphics.Drawing @@ -250,6 +251,20 @@ declare namespace uiEffect { * @since 20 */ directionLight(direction: common2D.Point3d, color: Color, intensity: number, bumpMask?: Mask): Filter; + + /** + * Applies Transition with alpha mask + * + * @param { Mask } alphaMask - Animatable mask object + * @param { number } [factor] - The coefficient of the mask, defaulting to 1.0f [0~1] + * @param { boolean } [inverse] - Transition mode, default is fasle (true, false) + * @returns { Filter } - Returns the Filter that the current effect have been added. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Graphics.Drawing + * @systemapi + * @since 20 + */ + maskTransition(alphaMask: Mask, factor?: number, inverse?: boolean): Filter; } /** -- Gitee