Available types

StoryAreaPosition

Describes the position of a clickable area within a story.

fields

fieldtyperequireddescription
x_percentagenumberrequiredThe abscissa of the area's center, as a percentage of the media width
y_percentagenumberrequiredThe ordinate of the area's center, as a percentage of the media height
width_percentagenumberrequiredThe width of the area's rectangle, as a percentage of the media width
height_percentagenumberrequiredThe height of the area's rectangle, as a percentage of the media height
rotation_anglenumberrequiredThe clockwise rotation angle of the rectangle, in degrees; 0-360
corner_radius_percentagenumberrequiredThe radius of the rectangle corner rounding, as a percentage of the media width

import

types.ts
import type { StoryAreaPosition } from "@yaebal/types";

used by

types