interface DeviceLayout { devices : number ; columns : number ; devices_per_column : number ; } export function LayoutFinder ( numDevices ) { const devices_per_column = Math . ceil ( Math . sqrt ( numDevices ) ) ; const columns = Math . ceil ( numDevices / devices_per_column ) ; return { devices : numDevices , columns : columns , devices_per_column : devices_per_column , } ; }