@expofp/floorplan
Version:
Interactive floor plan library for expos and events
33 lines • 1.74 kB
TypeScript
import { type ColorInput, type ShapeDef } from '@expofp/renderer';
import Color from 'color';
import { type Booth } from '../../../../store/BoothStore';
import type { PathInfo, ShapeBgDef } from '../../../../types/drawing.types';
import { BoothDrawerBaseWithoutPainter } from './BoothDrawerBase';
export default function configBoothBg(booth: Booth): BoothBgDrawer;
export declare function pathToShapeDef(paths: PathInfo[], layer: string): ShapeDef[];
declare class BoothBgDrawer extends BoothDrawerBaseWithoutPainter {
constructor(booth: Booth);
getShape(): ShapeBgDef[];
update(): void;
/**
* Whether this booth is a PoI icon that a highlight has singled out — a category filter, a search
* hit, the public `highlightBooths` API — and that is not the selected booth.
*
* PoI icons are authored gray, and dimming converges on gray too: it desaturates and halves in
* linear space, so white lands on the same mid-gray the icons are drawn in. Un-dimming a
* highlighted icon therefore leaves it indistinguishable from its dimmed neighbors — issue #1632 —
* and the only thing that reads as a highlight is a color of its own.
*
* `poiTypeId` is a cheap stand-in for "authored gray". The general condition is any color that
* dimming converges on, which is the shape to generalize to if this ever bites a booth that is not
* a PoI.
*/
private get poiHighlighted();
getBoothPathColor(defaultColor: ColorInput): Color<string>;
private getHeatmapColor;
get defaultColor(): string;
get selectedColorInterpolateFunc(): (index: number) => string;
getBoothColor(): Color<string>;
}
export {};
//# sourceMappingURL=config-booth-bg.d.ts.map