Direction
Documentation for the Direction type.
The four directions into which content can be laid out.
Possible values are:
ltr: Left to right.rtl: Right to left.ttb: Top to bottom.btt: Bottom to top.
These values are available globally and also in the direction type's scope, so you can write either of the following two:
Loading compiler...
Methods
Returns a direction from a starting point.
Loading compiler...
#direction.from(
side
) -> directionParameters
Prop
Type
Returns a direction from an end point.
Loading compiler...
#direction.to(
side
) -> directionParameters
Prop
Type
The axis this direction belongs to, either "horizontal" or "vertical".
Loading compiler...
The corresponding sign, for use in calculations.
Loading compiler...
The start point of this direction, as an alignment.
Loading compiler...
The end point of this direction, as an alignment.
Loading compiler...
The inverse direction.
Loading compiler...