Phaser API Documentation

  Version: 
getMaxZoom()

Description:

Calculates and returns the largest possible zoom factor, based on the current parent and game sizes. If the parent has no dimensions (i.e. an unstyled div), or is smaller than the un-zoomed game, then this will return a value of 1 (no zoom)

Returns:
Description:

The maximum possible zoom factor. At a minimum this value is always at least 1.

Type:
  • number
Since: 3.16.0