mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 09:22:53 +00:00
Feature Fly In Fly Out Api
Signed-off-by: 王禹臻 <wangyuzhen5@huawei.com>
This commit is contained in:
parent
32c1c66f63
commit
c44929a37e
42
api/@ohos.graphics.uiEffect.d.ts
vendored
42
api/@ohos.graphics.uiEffect.d.ts
vendored
@ -71,6 +71,20 @@ declare namespace uiEffect {
|
||||
* @since 12
|
||||
*/
|
||||
waterRipple(progress: number, waveCount: number, x: number, y: number): Filter;
|
||||
|
||||
/**
|
||||
* Set the fly in or fly out effect of the component.
|
||||
*
|
||||
* @param { number } degree - set the degree of fly in or fly out effect, value range [0, 1].
|
||||
* @param { FlyMode } flyMode - set the location of stretching when fly in or out
|
||||
* If the value is 0, the component keep same, else the value is 1, component are fully fly out or fly in.
|
||||
* @returns { Filter } - Returns fly in fly out Filter.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @syscap SystemCapability.Graphics.Drawing
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
flyInFlyOutEffect(degree: number, flyMode: FlyMode ): Filter;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -118,6 +132,34 @@ declare namespace uiEffect {
|
||||
*/
|
||||
DECAL = 3,
|
||||
}
|
||||
|
||||
/**
|
||||
* FlyMode enumeration description
|
||||
*
|
||||
* @enum { number }
|
||||
* @syscap SystemCapability.Graphics.Drawing
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
enum FlyMode {
|
||||
/**
|
||||
* BOTTOM fly mode.
|
||||
*
|
||||
* @syscap SystemCapability.Graphics.Drawing
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
BOTTOM = 0,
|
||||
|
||||
/**
|
||||
* TOP fly mode.
|
||||
*
|
||||
* @syscap SystemCapability.Graphics.Drawing
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
TOP = 1,
|
||||
}
|
||||
|
||||
/**
|
||||
* The VisualEffect of Component.
|
||||
|
Loading…
Reference in New Issue
Block a user