@expofp/floorplan
Version:
Interactive floor plan library for expos and events
11 lines • 548 B
TypeScript
import type { HeatmapLegendTick } from '../ui/HeatmapLegend';
/**
* Samples a heatmap gradient into a small set of evenly-spaced legend ticks.
* Returns at most 5 ticks (2 when the range collapses), each carrying the
* rounded value and its gradient color.
*
* The 5-tick cap is a legend rule, so this lives next to the legend rather than
* in the generic color-gradient util.
*/
export declare function computeHeatmapTicks(min: number, max: number, palette: string[]): HeatmapLegendTick[];
//# sourceMappingURL=heatmap-legend-ticks.d.ts.map