Skip to content

five-on-it / apps/client/src/ui/minimap-size / minimapSide

Function: minimapSide() ​

minimapSide(width, height, scale?): number

Defined in: apps/client/src/ui/minimap-size.ts:27

The minimap's side (CSS px) on a window width × height CSS px, at a scale of the game's size.

Parameters ​

width ​

number

height ​

number

scale? ​

number = 1

Returns ​

number