Region
RegionX
module-attribute
RegionX = Literal['left', 'center', 'right']
The possible region x-coordinates of the assets.
RegionY
module-attribute
RegionY = Literal['top', 'center', 'bottom']
The possible region y-coordinates of the assets.
RegionPosition
Bases: BaseModel
Represents a region positioning.
type
class-attribute
instance-attribute
type: Literal['region'] = 'region'
The type of positioning. Defaults to "region".
from_string
classmethod
from_string(string: str) -> RegionPosition
Create a region position from a string.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
string |
str
|
The string to parse. |
required |
Returns:
Type | Description |
---|---|
RegionPosition
|
The region position. |