Skip to main content

StoryAreaPosition

Type Alias StoryAreaPosition 

Source
pub type StoryAreaPosition = AreaPosition;
Expand description

Former name of AreaPosition.

Aliased Type§

pub struct StoryAreaPosition {
    pub x_percentage: f64,
    pub y_percentage: f64,
    pub width_percentage: f64,
    pub height_percentage: f64,
    pub rotation_angle: f64,
    pub corner_radius_percentage: f64,
}

Fields§

§x_percentage: f64

Horizontal center, as a percentage of the media or card width.

§y_percentage: f64

Vertical center, as a percentage of the media or card height.

§width_percentage: f64

Width of the rectangle, as a percentage of the media or card width.

§height_percentage: f64

Height of the rectangle, as a percentage of the media or card height.

§rotation_angle: f64

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

§corner_radius_percentage: f64

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