Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

401 B
Raw Blame
import { STAGE } from './timeline';

/**
 * The scale the intro's stage plays at: its own size wherever it fits, and
 * smaller only in a window smaller than it. It never reflows: the motion is
 * choreographed against exact geometry.
 */
export function introScale(available: { width: number; height: number }): number {
  return Math.min(1, available.width / STAGE.w, available.height / STAGE.h);
}