class Tourmaline::StoryAreaPosition

Overview

Describes the position of a clickable area within a story.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x_percentage : Float64, y_percentage : Float64, width_percentage : Float64, height_percentage : Float64, rotation_angle : Float64, corner_radius_percentage : Float64) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def corner_radius_percentage : Float64 #

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


[View source]
def corner_radius_percentage=(corner_radius_percentage : Float64) #

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


[View source]
def height_percentage : Float64 #

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


[View source]
def height_percentage=(height_percentage : Float64) #

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


[View source]
def rotation_angle : Float64 #

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


[View source]
def rotation_angle=(rotation_angle : Float64) #

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


[View source]
def width_percentage : Float64 #

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


[View source]
def width_percentage=(width_percentage : Float64) #

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


[View source]
def x_percentage : Float64 #

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


[View source]
def x_percentage=(x_percentage : Float64) #

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


[View source]
def y_percentage : Float64 #

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


[View source]
def y_percentage=(y_percentage : Float64) #

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


[View source]