UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

42 lines 1.2 kB
import { type GaEventActions } from "../tools/gtag"; import { BoothBase } from "./BoothStore"; import type RootStore from "./RootStore"; import { type ListItem } from "./types"; export default class HeatmapStore { private readonly rootStore; heatmapData: HeatmapData; constructor(rootStore: RootStore); forceTrack: { action: GaEventActions; label: string; } | null; get minAndMaxClicks(): { min: number; max: number; }; getClicksByType(item: ListItem): number; getClicksByItem(item: ListItem | BoothBase): number; getTotalClicksByBooth(b: BoothBase): number; getColorByClicks(clicks: number): string; } export interface HeatmapData { booths?: HeatmapItem[]; exhibitors?: HeatmapItem[]; yah?: HeatmapYah[]; } export declare class HeatmapYah { readonly id: number | string; readonly name: string; readonly viewCount: number; readonly x: number; readonly y: number; readonly z?: number | string; readonly entity: { readonly type: "heatmap-yah"; }; } export interface HeatmapItem { id: number | string; viewCount: number; } //# sourceMappingURL=HeatmapStore.d.ts.map