Positioning
PositionType
module-attribute
PositionType = Literal['absolute', 'relative', 'region']
An enumeration of the different types of positions that can be held in an assets.
Position
module-attribute
Position = Union[
AbsolutePosition, RelativePosition, RegionPosition
]
Represents a positioning of an assets in the frame.
convert_position_to_absolute
convert_position_to_absolute(
position: Position, frame_size: FrameSize
) -> AbsolutePosition
Convert a relative position to an absolute position.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
position |
Position
|
The position to be converted. |
required |
frame_size |
FrameSize
|
The size of the frame. |
required |
Returns:
Type | Description |
---|---|
AbsolutePosition
|
The converted absolute positioning object. |