class
Tourmaline::StoryAreaPosition
- Tourmaline::StoryAreaPosition
- Reference
- Object
Overview
Describes the position of a clickable area within a story.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(x_percentage : Float64, y_percentage : Float64, width_percentage : Float64, height_percentage : Float64, rotation_angle : Float64, corner_radius_percentage : Float64)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#corner_radius_percentage : Float64
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 : Float64
The height of the area's rectangle, as a percentage of the media height
-
#height_percentage=(height_percentage : Float64)
The height of the area's rectangle, as a percentage of the media height
-
#rotation_angle : Float64
The clockwise rotation angle of the rectangle, in degrees; 0-360
-
#rotation_angle=(rotation_angle : Float64)
The clockwise rotation angle of the rectangle, in degrees; 0-360
-
#width_percentage : Float64
The width of the area's rectangle, as a percentage of the media width
-
#width_percentage=(width_percentage : Float64)
The width of the area's rectangle, as a percentage of the media width
-
#x_percentage : Float64
The abscissa of the area's center, as a percentage of the media width
-
#x_percentage=(x_percentage : Float64)
The abscissa of the area's center, as a percentage of the media width
-
#y_percentage : Float64
The ordinate of the area's center, as a percentage of the media height
-
#y_percentage=(y_percentage : Float64)
The ordinate of the area's center, as a percentage of the media height
Constructor Detail
Instance Method Detail
The radius of the rectangle corner rounding, as a percentage of the media width
The radius of the rectangle corner rounding, as a percentage of the media width
The height of the area's rectangle, as a percentage of the media height
The height of the area's rectangle, as a percentage of the media height
The clockwise rotation angle of the rectangle, in degrees; 0-360
The width of the area's rectangle, as a percentage of the media width
The width of the area's rectangle, as a percentage of the media width
The abscissa of the area's center, as a percentage of the media width
The ordinate of the area's center, as a percentage of the media height