You need to sign in or sign up before continuing.
提交 2e067779 编写于 作者: E ester.zhou

update docs

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 0112189b
...@@ -103,7 +103,7 @@ scroller.currentOffset(): Object ...@@ -103,7 +103,7 @@ scroller.currentOffset(): Object
Obtains the scrolling offset. Obtains the scrolling offset.
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| {<br/>xOffset: number,<br/>yOffset: number<br/>} | **xOffset**: horizontal scrolling offset.<br/>**yOffset**: vertical scrolling offset. | | {<br/>xOffset: number,<br/>yOffset: number<br/>} | **xOffset**: horizontal scrolling offset.<br/>**yOffset**: vertical scrolling offset. |
......
# Interpolation Calculation # Interpolation Calculation
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > ![icon-note.gif](public_sys-resources/icon-note.gif) **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.
...@@ -31,7 +31,7 @@ Implements initialization for the interpolation curve, which is used to create a ...@@ -31,7 +31,7 @@ Implements initialization for the interpolation curve, which is used to create a
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| curve | Curve | No | Linear | Curve object. | | curve | Curve | No | Linear | Curve object. |
- Return values - Return value<br>
Curve object. Curve object.
...@@ -49,7 +49,7 @@ Constructs a step curve object. ...@@ -49,7 +49,7 @@ Constructs a step curve object.
| count | number | Yes | - | Number of steps. Must be a positive integer. | | count | number | Yes | - | Number of steps. 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 values - Return value<br>
Curve object. Curve object.
...@@ -69,7 +69,7 @@ Constructs a third-order Bezier curve object. The curve value must be between 0 ...@@ -69,7 +69,7 @@ Constructs a third-order Bezier curve object. The curve value must be between 0
| 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. |
| y2 | number | Yes | Vertical coordinate of the second point on the Bezier curve. | | y2 | number | Yes | Vertical coordinate of the second point on the Bezier curve. |
- Return values - Return value<br>
Curve object. Curve object.
...@@ -89,7 +89,7 @@ Constructs a spring curve object. ...@@ -89,7 +89,7 @@ Constructs a spring curve object.
| stiffness | number | Yes | Stiffness. | | stiffness | number | Yes | Stiffness. |
| damping | number | Yes | Damping. | | damping | number | Yes | Damping. |
- Return values - Return value<br>
Curve object. Curve object.
...@@ -106,7 +106,7 @@ let curve3 = Curves.cubicBezier(0.1, 0.0, 0.1, 1.0) // Create a third-order Bezi ...@@ -106,7 +106,7 @@ let curve3 = Curves.cubicBezier(0.1, 0.0, 0.1, 1.0) // Create a third-order Bezi
Curve objects can be created only by the preceding APIs. Curve objects can be created only by the preceding APIs.
| API | Description | | API | Description |
| -------- | -------- | | -------- | -------- |
| interpolate(time: number): number | Calculation function of the interpolation curve. Passing a normalized time parameter to this function returns the current interpolation.<br/>**time**: indicates the current normalized time. The value ranges from 0 to 1.<br/>The curve interpolation corresponding to the normalized time point is returned. | | interpolate(time: number): number | Calculation function of the interpolation curve. Passing a normalized time parameter to this function returns the current interpolation.<br/>**time**: indicates the current normalized time. The value ranges from 0 to 1.<br/>The curve interpolation corresponding to the normalized time point is returned. |
......
# Matrix Transformation # Matrix Transformation
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **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.
...@@ -31,7 +31,7 @@ Matrix constructor, which is used to create a 4x4 matrix by using the input para ...@@ -31,7 +31,7 @@ Matrix constructor, which is used to create a 4x4 matrix by using the input para
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| array | Array&lt;number&gt; | Yes | [1, 0, 0, 0,<br/>0, 1, 0, 0,<br/>0, 0, 1, 0,<br/>0, 0, 0, 1] | A number array whose length is 16 (4 x 4). For details, see the parameter description. | | array | Array&lt;number&gt; | Yes | [1, 0, 0, 0,<br/>0, 1, 0, 0,<br/>0, 0, 1, 0,<br/>0, 0, 0, 1] | A number array whose length is 16 (4 x 4). For details, see the parameter description. |
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| Object | 4x4 matrix object created based on the input parameter. | | Object | 4x4 matrix object created based on the input parameter. |
...@@ -76,7 +76,7 @@ identity(): Object ...@@ -76,7 +76,7 @@ identity(): Object
Matrix initialization function. Can return a unit matrix object. Matrix initialization function. Can return a unit matrix object.
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| Object | Unit matrix object. | | Object | Unit matrix object. |
...@@ -102,7 +102,7 @@ copy(): Object ...@@ -102,7 +102,7 @@ copy(): Object
Matrix copy function, which is used to copy the current matrix object. Matrix copy function, which is used to copy the current matrix object.
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| Object | Copy object of the current matrix. | | Object | Copy object of the current matrix. |
...@@ -151,7 +151,7 @@ Matrix overlay function, which is used to overlay the effects of two matrices to ...@@ -151,7 +151,7 @@ Matrix overlay function, which is used to overlay the effects of two matrices to
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| matrix | Matrix4 | Yes | - | Matrix object to be overlaid. | | matrix | Matrix4 | Yes | - | Matrix object to be overlaid. |
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| Object | Object after matrix overlay. | | Object | Object after matrix overlay. |
...@@ -188,7 +188,7 @@ invert(): Object ...@@ -188,7 +188,7 @@ invert(): Object
Matrix inverse function. Can return an inverse matrix of the current matrix object, that is, get an opposite effect. Matrix inverse function. Can return an inverse matrix of the current matrix object, that is, get an opposite effect.
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| Object | Inverse matrix object of the current matrix. | | Object | Inverse matrix object of the current matrix. |
...@@ -219,7 +219,7 @@ Matrix translation function, which is used to add the translation effect to the ...@@ -219,7 +219,7 @@ Matrix translation function, which is used to add the translation effect to the
| z | number | No | 0 | Translation distance of the z-axis, in px. | | z | number | No | 0 | Translation distance of the z-axis, in px. |
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| Object | Matrix object after the translation effect is added. | | Object | Matrix object after the translation effect is added. |
...@@ -263,7 +263,7 @@ Matrix scaling function, which is used to add the scaling effect to the x, y, an ...@@ -263,7 +263,7 @@ Matrix scaling function, which is used to add the scaling effect to the x, y, an
| centerY | number | No | 0 | Y coordinate of the center point. | | centerY | number | No | 0 | Y coordinate of the center point. |
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| Object | Matrix object after the scaling effect is added. | | Object | Matrix object after the scaling effect is added. |
...@@ -308,7 +308,7 @@ Matrix rotation function, which is used to add the rotation effect to the x, y, ...@@ -308,7 +308,7 @@ Matrix rotation function, which is used to add the rotation effect to the x, y,
| centerY | number | No | 0 | Y coordinate of the center point. | | centerY | number | No | 0 | Y coordinate of the center point. |
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| Object | Matrix object after the rotation effect is added. | | Object | Matrix object after the rotation effect is added. |
...@@ -348,7 +348,7 @@ Matrix point transformation function, which is used to apply the current transfo ...@@ -348,7 +348,7 @@ Matrix point transformation function, which is used to apply the current transfo
| point | Point | Yes | - | Point to be transformed. | | point | Point | Yes | - | Point to be transformed. |
- Return values - Return value
| Type | Description | | Type | Description |
| -------- | -------- | | -------- | -------- |
| Point | Point object after matrix transformation | | Point | Point object after matrix transformation |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册