Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
e7480010
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看板
提交
e7480010
编写于
3月 29, 2023
作者:
L
lanyill
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
绘制组件strokewidth与viewport属性添加暂不支持百分比的说明
Signed-off-by:
N
lanyill
<
lanyi3@huawei.com
>
上级
30efe996
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
9 addition
and
9 deletion
+9
-9
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-circle.md
...on-dev/reference/arkui-ts/ts-drawing-components-circle.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md
...n-dev/reference/arkui-ts/ts-drawing-components-ellipse.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md
...tion-dev/reference/arkui-ts/ts-drawing-components-line.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-path.md
...tion-dev/reference/arkui-ts/ts-drawing-components-path.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
...n-dev/reference/arkui-ts/ts-drawing-components-polygon.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polyline.md
...-dev/reference/arkui-ts/ts-drawing-components-polyline.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
...tion-dev/reference/arkui-ts/ts-drawing-components-rect.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md
...ion-dev/reference/arkui-ts/ts-drawing-components-shape.md
+2
-2
未找到文件。
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-circle.md
浏览文件 @
e7480010
...
...
@@ -37,7 +37,7 @@ Circle(options?: {width?: string | number, height?: string | number})
| strokeLineJoin |
[
LineJoinStyle
](
ts-appendix-enums.md#linejoinstyle
)
| 否 | 设置边框拐角绘制样式。
<br>
默认值:LineJoinStyle.Miter |
| strokeMiterLimit | number
\|
string | 否 | 设置锐角绘制成斜角的极限值。
<br>
默认值:4 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource类型
)
| 否 | 设置边框透明度。
<br>
默认值:1 |
| strokeWidth | Length | 否 | 设置边框宽度。
<br>
默认值:1 |
| strokeWidth | Length | 否 | 设置边框宽度。
<br>
默认值:1
<br/>
**说明:**
<br/>
该属性若为string类型, 暂不支持百分比。
|
| antiAlias | boolean | 否 | 是否开启抗锯齿效果。
<br>
默认值:true |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md
浏览文件 @
e7480010
...
...
@@ -38,7 +38,7 @@ ellipse(options?: {width?: string | number, height?: string | number})
| strokeLineJoin |
[
LineJoinStyle
](
ts-appendix-enums.md#linejoinstyle
)
| LineJoinStyle.Miter | 否 | 设置边框拐角绘制样式。 |
| strokeMiterLimit | number
\|
string | 4 | 否 | 设置锐角绘制成斜角的极限值。 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource类型
)
| 1 | 否 | 设置边框透明度。 |
| strokeWidth | Length | 1 | 否 | 设置边框宽度。 |
| strokeWidth | Length | 1 | 否 | 设置边框宽度。
<br/>
**说明:**
<br/>
该属性若为string类型, 暂不支持百分比。
|
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md
浏览文件 @
e7480010
...
...
@@ -47,7 +47,7 @@ Line(value?: {width?: string | number, height?: string | number})
| strokeLineJoin |
[
LineJoinStyle
](
ts-appendix-enums.md#linejoinstyle
)
| LineJoinStyle.Miter | 否 | 设置线条拐角绘制样式。 |
| strokeMiterLimit | number
\|
string | 4 | 否 | 设置锐角绘制成斜角的极限值。 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource类型
)
| 1 | 否 | 设置线条透明度。 |
| strokeWidth | Length | 1 | 否 | 设置线条宽度。 |
| strokeWidth | Length | 1 | 否 | 设置线条宽度。
<br/>
**说明:**
<br/>
该属性若为string类型, 暂不支持百分比。
|
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
## 示例
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-path.md
浏览文件 @
e7480010
...
...
@@ -39,7 +39,7 @@ Path(value?: { width?: number | string; height?: number | string; commands?: str
| strokeLineJoin |
[
LineJoinStyle
](
ts-appendix-enums.md#linejoinstyle
)
| LineJoinStyle.Miter | 否 | 设置线条拐角绘制样式。 |
| strokeMiterLimit | number
\|
string | 4 | 否 | 设置锐角绘制成斜角的极限值。 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource类型
)
| 1 | 否 | 设置线条透明度。 |
| strokeWidth | Length | 1 | 否 | 设置线条宽度。 |
| strokeWidth | Length | 1 | 否 | 设置线条宽度。
<br/>
**说明:**
<br/>
该属性若为string类型, 暂不支持百分比。
|
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
commands支持的绘制命令如下:
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
浏览文件 @
e7480010
...
...
@@ -40,7 +40,7 @@ Polygon(value?: {width?: string | number, height?: string | number})
| strokeLineJoin |
[
LineJoinStyle
](
ts-appendix-enums.md#linejoinstyle
)
| LineJoinStyle.Miter | 否 | 设置边框拐角绘制样式。 |
| strokeMiterLimit | number
\|
string | 4 | 否 | 设置锐角绘制成斜角的极限值。 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource类型
)
| 1 | 否 | 设置边框透明度。 |
| strokeWidth | Length | 1 | 否 | 设置边框宽度。 |
| strokeWidth | Length | 1 | 否 | 设置边框宽度。
<br/>
**说明:**
<br/>
该属性若为string类型, 暂不支持百分比。
|
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
## Point
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polyline.md
浏览文件 @
e7480010
...
...
@@ -40,7 +40,7 @@ Polyline(value?: {width?: string | number, height?: string | number})
| strokeLineJoin |
[
LineJoinStyle
](
ts-appendix-enums.md#linejoinstyle
)
| LineJoinStyle.Miter | 否 | 设置线条拐角绘制样式。 |
| strokeMiterLimit | number
\|
string | 4 | 否 | 设置锐角绘制成斜角的极限值。 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource类型
)
| 1 | 否 | 设置线条透明度。 |
| strokeWidth | Length | 1 | 否 | 设置线条宽度。 |
| strokeWidth | Length | 1 | 否 | 设置线条宽度。
<br/>
**说明:**
<br/>
该属性若为string类型, 暂不支持百分比。
|
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
## Point
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
浏览文件 @
e7480010
...
...
@@ -46,7 +46,7 @@ Rect(value?: {width?: string | number,height?: string | number,radius?: string |
| strokeLineJoin |
[
LineJoinStyle
](
ts-appendix-enums.md#linejoinstyle
)
| LineJoinStyle.Miter | 否 | 设置边框拐角绘制样式。 |
| strokeMiterLimit | number
\|
string | 4 | 否 | 设置锐角绘制成斜角的极限值。 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource类型
)
| 1 | 否 | 设置边框透明度。 |
| strokeWidth | Length | 1 | 否 | 设置边框宽度。 |
| strokeWidth | Length | 1 | 否 | 设置边框宽度。
<br/>
**说明:**
<br/>
该属性若为string类型, 暂不支持百分比。
|
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md
浏览文件 @
e7480010
...
...
@@ -33,7 +33,7 @@ Shape(value?: PixelMap)
| 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| viewPort | {
<br/>
x?:
number
\|
string,
<br/>
y?:
number
\|
string,
<br/>
width?:
number
\|
string,
<br/>
height?:
number
\|
string
<br/>
} | { x:0, y:0, width:0, height:0 } | 否 | 形状的视口。 |
| viewPort | {
<br/>
x?:
number
\|
string,
<br/>
y?:
number
\|
string,
<br/>
width?:
number
\|
string,
<br/>
height?:
number
\|
string
<br/>
} | { x:0, y:0, width:0, height:0 } | 否 | 形状的视口。
<br/>
**说明:**
<br/>
该属性若为string类型, 暂不支持百分比。
|
| fill |
[
ResourceColor
](
ts-types.md
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
ts-types.md
)
| - | 否 | 设置边框颜色,不设置时,默认没有边框线条。 |
...
...
@@ -43,7 +43,7 @@ Shape(value?: PixelMap)
| strokeLineJoin |
[
LineJoinStyle
](
ts-appendix-enums.md#linejoinstyle
)
| LineJoinStyle.Miter | 否 | 设置边框拐角绘制样式。 |
| strokeMiterLimit | number
\|
string | 4 | 否 | 设置锐角绘制成斜角的极限值。 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource类型
)
| 1 | 否 | 设置边框透明度。 |
| strokeWidth | number
\|
string | 1 | 否 | 设置边框宽度。 |
| strokeWidth | number
\|
string | 1 | 否 | 设置边框宽度。
<br/>
**说明:**
<br/>
该属性若为string类型, 暂不支持百分比。
|
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
| mesh
<sup>
8+
</sup>
| Array
<
number
>
,number,number | [],0,0 | 否 | 设置mesh效果。第一个参数为长度(column + 1)
* (row + 1)*
2的数组,它记录了扭曲后的位图各个顶点位置,第二个参数为mesh矩阵列数column,第三个参数为mesh矩阵行数row。 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录