utils/conversions
library
Functions
-
childTransform(Offset position, Size size, double rotation, {double scale = 1})
→ Matrix4
-
Maps local child coordinates to the parent, rotating around the layout center.
Used by painting, pointer targeting, coordinate conversion and focus bounds.
-
gsToSs(Offset gsPosition, Offset gsTopLeft, double scale)
→ Offset
-
Convert grid space coordinates to screen space coordinates
-
newGsTopLeftOnScaling(Offset gsTopLeft, Offset ssFocalPoint, double oldScale, double newScale)
→ Offset
-
-
ssToGs(Offset ssPosition, Offset gsTopLeft, double scale)
→ Offset
-
Convert screen space coordinates to grid space coordinates