提交 aaf43fd1 编写于 作者: E ester.zhou

update docs

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 9507cd00
...@@ -235,7 +235,7 @@ Sets the direction in which the specified animation plays. ...@@ -235,7 +235,7 @@ Sets the direction in which the specified animation plays.
Defines an **AnimationItem** object, which is returned by the **loadAnimation** interface and has attributes and interfaces. The attributes are described as follows: Defines an **AnimationItem** object, which is returned by the **loadAnimation** interface and has attributes and interfaces. The attributes are described as follows:
| Name | Type | Description | | Name | Type | Description |
| -------- | -------- | -------- | | -------- | -------- | -------- |
| name | string | Animation name. | | name | string | Animation name. |
| isLoaded | boolean | Whether the animation is loaded. | | isLoaded | boolean | Whether the animation is loaded. |
...@@ -387,7 +387,7 @@ Sets the playback direction of an animation. ...@@ -387,7 +387,7 @@ Sets the playback direction of an animation.
## AnimationItem.goToAndStop ## AnimationItem.goToAndStop
goToAndStop(value: number, isFrame: boolean): void goToAndStop(value: number, isFrame?: boolean): void
Sets the animation to stop at the specified frame or time. Sets the animation to stop at the specified frame or time.
...@@ -410,7 +410,7 @@ Sets the animation to stop at the specified frame or time. ...@@ -410,7 +410,7 @@ Sets the animation to stop at the specified frame or time.
## AnimationItem.goToAndPlay ## AnimationItem.goToAndPlay
goToAndPlay(value: number, isFrame: boolean): void goToAndPlay( value: number, isFrame: boolean, name?: string): void
Sets the animation to start from the specified frame or time progress. Sets the animation to start from the specified frame or time progress.
......
...@@ -274,7 +274,7 @@ Draws a quadratic curve on the canvas. ...@@ -274,7 +274,7 @@ Draws a quadratic curve on the canvas.
## arc ## arc
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: number): void arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void
Draws an arc on the canvas. Draws an arc on the canvas.
......
...@@ -129,7 +129,7 @@ Scrolls to the specified index. ...@@ -129,7 +129,7 @@ Scrolls to the specified index.
## Events ## Events
| Name | Description | | Name | Description |
| -------- | -------- | | -------- | -------- |
| onScroll(xOffset: number, yOffset: number) =&gt; void | Invoked to return the horizontal and vertical offsets during scrolling when the specified scroll event occurs. | | onScroll(xOffset: number, yOffset: number) =&gt; void | Invoked to return the horizontal and vertical offsets during scrolling when the specified scroll event occurs. |
| onScrollEdge(side: Edge) =&gt; void | Callback for the event of scrolling to the edge. | | onScrollEdge(side: Edge) =&gt; void | Callback for the event of scrolling to the edge. |
......
...@@ -10,7 +10,7 @@ The **CustomDialogController** class is used to display a custom dialog box. ...@@ -10,7 +10,7 @@ The **CustomDialogController** class is used to display a custom dialog box.
## APIs ## APIs
CustomDialogController(value:{builder: CustomDialog, cancel?: () =&gt; void, autoCancel?: boolean}) CustomDialogController(value:{builder: CustomDialog, cancel?: () =&gt; void, autoCancel?: boolean, alignment?: DialogAlignment, offset?: Offset, customStyle?: boolean})
- Parameters - Parameters
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册