To add a graphic to a layer, you can use:
- POST api/projects/{projectId}/layers/{layerId}/graphics?graphicFit=graphicFit
Where the graphicFit is one of the values listed:
| Name | Number | Description |
|---|---|---|
| n/a | 0 | The graphic area will fill the design extents. |
| n/a | 1 | The graphic entity will fill the extents of the selection polygon, clipping where necessary. |
| n/a | 2 | The graphic entity will fill the extents of the selection rectangle. |
| n/a | 3 | The extents of the graphic entity are defined by the user. |
| n/a | 4 | The graphic entity's centre will be aligned with the centre of the design extents. |