未验证 提交 176ddb58 编写于 作者: O openharmony_ci 提交者: Gitee

!5584 【OpenHarmony开源贡献者计划2022】Optimize the format specification and reduce the reading threshold.

Merge pull request !5584 from Mr_YX/master
# Circle # Circle
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -36,7 +36,7 @@ Circle(options?: {width: Length, height: Length}) ...@@ -36,7 +36,7 @@ Circle(options?: {width: Length, height: Length})
## Attributes ## Attributes
| Name | Type | Default Value | Mandatory | Description | | Name | Type | Default Value | Mandatory | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| width | Length | 0 | No | Width of the rectangle where the circle is located. | | width | Length | 0 | No | Width of the rectangle where the circle is located. |
| height | Length | 0 | No | Height of the rectangle where the circle is located. | | height | Length | 0 | No | Height of the rectangle where the circle is located. |
...@@ -45,7 +45,7 @@ Circle(options?: {width: Length, height: Length}) ...@@ -45,7 +45,7 @@ Circle(options?: {width: Length, height: Length})
## Example ## Example
``` ```ts
@Entry @Entry
@Component @Component
struct CircleExample { struct CircleExample {
......
# Ellipse # Ellipse
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -36,7 +36,7 @@ ellipse(options?: {width: Length, height: Length}) ...@@ -36,7 +36,7 @@ ellipse(options?: {width: Length, height: Length})
## Attributes ## Attributes
| Name | Type | Default Value | Mandatory | Description | | Name | Type | Default Value | Mandatory | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| width | Length | 0 | No | Width of the rectangle where the ellipse is located. | | width | Length | 0 | No | Width of the rectangle where the ellipse is located. |
| height | Length | 0 | No | Height of the rectangle where the ellipse is located. | | height | Length | 0 | No | Height of the rectangle where the ellipse is located. |
...@@ -45,7 +45,7 @@ ellipse(options?: {width: Length, height: Length}) ...@@ -45,7 +45,7 @@ ellipse(options?: {width: Length, height: Length})
## Example ## Example
``` ```ts
@Entry @Entry
@Component @Component
struct EllipseExample { struct EllipseExample {
......
# Line # Line
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -36,7 +36,7 @@ Line(options?: {width: Length, height: Length}) ...@@ -36,7 +36,7 @@ Line(options?: {width: Length, height: Length})
## Attributes ## Attributes
| Name | Type | Default Value | Mandatory | Description | | Name | Type | Default Value | Mandatory | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| width | Length | 0 | No | Width of the rectangle where the straight line is located. | | width | Length | 0 | No | Width of the rectangle where the straight line is located. |
| height | Length | 0 | No | Height of the rectangle where the straight line is located. | | height | Length | 0 | No | Height of the rectangle where the straight line is located. |
...@@ -47,7 +47,7 @@ Line(options?: {width: Length, height: Length}) ...@@ -47,7 +47,7 @@ Line(options?: {width: Length, height: Length})
## Example ## Example
``` ```ts
@Entry @Entry
@Component @Component
struct LineExample { struct LineExample {
......
# Path # Path
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -20,7 +20,7 @@ None ...@@ -20,7 +20,7 @@ None
## Attributes ## Attributes
| Name | Type | Default Value | Mandatory | Description | | Name | Type | Default Value | Mandatory | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| width | Length | 0 | No | Width of the rectangle where the path is located. | | width | Length | 0 | No | Width of the rectangle where the path is located. |
| height | Length | 0 | No | Height of the rectangle where the path is located. | | height | Length | 0 | No | Height of the rectangle where the path is located. |
...@@ -57,7 +57,7 @@ For example, the command **M0 20 L50 50 L50 100 Z** defines a path that starts f ...@@ -57,7 +57,7 @@ For example, the command **M0 20 L50 50 L50 100 Z** defines a path that starts f
## Example ## Example
``` ```ts
@Entry @Entry
@Component @Component
struct PathExample { struct PathExample {
......
# Polygon # Polygon
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -36,7 +36,7 @@ Polygon(value:{options?: {width: Length, height: Length}}) ...@@ -36,7 +36,7 @@ Polygon(value:{options?: {width: Length, height: Length}})
## Attributes ## Attributes
| Name | Type | Default Value | Mandatory | Description | | Name | Type | Default Value | Mandatory | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| width | Length | 0 | No | Width of the rectangle where the polygon is located. | | width | Length | 0 | No | Width of the rectangle where the polygon is located. |
| height | Length | 0 | No | Height of the rectangle where the polygon is located. | | height | Length | 0 | No | Height of the rectangle where the polygon is located. |
...@@ -46,7 +46,7 @@ Polygon(value:{options?: {width: Length, height: Length}}) ...@@ -46,7 +46,7 @@ Polygon(value:{options?: {width: Length, height: Length}})
## Example ## Example
``` ```ts
@Entry @Entry
@Component @Component
struct PolygonExample { struct PolygonExample {
......
# Polyline # Polyline
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -36,7 +36,7 @@ Polyline(options?: {width: Length, height: Length}) ...@@ -36,7 +36,7 @@ Polyline(options?: {width: Length, height: Length})
## Attributes ## Attributes
| Name | Type | Default Value | Mandatory | Description | | Name | Type | Default Value | Mandatory | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| width | Length | 0 | No | Width of the rectangle where the polyline is located. | | width | Length | 0 | No | Width of the rectangle where the polyline is located. |
| height | Length | 0 | No | Height of the rectangle where the polyline is located. | | height | Length | 0 | No | Height of the rectangle where the polyline is located. |
...@@ -46,7 +46,7 @@ Polyline(options?: {width: Length, height: Length}) ...@@ -46,7 +46,7 @@ Polyline(options?: {width: Length, height: Length})
## Example ## Example
``` ```ts
@Entry @Entry
@Component @Component
struct PolylineExample { struct PolylineExample {
......
# Rect # Rect
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -39,7 +39,7 @@ Rect(value:{options?: {width: Length,height: Length,radius?: Length | Array&lt;L ...@@ -39,7 +39,7 @@ Rect(value:{options?: {width: Length,height: Length,radius?: Length | Array&lt;L
## Attributes ## Attributes
| Name | Type | Default Value | Mandatory | Description | | Name | Type | Default Value | Mandatory | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| width | Length | 0 | No | Width. | | width | Length | 0 | No | Width. |
| height | Length | 0 | No | Height. | | height | Length | 0 | No | Height. |
...@@ -51,7 +51,7 @@ Rect(value:{options?: {width: Length,height: Length,radius?: Length | Array&lt;L ...@@ -51,7 +51,7 @@ Rect(value:{options?: {width: Length,height: Length,radius?: Length | Array&lt;L
## Example ## Example
``` ```ts
@Entry @Entry
@Component @Component
struct RectExample { struct RectExample {
......
# Shape # Shape
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -36,7 +36,7 @@ Shape(value:{target?: PixelMap}) ...@@ -36,7 +36,7 @@ Shape(value:{target?: PixelMap})
## Attributes ## Attributes
| Name | Type | Default Value | Mandatory | Description | | Name | Type | Default Value | Mandatory | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| viewPort | {<br/>x: Length,<br/>y: Length,<br/>width: Length,<br/>height: Length<br/>} | - | Yes | View port of the shape. | | viewPort | {<br/>x: Length,<br/>y: Length,<br/>width: Length,<br/>height: Length<br/>} | - | Yes | View port of the shape. |
| fill | Color | Black | No | Fill color. | | fill | Color | Black | No | Fill color. |
...@@ -61,7 +61,7 @@ Shape(value:{target?: PixelMap}) ...@@ -61,7 +61,7 @@ Shape(value:{target?: PixelMap})
## Example ## Example
``` ```ts
@Entry @Entry
@Component @Component
struct ShapeExample { struct ShapeExample {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册