diff --git a/api/@ohos.graphics.uiEffect.d.ts b/api/@ohos.graphics.uiEffect.d.ts index 43ca0d0f7fa68c17affbfa16966e13881c561c10..274fa286a1d8841d55251391d0850e671259131c 100644 --- a/api/@ohos.graphics.uiEffect.d.ts +++ b/api/@ohos.graphics.uiEffect.d.ts @@ -134,6 +134,22 @@ declare namespace uiEffect { */ bezierWarp(controlPoints: Array): Filter; + /** + * Sets the content light filter. + * + * @param { common2D.Point3d } lightPosition + * @param { common2D.Color } lightColor + * @param { number } lightIntensity + * @param { Mask } [displacementMap] + * @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 + */ + contentLight(lightPosition: common2D.Point3d, lightColor: common2D.Color, lightIntensity: number, + displacementMap?: Mask): Filter; + /** * Sets the color gradient filter, may blend with alpha mask. * @@ -345,6 +361,22 @@ declare namespace uiEffect { * @arkts 1.1&1.2 */ backgroundColorBlender(blender: BrightnessBlender): VisualEffect; + + /** + * Sets the border light effect. + * + * @param { common2D.Point3d } lightPosition + * @param { common2D.Color } lightColor + * @param { number } lightIntensity + * @param { number } borderWidth + * @returns { VisualEffect } - Returns the VisualEffect 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 + */ + borderLight(lightPosition: common2D.Point3d, lightColor: common2D.Color, lightIntensity: number, + borderWidth: number): VisualEffect; } /**