Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
5c6c746d
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5c6c746d
编写于
7月 18, 2023
作者:
Y
yamila
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update apis
Signed-off-by:
N
yamila
<
tianyu55@huawei.com
>
上级
ea61f4c5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
128 addition
and
4 deletion
+128
-4
zh-cn/application-dev/reference/apis/js-apis-curve.md
zh-cn/application-dev/reference/apis/js-apis-curve.md
+1
-1
zh-cn/application-dev/reference/apis/js-apis-matrix4.md
zh-cn/application-dev/reference/apis/js-apis-matrix4.md
+127
-3
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-curve.md
浏览文件 @
5c6c746d
...
...
@@ -41,7 +41,7 @@ initCurve(curve?: Curve): ICurve
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
| 名称 |
描述
|
| 名称 |
说明
|
| ------------------- | ------------------------------------------------------------ |
| Linear | 表示动画从头到尾的速度都是相同的。 |
| Ease | 表示动画以低速开始,然后加快,在结束前变慢,CubicBezier(0.25, 0.1, 0.25, 1.0)。 |
...
...
zh-cn/application-dev/reference/apis/js-apis-matrix4.md
浏览文件 @
5c6c746d
...
...
@@ -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数组,
详情见四阶矩阵说明。
<br/>
默认值:
<br/>
[1,
0,
0,
0,
<br/>
0,
1,
0,
0,
<br/>
0,
0,
1,
0,
<br/>
0,
0,
0,
1] |
| option | [number,number,number,number,
<br/>
number,number,number,number,
<br/>
number,number,number,number,
<br/>
number,number,number,number] | 是 | 参数为长度为16(4
\*
4)的number数组,
详情见四阶矩阵说明。
<br/>
默认值:
<br/>
[1,
0,
0,
0,
<br/>
0,
1,
0,
0,
<br/>
0,
0,
1,
0,
<br/>
0,
0,
0,
1] |
**返回值:**
...
...
@@ -169,6 +169,132 @@ struct Test {

## matrix4.invert<sup>(deprecated)</sup>
invert(): Matrix4Transit
Matrix的逆函数,可以返回一个当前矩阵对象的逆矩阵,即效果正好相反。
该接口从Api 10开始废弃。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
**返回值:**
| 类型 | 说明 |
| --------------------------------- | ---------------------- |
|
[
Matrix4Transit
](
#matrix4transit
)
| 当前矩阵的逆矩阵对象。 |
## matrix4.combine<sup>(deprecated)</sup>
combine(options: Matrix4Transit): Matrix4Transit
Matrix的叠加函数,可以将两个矩阵的效果叠加起来生成一个新的矩阵对象。
该接口从Api 10开始废弃。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------ | --------------------------------- | ---- | ------------------ |
| option |
[
Matrix4Transit
](
#matrix4transit
)
| 是 | 待叠加的矩阵对象。 |
**返回值:**
| 类型 | 说明 |
| --------------------------------- | ---------------------- |
|
[
Matrix4Transit
](
#matrix4transit
)
| 当前矩阵的逆矩阵对象。 |
## matrix4.translate<sup>(deprecated)</sup>
translate(options: TranslateOption): Matrix4Transit
Matrix的平移函数,可以为当前矩阵增加x轴/y轴/z轴平移效果。
该接口从Api 10开始废弃。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ----------------------------------- | ---- | -------------- |
| option |
[
TranslateOption
](
#translateoption
)
| 是 | 设置平移参数。 |
**返回值:**
| 类型 | 说明 |
| --------------------------------- | ---------------------- |
|
[
Matrix4Transit
](
#matrix4transit
)
| 当前矩阵的逆矩阵对象。 |
## matrix4.scale<sup>(deprecated)</sup>
scale(options: ScaleOption): Matrix4Transit
Matrix的缩放函数,可以为当前矩阵增加x轴/y轴/z轴缩放效果。
该接口从Api 10开始废弃。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------ | --------------------------- | ---- | -------------- |
| option |
[
ScaleOption
](
#scaleoption
)
| 是 | 设置缩放参数。 |
**返回值:**
| 类型 | 说明 |
| --------------------------------- | ---------------------- |
|
[
Matrix4Transit
](
#matrix4transit
)
| 当前矩阵的逆矩阵对象。 |
## matrix4.rotate<sup>(deprecated)</sup>
rotate(options: RotateOption): Matrix4Transit
Matrix的旋转函数,可以为当前矩阵增加x轴/y轴/z轴旋转效果。
该接口从Api 10开始废弃。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------ | ----------------------------- | ---- | -------------- |
| option |
[
RotateOption
](
#rotateoption
)
| 是 | 设置旋转参数。 |
**返回值:**
| 类型 | 说明 |
| --------------------------------- | ---------------------- |
|
[
Matrix4Transit
](
#matrix4transit
)
| 当前矩阵的逆矩阵对象。 |
## matrix4.transformPoint<sup>(deprecated)</sup>
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
)
| 是 | 设置旋转参数。 |
**返回值:**
| 类型 | 说明 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录