UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

20 lines 1.03 kB
import { type MapTheme } from '@expofp/schema'; /** * The palette implied by the drawing's background color — the fallback for * drawings that predate `__fpGeo.properties.config.style`. * * `'none'` is a real authored value (the plan asks for no background at all) * and is not a parseable color, so it and anything else unparseable resolve to * the light palette the SDK has always used. * * Inferring a palette from a background color is a guess — the two are separate * decisions, and a plan may legitimately want a dark surround without a dark * basemap. The Designer's explicit geo config avoids that ambiguity. */ export declare function deriveMapThemeFromBackground(backgroundColor: string | undefined): MapTheme; /** * Resolve the basemap palette: the one the drawing declares in its geo config, * else the one its background color implies. */ export declare function resolveMapTheme(drawingTheme: MapTheme | undefined, backgroundColor: string | undefined): MapTheme; //# sourceMappingURL=map-theme.d.ts.map