Skip to content

StoryAreaPosition

Type · TDLib 1.8.67 · d1085f9c

Describes position of a clickable rectangle area on a story media

StoryAreaPosition(
  x_percentage: double,
  y_percentage: double,
  width_percentage: double,
  height_percentage: double,
  rotation_angle: double,
  corner_radius_percentage: double
) → StoryAreaPosition

x_percentage

double

The abscissa of the rectangle's center, as a percentage of the media width

y_percentage

double

The ordinate of the rectangle's center, as a percentage of the media height

width_percentage

double

The width of the rectangle, as a percentage of the media width

height_percentage

double

The height of the rectangle, as a percentage of the media height

rotation_angle

double

Clockwise rotation angle of the rectangle, in degrees; 0-360

corner_radius_percentage

double

The radius of the rectangle corner rounding, as a percentage of the media width