Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

532 B
Raw Blame
/** Cockpit brackets stay legible without dominating the first-person view. */
export const COCKPIT_BRACKET_OPACITY = 0.45;

/**
 * Resolve the bracket-only opacity multiplier for the current presentation.
 * Detection callouts and user tuning are intentionally unaffected.
 * @param {boolean} cockpitActive - Whether Cockpit view owns the viewport.
 * @returns {number} Bracket stroke opacity multiplier.
 */
export function detectionBracketOpacity(cockpitActive) {
  return cockpitActive === true ? COCKPIT_BRACKET_OPACITY : 1;
}