fit

fit(frame: frame, size: coord) -> frame

Scale a frame to fit inside a rectangle of the given size, respecting aspect ratio.