diff --git a/zh-cn/application-dev/reference/apis/js-apis-curve.md b/zh-cn/application-dev/reference/apis/js-apis-curve.md index 60e09bf34ad45b8ba955b80b5add31f78830039b..702aeef3b370eb2d4754430a2e6ad8b536ad9fb6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-curve.md +++ b/zh-cn/application-dev/reference/apis/js-apis-curve.md @@ -41,7 +41,7 @@ initCurve(curve?: Curve): ICurve **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 描述 | +| 名称 | 说明 | | ------------------- | ------------------------------------------------------------ | | Linear | 表示动画从头到尾的速度都是相同的。 | | Ease | 表示动画以低速开始,然后加快,在结束前变慢,CubicBezier(0.25, 0.1, 0.25, 1.0)。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-matrix4.md b/zh-cn/application-dev/reference/apis/js-apis-matrix4.md index e9ca53bdf1b938a649604e0f7b2c6cd1854f0d45..f7be54e6571aab57d00dcf5e53d7e9c31c5035d9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-matrix4.md +++ b/zh-cn/application-dev/reference/apis/js-apis-matrix4.md @@ -27,7 +27,7 @@ Matrix的构造函数,可以通过传入的参数创建一个四阶矩阵, | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| option | [number,number,number,number,number,number,number,number,number,number,number,number,number,number,number,number] | 是 | 参数为长度为16(4\*4)的number数组, 详情见四阶矩阵说明。
默认值:
[1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1] | +| option | [number,number,number,number,
number,number,number,number,
number,number,number,number,
number,number,number,number] | 是 | 参数为长度为16(4\*4)的number数组, 详情见四阶矩阵说明。
默认值:
[1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1] | **返回值:** @@ -169,6 +169,132 @@ struct Test { ![zh-cn_image_0000001219744181](figures/zh-cn_image_0000001219744181.png) +## matrix4.invert(deprecated) + +invert(): Matrix4Transit + +Matrix的逆函数,可以返回一个当前矩阵对象的逆矩阵,即效果正好相反。 + +该接口从Api 10开始废弃。 + +**系统能力:** SystemCapability.ArkUI.ArkUI.Full + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ---------------------- | +| [Matrix4Transit](#matrix4transit) | 当前矩阵的逆矩阵对象。 | + +## matrix4.combine(deprecated) + +combine(options: Matrix4Transit): Matrix4Transit + +Matrix的叠加函数,可以将两个矩阵的效果叠加起来生成一个新的矩阵对象。 + +该接口从Api 10开始废弃。 + +**系统能力:** SystemCapability.ArkUI.ArkUI.Full + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | --------------------------------- | ---- | ------------------ | +| option | [Matrix4Transit](#matrix4transit) | 是 | 待叠加的矩阵对象。 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ---------------------- | +| [Matrix4Transit](#matrix4transit) | 当前矩阵的逆矩阵对象。 | + +## matrix4.translate(deprecated) + +translate(options: TranslateOption): Matrix4Transit + +Matrix的平移函数,可以为当前矩阵增加x轴/y轴/z轴平移效果。 + +该接口从Api 10开始废弃。 + +**系统能力:** SystemCapability.ArkUI.ArkUI.Full + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ----------------------------------- | ---- | -------------- | +| option | [TranslateOption](#translateoption) | 是 | 设置平移参数。 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ---------------------- | +| [Matrix4Transit](#matrix4transit) | 当前矩阵的逆矩阵对象。 | + +## matrix4.scale(deprecated) + +scale(options: ScaleOption): Matrix4Transit + +Matrix的缩放函数,可以为当前矩阵增加x轴/y轴/z轴缩放效果。 + +该接口从Api 10开始废弃。 + +**系统能力:** SystemCapability.ArkUI.ArkUI.Full + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | --------------------------- | ---- | -------------- | +| option | [ScaleOption](#scaleoption) | 是 | 设置缩放参数。 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ---------------------- | +| [Matrix4Transit](#matrix4transit) | 当前矩阵的逆矩阵对象。 | + +## matrix4.rotate(deprecated) + +rotate(options: RotateOption): Matrix4Transit + +Matrix的旋转函数,可以为当前矩阵增加x轴/y轴/z轴旋转效果。 + +该接口从Api 10开始废弃。 + +**系统能力:** SystemCapability.ArkUI.ArkUI.Full + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ----------------------------- | ---- | -------------- | +| option | [RotateOption](#rotateoption) | 是 | 设置旋转参数。 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ---------------------- | +| [Matrix4Transit](#matrix4transit) | 当前矩阵的逆矩阵对象。 | + +## matrix4.transformPoint(deprecated) + +transformPoint(options: [number, number]): [number, number] + +Matrix的坐标点转换函数,可以将当前的变换效果作用到一个坐标点上。 + +该接口从Api 10开始废弃。 + +**系统能力:** SystemCapability.ArkUI.ArkUI.Full + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------------- | ---- | ------------------ | +| option | [number, number] | 是 | 需要转换的坐标点。 | + +**返回值:** + +| 类型 | 说明 | +| ---------------- | --------------------------- | +| [number, number] | 返回矩阵变换后的Point对象。 | + ## Matrix4Transit @@ -326,7 +452,6 @@ Matrix的缩放函数,可以为当前矩阵增加x轴/y轴/z轴缩放效果。 | ------ | --------------------------- | ---- | -------------- | | option | [ScaleOption](#scaleoption) | 是 | 设置缩放参数。 | - **返回值:** | 类型 | 说明 | @@ -371,7 +496,6 @@ Matrix的旋转函数,可以为当前矩阵增加x轴/y轴/z轴旋转效果。 | ------ | ----------------------------- | ---- | -------------- | | option | [RotateOption](#rotateoption) | 是 | 设置旋转参数。 | - **返回值:** | 类型 | 说明 |