utils/conversions library
Functions
-
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