Skip to main content

StacAlignmentDirectional

Stac AlignmentDirectional allows you to handling alignment widget using JSON.

The alignment property determines where the child is positioned within the box:

ValueDescription
topStartAligns the child to the top-start corner.
topCenterAligns the child to the top-center.
topEndAligns the child to the top-end corner.
centerStartAligns the child to the center-start.
centerCenters the child in the box.
centerEndAligns the child to the center-end.
bottomStartAligns the child to the bottom-start.
bottomCenterAligns the child to the bottom-center.
bottomEndAligns the child to the bottom-end.

Example JSON​

{
"type": "fittedBox",
"alignment": "center"
}