@expofp/floorplan
Version:
Interactive floor plan library for expos and events
23 lines • 1.05 kB
TypeScript
import type { LogoTileOptions } from '@expofp/ui';
/** How long one page of logos stays up. */
export declare const ROTATION_DELAY_MS = 8000;
/** Logos preloaded per batch. */
export declare const PRELOAD_BATCH_SIZE = 100;
/** Rebuild the current page at most this often while the window resizes. */
export declare const RELAYOUT_DEBOUNCE_MS = 250;
/**
* The gap between tiles grows into leftover width up to this multiple of the
* spacing; past it the row stays centered instead of spreading out.
*/
export declare const MAX_GAP_FACTOR = 2;
export interface HeaderLogosTile extends LogoTileOptions {
spacing: number;
}
/**
* Tile options in pixels for the current layout.
* @param mobile - Whether the screen is at or below `MOBILE_BREAKPOINT`.
* @param toPx - Converts rems to pixels including `--ui-scale`.
* @returns Pixel options for `logoTileSize`, plus the spacing between tiles.
*/
export declare function tileOptions(mobile: boolean, toPx: (rems: number) => number): HeaderLogosTile;
//# sourceMappingURL=header-logos-config.d.ts.map