未验证 提交 e6db2d5e 编写于 作者: K king_he 提交者: Gitee

update en/application-dev/reference/arkui-ts/ts-interpolation-calculation.md.

Signed-off-by: Nking_he <6384784@qq.com>
上级 a1205b57
# Interpolation Calculation # Interpolation Calculation
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br> > **NOTE**<br>
> This animation is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > This animation is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -27,7 +27,7 @@ Implements initialization for the interpolation curve, which is used to create a ...@@ -27,7 +27,7 @@ Implements initialization for the interpolation curve, which is used to create a
- Parameters - Parameters
| Name | Type | Mandatory | Default Value | Description | | Name | Type | Mandatory | Default Value | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| curve | Curve | No | Linear | Curve object. | | curve | Curve | No | Linear | Curve object. |
...@@ -44,9 +44,9 @@ Constructs a step curve object. ...@@ -44,9 +44,9 @@ Constructs a step curve object.
- Parameters - Parameters
| Name | Type | Mandatory | Default Value | Description | | Name | Type | Mandatory | Default Value | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| count | number | Yes | - | Number of steps. Must be a positive integer. | | count | number | Yes | - | Number of steps. The value must be a positive integer. |
| end | boolean | No | true | Step change at the start or end point of each interval. Defaults to **true**, indicating that the step change occurs at the end point. | | end | boolean | No | true | Step change at the start or end point of each interval. Defaults to **true**, indicating that the step change occurs at the end point. |
- Return value<br> - Return value<br>
...@@ -62,8 +62,9 @@ Constructs a third-order Bezier curve object. The curve value must be between 0 ...@@ -62,8 +62,9 @@ Constructs a third-order Bezier curve object. The curve value must be between 0
- Parameters - Parameters
| Name | Type | Mandatory | Description |
| -------- | -------- | -------- | -------- | | Name | Type | Mandatory | Description |
| ---- | ---- | --------- | ----------- |
| x1 | number | Yes | Horizontal coordinate of the first point on the Bezier curve. | | x1 | number | Yes | Horizontal coordinate of the first point on the Bezier curve. |
| y1 | number | Yes | Vertical coordinate of the first point on the Bezier curve. | | y1 | number | Yes | Vertical coordinate of the first point on the Bezier curve. |
| x2 | number | Yes | Horizontal coordinate of the second point on the Bezier curve. | | x2 | number | Yes | Horizontal coordinate of the second point on the Bezier curve. |
...@@ -82,7 +83,8 @@ Constructs a spring curve object. ...@@ -82,7 +83,8 @@ Constructs a spring curve object.
- Parameters - Parameters
| Name | Type | Mandatory | Description |
| Name | Type | Mandatory | Description |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| velocity | number | Yes | Initial velocity. | | velocity | number | Yes | Initial velocity. |
| mass | number | Yes | Mass. | | mass | number | Yes | Mass. |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册