Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
fccca846
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
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看板
未验证
提交
fccca846
编写于
7月 13, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 13, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6722 VOD修改
Merge pull request !6722 from LiAn/OpenHarmony-3.1-Release
上级
4d9d5f00
aa2b11fe
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
7 addition
and
12 deletion
+7
-12
zh-cn/application-dev/reference/apis/js-apis-timer.md
zh-cn/application-dev/reference/apis/js-apis-timer.md
+0
-7
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-sharp-clipping.md
...erence/arkui-ts/ts-universal-attributes-sharp-clipping.md
+7
-5
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-timer.md
浏览文件 @
fccca846
...
@@ -3,13 +3,6 @@
...
@@ -3,13 +3,6 @@
## setTimeout
## setTimeout
## 导入模块
```
import Time from '@ohos.Time';
```
setTimeout(handler[,delay[,…args]]): number
setTimeout(handler[,delay[,…args]]): number
设置一个定时器,该定时器在定时器到期后执行一个函数。
设置一个定时器,该定时器在定时器到期后执行一个函数。
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-sharp-clipping.md
浏览文件 @
fccca846
# 形状裁剪
# 形状裁剪
>  **说明:**
> **说明:**
>
> 从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
> 从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
...
@@ -21,6 +22,7 @@
...
@@ -21,6 +22,7 @@
## 示例
## 示例
```
```
// xxx.ets
@Entry
@Entry
@Component
@Component
struct ClipAndMaskExample {
struct ClipAndMaskExample {
...
@@ -28,24 +30,24 @@ struct ClipAndMaskExample {
...
@@ -28,24 +30,24 @@ struct ClipAndMaskExample {
Column({ space: 5 }) {
Column({ space: 5 }) {
Text('clip').fontSize(9).width('90%').fontColor(0xCCCCCC)
Text('clip').fontSize(9).width('90%').fontColor(0xCCCCCC)
// 用一个280px直径的圆对图像进行裁剪
// 用一个280px直径的圆对图像进行裁剪
Image(
'/comment/bg.jpg'
)
Image(
$r('app.media.example')
)
.clip(new Circle({ width: 80, height: 80 }))
.clip(new Circle({ width: 80, height: 80 }))
.width('500px').height('280px')
.width('500px').height('280px')
Row() {
Row() {
Image(
'/comment/bg.jpg'
).width('500px').height('280px')
Image(
$r('app.media.example')
).width('500px').height('280px')
}
}
.clip(true)
.clip(true)
.borderRadius(20)
.borderRadius(20)
Text('mask').fontSize(9).width('90%').fontColor(0xCCCCCC)
Text('mask').fontSize(9).width('90%').fontColor(0xCCCCCC)
// 给图像添加了一个500px*280px的遮罩
// 给图像添加了一个500px*280px的遮罩
Image(
'/comment/bg.jpg'
)
Image(
$r('app.media.example')
)
.mask(new Rect({ width: '500px', height: '280px' }).fill(Color.Gray))
.mask(new Rect({ width: '500px', height: '280px' }).fill(Color.Gray))
.width('500px').height('280px')
.width('500px').height('280px')
// 给图像添加了一个280px*280px的圆遮罩
// 给图像添加了一个280px*280px的圆遮罩
Image(
'/comment/bg.jpg'
)
Image(
$r('app.media.example')
)
.mask(new Circle({ width: '280px', height: '280px' }).fill(Color.Gray))
.mask(new Circle({ width: '280px', height: '280px' }).fill(Color.Gray))
.width('500px').height('281px')
.width('500px').height('281px')
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录