zoomLabel
import { zoomLabel } from 'pixi-silk/ui/camera';
function zoomLabel(k: number): string;
Formats a zoom (1 is 100%) as a short percentage. Below 10% it keeps one decimal (2.5%),
from 10,000% it switches to k (2.5k%) and from 1,000,000% to M (1.2M%).
Parameters#
| Parameter | Type |
|---|---|
k | number |
Returns#
string