dependencies/timeline_tile/src/axis
library
Classes
-
AxisCoordinates
-
The coordinates to position an object into an axis.
-
AxisPosition
-
Given an axis that has an object positioned somewhere between the start and
end point, this represents the different sizes and coordinates of this axis.
Functions
-
calculateAxisPositioning({required double totalSize, required double objectSize, required double axisPosition})
→ AxisPosition
-
Given an axis (x or y) of
totalSize, this will calculate how to position
an object in the axis based on its objectSize and the axisPosition.
If the object exceed the totalSize at the top or the bottom, it will
be aligned at the start or at the end with _alignObject.