提交 eb6aedab 编写于 作者: T tianyu 提交者: 田雨
上级 3c6bd662
...@@ -86,4 +86,4 @@ struct LineExample { ...@@ -86,4 +86,4 @@ struct LineExample {
} }
``` ```
![zh-cn_image_0000001219982725](figures/zh-cn_image_0000001219982725.jpg) ![zh-cn_image_0000001219982725](figures/zh-cn_image_0000001219982725.png)
...@@ -81,4 +81,4 @@ struct PolygonExample { ...@@ -81,4 +81,4 @@ struct PolygonExample {
} }
``` ```
![zh-cn_image_0000001174582856](figures/zh-cn_image_0000001174582856.gif) ![zh-cn_image_0000001174582856](figures/zh-cn_image_0000001174582856.png)
...@@ -83,4 +83,4 @@ struct PolylineExample { ...@@ -83,4 +83,4 @@ struct PolylineExample {
} }
``` ```
![zh-cn_image_0000001219744185](figures/zh-cn_image_0000001219744185.gif) ![zh-cn_image_0000001219744185](figures/zh-cn_image_0000001219744185.png)
...@@ -48,7 +48,9 @@ Shape(value?: PixelMap) ...@@ -48,7 +48,9 @@ Shape(value?: PixelMap)
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 | | antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
| mesh<sup>8+</sup> | Array&lt;number&gt;,number,number | [],0,0 | 否 | 设置mesh效果。第一个参数为长度(column + 1)* (row + 1)* 2的数组,它记录了扭曲后的位图各个顶点位置,第二个参数为mesh矩阵列数column,第三个参数为mesh矩阵行数row。 | | mesh<sup>8+</sup> | Array&lt;number&gt;,number,number | [],0,0 | 否 | 设置mesh效果。第一个参数为长度(column + 1)* (row + 1)* 2的数组,它记录了扭曲后的位图各个顶点位置,第二个参数为mesh矩阵列数column,第三个参数为mesh矩阵行数row。 |
## 示例1 ## 示例
### 示例1
```ts ```ts
// xxx.ets // xxx.ets
...@@ -142,8 +144,9 @@ struct ShapeExample { ...@@ -142,8 +144,9 @@ struct ShapeExample {
} }
``` ```
![zh-cn_image_0000001184628104](figures/zh-cn_image_0000001184628104.png)
## 示例2 ### 示例2
```ts ```ts
// xxx.ets // xxx.ets
...@@ -222,3 +225,11 @@ struct ShapeMeshExample { ...@@ -222,3 +225,11 @@ struct ShapeMeshExample {
} }
} }
``` ```
示意图:
![zh-cn_image1_0000001184628104](figures/zh-cn_image1_0000001184628104.png)
手指触摸Shape组件时会显示mesh扭曲效果:
![zh-cn_image2_0000001184628104](figures/zh-cn_image2_0000001184628104.png)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册