Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

261 B
Raw Blame
const PRESETS = [1, 1.5, 2, 3, 4, 5];

export function zoomLevels(current: number | null): (number | null)[] {
  const levels = current === null || PRESETS.includes(current) ? PRESETS : [...PRESETS, current].sort((a, b) => a - b);
  return [null, ...levels];
}