@expofp/floorplan
Version:
Interactive floor plan library for expos and events
20 lines • 1.01 kB
TypeScript
/** What {@link getBadgeScale} reads. */
export interface BadgeScaleInput {
/** Plan units per CSS pixel. */
pixelSize: number;
/** The font size, in css pixels, the badge is drawn at when the booth has room for it. */
fontSize: number;
/** The booth number's font size at scale 1, in the units of the plate's size at scale 1. */
plateFontSize: number;
/** The largest scale that still fits inside the booth's footprint. */
maxScale: number;
}
/**
* The badge plate's scale: `fontSize` css pixels on screen, or smaller when the booth has no room —
* then the badge fills what fits and shrinks with the booth.
* @param input - The pixel size, the target font size, the font size at scale 1 and the booth's
* limit.
* @returns The plate's scale; the font is `plateFontSize` times it, in plan units.
*/
export declare function getBadgeScale({ pixelSize, fontSize, plateFontSize, maxScale, }: BadgeScaleInput): number;
//# sourceMappingURL=config-booth-badge-scale.d.ts.map