mediaAreaCoordinates
Coordinates and size of a clickable rectangular area on top of a story.
type tg.MediaAreaCoordinates struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
X | float64 | yes | The abscissa of the rectangle's center, as a percentage of the media width (0-100). |
Y | float64 | yes | The ordinate of the rectangle's center, as a percentage of the media height (0-100). |
W | float64 | yes | The width of the rectangle, as a percentage of the media width (0-100). |
H | float64 | yes | The height of the rectangle, as a percentage of the media height (0-100). |
Rotation | float64 | yes | Clockwise rotation angle of the rectangle, in degrees (0-360). |
Radius | float64 | — | The radius of the rectangle corner rounding, as a percentage of the media width. |
References
- Official documentation
- Generated Go reference
- TL definition:
mediaAreaCoordinates#cfc9e002