The rectangle element creates a perfect rectangle or a square with the attributes described below.
<rectangle id="objectId" x="xPosition"
y="yPosition" width="rectangleWidth"
height="rectangleHeight"
[lineStyle="lineStyleId"]
[fillStyle="fillStyleId"] [fillTransform="transform"]
/>
Name |
Description |
Value type |
Optional |
Default Value |
| id |
Object identifier |
no |
- |
|
| x |
Absolute x position (in pixels or twips) |
no |
- |
|
| y |
Absolute y position (in pixels or twips) |
no |
- |
|
| width |
Rectangle width (in pixels or twips) |
no |
- |
|
| height |
Rectangle height (in pixels or twips) |
no |
- |
|
| lineStyle |
Line style element id (from styles collection) |
yes |
- |
|
| fillStyle |
Fill style element id (from styles collection) |
yes |
- |
|
|
fillTransform |
Transforms shape fill style (rotate, scale, move, skew) using using script-style transformation notation. |
yes |
- |