未验证 提交 468d2054 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-animator.md.

Signed-off-by: NLiAn <lian15@huawei.com>
Signed-off-by: NLiAn <lian15@huawei.com>
上级 2b75c3eb
...@@ -27,6 +27,7 @@ create(options: AnimatorOptions): AnimatorResult ...@@ -27,6 +27,7 @@ create(options: AnimatorOptions): AnimatorResult
| options | [AnimatorOptions](#animatoroptions) | 是 | 定义动画选项。 | | options | [AnimatorOptions](#animatoroptions) | 是 | 定义动画选项。 |
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| --------------------------------- | ------------- | | --------------------------------- | ------------- |
| [AnimatorResult](#animatorresult) | Animator结果接口。 | | [AnimatorResult](#animatorresult) | Animator结果接口。 |
...@@ -51,8 +52,6 @@ create(options: AnimatorOptions): AnimatorResult ...@@ -51,8 +52,6 @@ create(options: AnimatorOptions): AnimatorResult
定义Animator结果接口。 定义Animator结果接口。
<span id = "#resetsup9sup"></span>
### reset<sup>9+</sup> ### reset<sup>9+</sup>
reset(options: AnimatorOptions): void reset(options: AnimatorOptions): void
...@@ -71,7 +70,7 @@ reset(options: AnimatorOptions): void ...@@ -71,7 +70,7 @@ reset(options: AnimatorOptions): void
以下错误码的详细介绍请参见[ohos.animator(动画)](../errorcodes/errorcode-animator.md)错误码。 以下错误码的详细介绍请参见[ohos.animator(动画)](../errorcodes/errorcode-animator.md)错误码。
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| --------- | ------- | | --------- | ------- |
| 100001 | Internal error. | | 100001 | Internal error. |
...@@ -181,6 +180,7 @@ onframe: (progress: number) => void ...@@ -181,6 +180,7 @@ onframe: (progress: number) => void
| progress | number | 是 | 动画的当前进度。 | | progress | number | 是 | 动画的当前进度。 |
**示例:** **示例:**
```js ```js
let animatorResult = animator.create(options) let animatorResult = animator.create(options)
animatorResult.onframe = function(value) { animatorResult.onframe = function(value) {
...@@ -208,7 +208,7 @@ animatorResult.onfinish = function() { ...@@ -208,7 +208,7 @@ animatorResult.onfinish = function() {
### oncancel ### oncancel
oncancel: () => void oncancel: () => void
不再维护
动画被取消时回调。 动画被取消时回调。
**系统能力:** SystemCapability.ArkUI.ArkUI.Full **系统能力:** SystemCapability.ArkUI.ArkUI.Full
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册