class

Tourmaline::StoryAreaPosition

Inherits JSON::Serializable < Reference < Object

Describes the position of a clickable area within a story.

Constructors

new(x_percentage : Float64, y_percentage : Float64, width_percentage : Float64, height_percentage : Float64, rotation_angle : Float64, corner_radius_percentage : Float64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

corner_radius_percentage

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

Source
corner_radius_percentage=(corner_radius_percentage : Float64)

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

Source
height_percentage

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

Source
height_percentage=(height_percentage : Float64)

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

Source
rotation_angle

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

Source
rotation_angle=(rotation_angle : Float64)

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

Source
width_percentage

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

Source
width_percentage=(width_percentage : Float64)

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

Source
x_percentage

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

Source
x_percentage=(x_percentage : Float64)

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

Source
y_percentage

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

Source
y_percentage=(y_percentage : Float64)

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

Source