diff --git a/en/application-dev/reference/arkui-ts/ts-drawing-components-shape.md b/en/application-dev/reference/arkui-ts/ts-drawing-components-shape.md index 5c17b095ddbf3fe50dabe66f1db4cf15331d1f02..1e9c3d993ad007b9b6f43fad6c39556cbbd2bbfe 100644 --- a/en/application-dev/reference/arkui-ts/ts-drawing-components-shape.md +++ b/en/application-dev/reference/arkui-ts/ts-drawing-components-shape.md @@ -1,17 +1,17 @@ # Shape -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. -The **<Shape>** component is the parent component of the drawing components. The attributes described in this topic are universal attributes supported by all the drawing components. +The **** component is the parent component of the drawing components. The attributes described in this topic are universal attributes supported by all the drawing components. -1. The drawing components use **<Shape>** as the parent component to implement the effect similar to SVG. +1. Drawing components use **** as their parent component to implement the effect similar to SVG. -2. The **<Shape>** component is used independently to draw a specific shape. +2. The **** component is used independently to draw a specific shape. ## Required Permissions @@ -29,14 +29,14 @@ The **<Shape>** component can contain child components. Shape(value:{target?: PixelMap}) - Parameters - | Name | Type | Mandatory | Default Value | Description | + | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | | target | PixelMap | No | null | Shape to draw. You can draw a shape in the specified **PixelMap** object. If no object is specified, the shape is drawn in the current drawing target. | ## Attributes - | Name | Type | Default Value | Mandatory | Description | +| Name | Type | Default Value | Mandatory | Description | | -------- | -------- | -------- | -------- | -------- | | viewPort | {
x: Length,
y: Length,
width: Length,
height: Length
} | - | Yes | View port of the shape. | | fill | Color | Black | No | Fill color. | @@ -51,7 +51,7 @@ Shape(value:{target?: PixelMap}) | antiAlias | boolean | true | No | Whether anti-aliasing is enabled. | - LineJoinStyle enums - | Name | Description | + | Name | Description | | -------- | -------- | | Bevel | Bevel is used to connect paths. | | Miter | Miter is used to connect paths. |