Alignment
Alignment is an object with an x and y component. Where 0.0 means start and 1.0 means end.
Alignment by name
ModularUI has 9 default alignments.
top_left
ortl
top_center
ortc
top_right
ortr
center_left
orcl
center
orc
center_right
orcr
bottom_left
orbl
bottom_center
orbc
bottom_right
orbr
Example
json
{
"alignment": "top_center"
}
You can also create a new alignment.
Example
json
{
"alignment": {
"x": 0.3,
"y": 0.6666666
}
}