import type { PovLevel } from "./viewerTypes";

export const NAV_DISTANCE: Record<PovLevel, number> = {
  local: 18,
  system: 3200,
  galaxy: 32000,
};

// Close-orbit distance when double-clicking a planet (display units).
// 0.005 units = ~333 km from planet center in system space.
export const NAV_DISTANCE_PLANET_ORBIT = 0.005;
export const NAV_DISTANCE_SHIP_HULL = 0.0004;

export const ACTIVE_SYSTEM_DETAIL_SCALE = 10;
export const GALAXY_PARALLAX_FACTOR = 0.025;
export const ACTIVE_SYSTEM_CAPTURE_RADIUS = 9000;
export const PROJECTED_GALAXY_RADIUS = 65000;
export const STAR_RENDER_SCALE = 0.18;
export const PLANET_RENDER_SCALE = 0.95;
export const MOON_RENDER_SCALE = 1.1;
// 0.00005 units = ~3 km — allows scrolling very close to ships and structures.
export const MIN_CAMERA_DISTANCE = 0.00005;
export const MAX_CAMERA_DISTANCE = 150000;

export interface ZoomBlend {
  localWeight: number;
  systemWeight: number;
  galaxyWeight: number;
}
