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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
corner_radius_percentage
The radius of the rectangle corner rounding, as a percentage of the media width
corner_radius_percentage=(corner_radius_percentage : Float64)
The radius of the rectangle corner rounding, as a percentage of the media width
height_percentage=(height_percentage : Float64)
The height of the area's rectangle, as a percentage of the media height
rotation_angle=(rotation_angle : Float64)
The clockwise rotation angle of the rectangle, in degrees; 0-360
width_percentage=(width_percentage : Float64)
The width of the area's rectangle, as a percentage of the media width