scaledTo

fun scaledTo(width: Float, height: Float): TreeLayoutResult<T>

Returns a new result uniformly scaled to fit within width×height, preserving aspect ratio. Positions are normalized to origin before scaling.