transform

fun transform(target: ScreenObject, anchor: PointF, destination: PointF = anchor, scale: Float = 1.0f): Boolean

Scales around anchor while moving that anchor to destination. Use equal points to zoom in place, or a scale of 1 to pan. The aspect ratio is preserved; the smaller dimension is limited by minimumSize and the larger size by the composition. Text font size scales too. Alignment and margins are resolved into a left/top frame. Invalid input returns false.