Aspect ratio of devices shown on devices simulation

I want the list of aspectRatios of each device shown on the devices simulation window that is given by the formula

Z.screen.on(“resize”,(height,width)=>aspectRatio = height/width);

That is, the aspect ratio of the screen portion of the Zappar, not the device’s advertised aspect ratio.

Or at least, a way or formula to calculate this aspect ratio based on the device’s real aspect ratio. So if I know a device’s real aspect ratio, I can tell the zappar’s aspect ratio.

2 Likes