Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
05595bcd
D
Docs
项目概览
OpenHarmony
/
Docs
接近 2 年 前同步成功
通知
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看板
提交
05595bcd
编写于
9月 23, 2022
作者:
H
hebingxue
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'hbx0923' of gitee.com:hebingxue/docs into hbx0923
上级
bca92913
9147d52a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
16 addition
and
17 deletion
+16
-17
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-imageanimator.md
...v/reference/arkui-ts/ts-basic-components-imageanimator.md
+4
-4
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-marquee.md
...ion-dev/reference/arkui-ts/ts-basic-components-marquee.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md
...cation-dev/reference/arkui-ts/ts-basic-components-span.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textclock.md
...n-dev/reference/arkui-ts/ts-basic-components-textclock.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md
...ion-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md
+2
-3
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md
...eference/arkui-ts/ts-universal-attributes-component-id.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md
...erence/arkui-ts/ts-universal-attributes-gradient-color.md
+3
-3
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md
.../reference/arkui-ts/ts-universal-attributes-text-style.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md
...erence/arkui-ts/ts-universal-attributes-transformation.md
+1
-1
未找到文件。
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-imageanimator.md
浏览文件 @
05595bcd
...
@@ -23,20 +23,20 @@ ImageAnimator()
...
@@ -23,20 +23,20 @@ ImageAnimator()
| 参数名称 | 参数类型 | 必填 | 参数描述 |
| 参数名称 | 参数类型 | 必填 | 参数描述 |
| ---------- | ----------------------- | -------- | -------- |
| ---------- | ----------------------- | -------- | -------- |
| images | Array
<
ImageFrameInfo
>
|
是
| 设置图片帧信息集合。每一帧的帧信息(ImageFrameInfo)包含图片路径、图片大小、图片位置和图片播放时长信息,详见ImageFrameInfo属性说明。
<br/>
默认值:[] |
| images | Array
<
ImageFrameInfo
>
|
否
| 设置图片帧信息集合。每一帧的帧信息(ImageFrameInfo)包含图片路径、图片大小、图片位置和图片播放时长信息,详见ImageFrameInfo属性说明。
<br/>
默认值:[] |
| state |
[
AnimationStatus
](
ts-appendix-enums.md#animationstatus
)
| 否 | 默认为初始状态,用于控制播放状态。
<br/>
默认值:Initial |
| state |
[
AnimationStatus
](
ts-appendix-enums.md#animationstatus
)
| 否 | 默认为初始状态,用于控制播放状态。
<br/>
默认值:
AnimationStatus.
Initial |
| duration | number | 否 | 单位为毫秒,默认时长为1000ms;duration为0时,不播放图片;值的改变只会在下一次循环开始时生效;当images中任意一帧图片设置了单独的duration后,该属性设置无效。
<br/>
默认值:1000 |
| duration | number | 否 | 单位为毫秒,默认时长为1000ms;duration为0时,不播放图片;值的改变只会在下一次循环开始时生效;当images中任意一帧图片设置了单独的duration后,该属性设置无效。
<br/>
默认值:1000 |
| reverse | boolean | 否 | 设置播放顺序。false表示从第1张图片播放到最后1张图片;
true表示从最后1张图片播放到第1张图片。
<br/>
默认值:false |
| reverse | boolean | 否 | 设置播放顺序。false表示从第1张图片播放到最后1张图片;
true表示从最后1张图片播放到第1张图片。
<br/>
默认值:false |
| fixedSize | boolean | 否 | 设置图片大小是否固定为组件大小。
true表示图片大小与组件大小一致,此时设置图片的width
、height
、top
和left属性是无效的。false表示每一张图片的width
、height
、top和left属性都要单独设置。
<br/>
默认值:true |
| fixedSize | boolean | 否 | 设置图片大小是否固定为组件大小。
true表示图片大小与组件大小一致,此时设置图片的width
、height
、top
和left属性是无效的。false表示每一张图片的width
、height
、top和left属性都要单独设置。
<br/>
默认值:true |
| preDecode | number | 否 | 是否启用预解码,默认值为0,即不启用预解码,如该值设为2,则播放当前页时会提前加载后面两张图片至缓存以提升性能。
<br/>
默认值:0 |
| preDecode | number | 否 | 是否启用预解码,默认值为0,即不启用预解码,如该值设为2,则播放当前页时会提前加载后面两张图片至缓存以提升性能。
<br/>
默认值:0 |
| fillMode |
[
FillMode
](
ts-appendix-enums.md#fillmode
)
| 否 | 设置动画开始前和结束后的状态,可选值参见FillMode说明。
<br/>
默认值:Forwards |
| fillMode |
[
FillMode
](
ts-appendix-enums.md#fillmode
)
| 否 | 设置动画开始前和结束后的状态,可选值参见FillMode说明。
<br/>
默认值:F
illMode. F
orwards |
| iterations | number | 否 | 默认播放一次,设置为-1时表示无限次播放。
<br/>
默认值:1 |
| iterations | number | 否 | 默认播放一次,设置为-1时表示无限次播放。
<br/>
默认值:1 |
-
ImageFrameInfo属性说明
-
ImageFrameInfo属性说明
| 参数名称 | 参数类型 | 必填 | 参数描述 |
| 参数名称 | 参数类型 | 必填 | 参数描述 |
| -------- | -------------- | -------- | -------- |
| -------- | -------------- | -------- | -------- |
| src | string
\|
[
Resource
](
ts-types.md#resource
)
<sup>
9+
</sup>
| 是 | 图片路径,图片格式为svg,png和jpg,从API Version9开始支持
[
Resource
](
ts-types.md#resource
类型
)
类型的路径。
<br/>
默认值:""
|
| src | string
\|
[
Resource
](
ts-types.md#resource
)
<sup>
9+
</sup>
| 是 | 图片路径,图片格式为svg,png和jpg,从API Version9开始支持
[
Resource
](
ts-types.md#resource
)
类型的路径。
|
| width |
[
Length
](
ts-types.md#length
)
| 否 | 图片宽度。
<br/>
默认值:0 |
| width |
[
Length
](
ts-types.md#length
)
| 否 | 图片宽度。
<br/>
默认值:0 |
| height |
[
Length
](
ts-types.md#length
)
| 否 | 图片高度。
<br/>
默认值:0 |
| height |
[
Length
](
ts-types.md#length
)
| 否 | 图片高度。
<br/>
默认值:0 |
| top |
[
Length
](
ts-types.md#length
)
| 否 | 图片相对于组件左上角的纵向坐标。
<br/>
默认值:0 |
| top |
[
Length
](
ts-types.md#length
)
| 否 | 图片相对于组件左上角的纵向坐标。
<br/>
默认值:0 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-marquee.md
浏览文件 @
05595bcd
...
@@ -84,7 +84,7 @@ struct MarqueeExample {
...
@@ -84,7 +84,7 @@ struct MarqueeExample {
Button
(
'
start
'
)
Button
(
'
start
'
)
.
onClick
(()
=>
{
.
onClick
(()
=>
{
this
.
start
=
true
this
.
start
=
true
})
})
.
width
(
200
)
.
width
(
200
)
.
height
(
60
)
.
height
(
60
)
.
margin
({
bottom
:
20
})
.
margin
({
bottom
:
20
})
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md
浏览文件 @
05595bcd
...
@@ -25,7 +25,7 @@ Span(value: string | Resource)
...
@@ -25,7 +25,7 @@ Span(value: string | Resource)
## 属性
## 属性
通用属性方法仅支持
[
通用文本样式
](
ts-universal-attributes-text-style.md
)
,不支持
[
触摸热区设置
](
ts-universal-attributes-touch-target.md
)
。
通用属性方法仅支持
[
通用文本样式
](
ts-universal-attributes-text-style.md
)
。
| 名称 | 参数类型 | 描述 |
| 名称 | 参数类型 | 描述 |
| -------- | -------- | -------- |
| -------- | -------- | -------- |
...
@@ -36,7 +36,7 @@ Span(value: string | Resource)
...
@@ -36,7 +36,7 @@ Span(value: string | Resource)
## 事件
## 事件
通用事件仅支持
点击事件
。
通用事件仅支持
[
点击事件
](
ts-universal-attributes-click.md
)
。
> **说明:**
> **说明:**
>
>
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textclock.md
浏览文件 @
05595bcd
...
@@ -19,7 +19,7 @@ TextClock(options?: { timeZoneOffset?: number, controller?: TextClockController
...
@@ -19,7 +19,7 @@ TextClock(options?: { timeZoneOffset?: number, controller?: TextClockController
| 参数名 | 参数类型 | 必填 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 参数描述 |
| -------------- | -------- | ------ | --------------------------------------------------------------------------- |
| -------------- | -------- | ------ | --------------------------------------------------------------------------- |
| timeZoneOffset | number | 否 | 设置时区偏移量。
<br>
取值范围为[-14, 12],表示东十二区到西十二区,其中负值表示东时区,正值表示西时区,比如东八区为-8。
<br>
对横跨国际日界线的国家或地区,用-13(UTC+13)和-14(UTC+14)来保证整个国家或者区域处在相同的时间,当设置的值不在取值范围内时,将使用当前系统的时区偏移量。
<br/>
默认值:当前系统的时区偏移量 |
| timeZoneOffset | number | 否 | 设置时区偏移量。
<br>
取值范围为[-14, 12],表示东十二区到西十二区,其中负值表示东时区,正值表示西时区,比如东八区为-8。
<br>
对横跨国际日界线的国家或地区,用-13(UTC+13)和-14(UTC+14)来保证整个国家或者区域处在相同的时间,当设置的值不在取值范围内时,将使用当前系统的时区偏移量。
<br/>
默认值:当前系统的时区偏移量 |
| controller |
[
TextClockController
](
#textclockcontroller
)
| 否 | 绑定一个控制器,用来控制文本时钟的状态。
<br/>
默认值:null
|
| controller |
[
TextClockController
](
#textclockcontroller
)
| 否 | 绑定一个控制器,用来控制文本时钟的状态。|
## 属性
## 属性
...
...
zh-cn/application-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md
浏览文件 @
05595bcd
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
## 属性
## 属性
<<<<<<< Updated upstream
| 名称 | 参数类型 | 参数描述 |
| 名称 | 参数类型 | 参数描述 |
| ---- | --------------- | -------- |
| ---- | --------------- | -------- |
| show | AlertDialogParamWithConfirm
\|
AlertDialogParamWithButtons | 定义并显示AlertDialog组件。 |
| show | AlertDialogParamWithConfirm
\|
AlertDialogParamWithButtons | 定义并显示AlertDialog组件。 |
...
@@ -22,7 +21,7 @@
...
@@ -22,7 +21,7 @@
| autoCancel | boolean | 否 | 点击遮障层时,是否关闭弹窗。
<br>
默认值:true |
| autoCancel | boolean | 否 | 点击遮障层时,是否关闭弹窗。
<br>
默认值:true |
| confirm | {
<br/>
value:
string
\|
[Resource](ts-types.md#resource),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
action:
()
=
>
void
<br/>
} | 否 | 确认按钮的文本内容、文本色、按钮背景色和点击回调。 |
| confirm | {
<br/>
value:
string
\|
[Resource](ts-types.md#resource),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
action:
()
=
>
void
<br/>
} | 否 | 确认按钮的文本内容、文本色、按钮背景色和点击回调。 |
| cancel | ()
=
>
void | 否 | 点击遮障层关闭dialog时的回调。 |
| cancel | ()
=
>
void | 否 | 点击遮障层关闭dialog时的回调。 |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
)
| 否 | 弹窗在竖直方向上的对齐方式。
<br>
默认值:DialogAlignment.Default |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
#dialogalignment
)
| 否 | 弹窗在竖直方向上的对齐方式。
<br>
默认值:DialogAlignment.Default |
| offset |
[
Offset
](
ts-types.md#offset
)
| 否 | 弹窗相对alignment所在位置的偏移量。 |
| offset |
[
Offset
](
ts-types.md#offset
)
| 否 | 弹窗相对alignment所在位置的偏移量。 |
| gridCount | number | 否 | 弹窗容器宽度所占用栅格数。 |
| gridCount | number | 否 | 弹窗容器宽度所占用栅格数。 |
...
@@ -35,7 +34,7 @@
...
@@ -35,7 +34,7 @@
| primaryButton | {
<br/>
value:
string
\|
[Resource](ts-types.md#resource),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
action:
()
=
>
void;
<br/>
} | 否 | 按钮的文本内容、文本色、按钮背景色和点击回调。 |
| primaryButton | {
<br/>
value:
string
\|
[Resource](ts-types.md#resource),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
action:
()
=
>
void;
<br/>
} | 否 | 按钮的文本内容、文本色、按钮背景色和点击回调。 |
| secondaryButton | {
<br/>
value:
string
\|
[Resource](ts-types.md#resource),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
action:
()
=
>
void;
<br/>
} | 否 | 按钮的文本内容、文本色、按钮背景色和点击回调。 |
| secondaryButton | {
<br/>
value:
string
\|
[Resource](ts-types.md#resource),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
action:
()
=
>
void;
<br/>
} | 否 | 按钮的文本内容、文本色、按钮背景色和点击回调。 |
| cancel | ()
=
>
void | 否 | 点击遮障层关闭dialog时的回调。 |
| cancel | ()
=
>
void | 否 | 点击遮障层关闭dialog时的回调。 |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
)
| 否 | 弹窗在竖直方向上的对齐方式。
<br>
默认值:DialogAlignment.Default |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
#dialogalignment
)
| 否 | 弹窗在竖直方向上的对齐方式。
<br>
默认值:DialogAlignment.Default |
| offset |
[
Offset
](
ts-types.md#offset
)
| 否 | 弹窗相对alignment所在位置的偏移量。 |
| offset |
[
Offset
](
ts-types.md#offset
)
| 否 | 弹窗相对alignment所在位置的偏移量。 |
| gridCount | number | 否 | 弹窗容器宽度所占用栅格数。 |
| gridCount | number | 否 | 弹窗容器宽度所占用栅格数。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md
浏览文件 @
05595bcd
...
@@ -11,7 +11,7 @@ id为组件的唯一标识,在整个应用内唯一。本模块提供组件标
...
@@ -11,7 +11,7 @@ id为组件的唯一标识,在整个应用内唯一。本模块提供组件标
| 名称 | 参数说明 | 描述 |
| 名称 | 参数说明 | 描述 |
| -----| -------- | ----------------------------- |
| -----| -------- | ----------------------------- |
| id | string | 组件的唯一标识,唯一性由使用者保证。
<br>
默认值:'
'|
| id | string | 组件的唯一标识,唯一性由使用者保证。
<br>
默认值:''|
## 接口
## 接口
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md
浏览文件 @
05595bcd
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
| 名称 | 参数类型 | 描述 |
| 名称 | 参数类型 | 描述 |
| -------------- | -------------------------------------------- | ----------------------------------- |
| -------------- | -------------------------------------------- | ----------------------------------- |
| linearGradient | {
<br/>
angle?:
number
\|
string,
<br/>
direction?:
[GradientDirection](ts-appendix-enums.md#gradientdirection),
<br/>
colors:
Array
<
[ColorStop](ts-basic-components-gauge.md#colorstop)
>
,
<br/>
repeating?:
boolean
<br/>
} | 线性渐变。
<br/>
- angle:
线性渐变的角度。
<br/>
- direction:
线性渐变的方向,设置angle后不生效。
<br/>
- colors:
为渐变的颜色描述。
<br/>
-
repeating:
为渐变的颜色重复着色。 |
| linearGradient | {
<br/>
angle?:
number
\|
string,
<br/>
direction?:
[GradientDirection](ts-appendix-enums.md#gradientdirection),
<br/>
colors:
Array
<
[ColorStop](ts-basic-components-gauge.md#colorstop)
>
,
<br/>
repeating?:
boolean
<br/>
} | 线性渐变。
<br/>
angle:
线性渐变的角度。
<br/>
direction:
线性渐变的方向,设置angle后不生效。
<br/>
colors:
为渐变的颜色描述。
<br/>
repeating:
为渐变的颜色重复着色。 |
| sweepGradient | {
<br/>
center:
Point,
<br/>
start?:
number
\|
string,
<br/>
end?:
number
\|
string,
<br/>
rotation?:
number\|string,
<br/>
colors:
Array
<
[ColorStop](ts-basic-components-gauge.md#colorstop)
>
,
<br/>
repeating?:
boolean
<br/>
} | 角度渐变。
<br/>
- center:为角度渐变的中心点。
<br/>
- start:角度渐变的起点。
<br/>
- end:角度渐变的终点。
<br/>
- rotation:
角度渐变的旋转角度。
<br/>
- colors:
为渐变的颜色描述。
<br/>
-
repeating:
为渐变的颜色重复着色。 |
| sweepGradient | {
<br/>
center:
Point,
<br/>
start?:
number
\|
string,
<br/>
end?:
number
\|
string,
<br/>
rotation?:
number\|string,
<br/>
colors:
Array
<
[ColorStop](ts-basic-components-gauge.md#colorstop)
>
,
<br/>
repeating?:
boolean
<br/>
} | 角度渐变。
<br/>
center:为角度渐变的中心点。
<br/>
start:角度渐变的起点。
<br/>
end:角度渐变的终点。
<br/>
rotation:
角度渐变的旋转角度。
<br/>
colors:
为渐变的颜色描述。
<br/>
repeating:
为渐变的颜色重复着色。 |
| radialGradient | {
<br/>
center:
Point,
<br/>
-radius:
number
\|
string,
<br/>
colors:
Array
<
[ColorStop](ts-basic-components-gauge.md#colorstop)
>
,
<br/>
repeating?:
boolean
<br/>
} | 径向渐变。
<br/>
- center:径向渐变的中心点。
<br/>
- radius:径向渐变的半径。
<br/>
- colors:
为渐变的颜色描述。
<br/>
-
repeating:
为渐变的颜色重复着色。 |
| radialGradient | {
<br/>
center:
Point,
<br/>
-radius:
number
\|
string,
<br/>
colors:
Array
<
[ColorStop](ts-basic-components-gauge.md#colorstop)
>
,
<br/>
repeating?:
boolean
<br/>
} | 径向渐变。
<br/>
center:径向渐变的中心点。
<br/>
radius:径向渐变的半径。
<br/>
colors:
为渐变的颜色描述。
<br/>
repeating:
为渐变的颜色重复着色。 |
## 示例
## 示例
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md
浏览文件 @
05595bcd
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
| fontColor |
[
ResourceColor
](
ts-types.md#resourcecolor
)
| 设置文本颜色。 |
| fontColor |
[
ResourceColor
](
ts-types.md#resourcecolor
)
| 设置文本颜色。 |
| fontSize | Length
\|
[
Resource
](
ts-types.md#resource
)
| 设置文本尺寸,Length为number类型时,使用fp单位。 |
| fontSize | Length
\|
[
Resource
](
ts-types.md#resource
)
| 设置文本尺寸,Length为number类型时,使用fp单位。 |
| fontStyle |
[
FontStyle
](
ts-appendix-enums.md#fontstyle
)
| 设置文本的字体样式。
<br>
默认值:FontStyle.Normal |
| fontStyle |
[
FontStyle
](
ts-appendix-enums.md#fontstyle
)
| 设置文本的字体样式。
<br>
默认值:FontStyle.Normal |
| fontWeight | number
\|
[FontWeight](ts-appendix-enums.md#fontweight)
\|
string | 设置文本的字体粗细,number类型取值[100,
900],取值间隔为100,默认为400,取值越大,字体越粗。
<br/>
默认值:FontWeight.
FontWeight
Normal |
| fontWeight | number
\|
[FontWeight](ts-appendix-enums.md#fontweight)
\|
string | 设置文本的字体粗细,number类型取值[100,
900],取值间隔为100,默认为400,取值越大,字体越粗。
<br/>
默认值:FontWeight.Normal |
| fontFamily | string
\|
[
Resource
](
ts-types.md#resource
)
| 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial,
sans-serif'。 |
| fontFamily | string
\|
[
Resource
](
ts-types.md#resource
)
| 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial,
sans-serif'。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md
浏览文件 @
05595bcd
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
| 名称 | 参数类型 | 描述 |
| 名称 | 参数类型 | 描述 |
| --------- | ------------------------------------------------------------------------ | ---------------------------------------- |
| --------- | ------------------------------------------------------------------------ | ---------------------------------------- |
| rotate | {
<br/>
x?:
number,
<br/>
y?:
number,
<br/>
z?:
number,
<br/>
angle?:
Angle,
<br/>
centerX?:
number
\|
string,
<br/>
centerY?:
number
\|
string
<br/>
} | (x,
y,
z)指定一个矢量,表示旋转轴,正角度为顺时针转动,负角度为逆时针转动,默认值为0,同时可以通过centerX和centerY设置旋转的中心点。
<br>
默认值:
<br>
{
<br/>
x:
0,
<br/>
y:
0,
<br/>
z:
0,
<br/>
angle:
0,
<br/>
centerX:
'50%',
<br/>
centerY:
'50%'
<br/>
} |
| rotate | {
<br/>
x?:
number,
<br/>
y?:
number,
<br/>
z?:
number,
<br/>
angle?:
Angle,
<br/>
centerX?:
number
\|
string,
<br/>
centerY?:
number
\|
string
<br/>
} | (x,
y,
z)指定一个矢量,表示旋转轴,正角度为顺时针转动,负角度为逆时针转动,默认值为0,同时可以通过centerX和centerY设置旋转的中心点。
<br>
默认值:
<br>
{
<br/>
x:
0,
<br/>
y:
0,
<br/>
z:
0,
<br/>
angle:
0,
<br/>
centerX:
'50%',
<br/>
centerY:
'50%'
<br/>
} |
| translate | {
<br/>
x?:
number
\|
string,
<br/>
y?:
number
\|
string,
<br/>
z?
:
number
\|
string
<br/>
} | 可以分别设置X轴、Y轴、Z轴的平移距离,距离的正负控制平移的方向
,默认值为0
。不支持百分比形式的输入。
<br>
默认值:
<br>
{
<br/>
x:
0,
<br/>
y:
0,
<br/>
z:
0
<br/>
}|
| translate | {
<br/>
x?:
number
\|
string,
<br/>
y?:
number
\|
string,
<br/>
z?
:
number
\|
string
<br/>
} | 可以分别设置X轴、Y轴、Z轴的平移距离,距离的正负控制平移的方向。不支持百分比形式的输入。
<br>
默认值:
<br>
{
<br/>
x:
0,
<br/>
y:
0,
<br/>
z:
0
<br/>
}|
| scale | {
<br/>
x?:
number,
<br/>
y?:
number,
<br/>
z?:
number,
<br/>
centerX?:
number
\|
string,
<br/>
centerY?:
number
\|
string
<br/>
} | 可以分别设置X轴、Y轴、Z轴的缩放比例,默认值为1,同时可以通过centerX和centerY设置缩放的中心点。
<br>
默认值:
<br>
{
<br/>
x:
1,
<br/>
y:
1,
<br/>
z:
1,
<br/>
centerX:'50%',
<br/>
centerY:'50%'
<br/>
} |
| scale | {
<br/>
x?:
number,
<br/>
y?:
number,
<br/>
z?:
number,
<br/>
centerX?:
number
\|
string,
<br/>
centerY?:
number
\|
string
<br/>
} | 可以分别设置X轴、Y轴、Z轴的缩放比例,默认值为1,同时可以通过centerX和centerY设置缩放的中心点。
<br>
默认值:
<br>
{
<br/>
x:
1,
<br/>
y:
1,
<br/>
z:
1,
<br/>
centerX:'50%',
<br/>
centerY:'50%'
<br/>
} |
| transform | Matrix4Transit | 设置当前组件的变换矩阵。 |
| transform | Matrix4Transit | 设置当前组件的变换矩阵。 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录