Skip to main content

mediaAreaCoordinates

Coordinates and size of a clickable rectangular area on top of a story.

type tg.MediaAreaCoordinates struct { /* ... */ }

Fields

NameTypeRequiredDescription
Xfloat64yesThe abscissa of the rectangle's center, as a percentage of the media width (0-100).
Yfloat64yesThe ordinate of the rectangle's center, as a percentage of the media height (0-100).
Wfloat64yesThe width of the rectangle, as a percentage of the media width (0-100).
Hfloat64yesThe height of the rectangle, as a percentage of the media height (0-100).
Rotationfloat64yesClockwise rotation angle of the rectangle, in degrees (0-360).
Radiusfloat64The radius of the rectangle corner rounding, as a percentage of the media width.

References