UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

90 lines 3.36 kB
import { createRoot } from "react-dom/client"; import Rect from "./core/Rect"; import FloorPlanLoader from "./floorplan.loader"; import { CurrentPosition, MarkersData } from "./store/RouteStore"; import { Visibility } from "./store/types"; import type { GeoConfig } from "./types"; import { Bounds, POISelectors } from "./types/sdk.types"; export default class FloorPlanReady extends FloorPlanLoader { root: ReturnType<typeof createRoot>; protected init(): void; selectBooth(nameOrExternalId: string | string[]): void; selectExhibitor(nameOrExternalId: string | string[]): void; highlightExhibitors(externalIds: string[]): void; highlightBooths(externalIds: string[]): void; highlightEntities(externalIds: string[]): void; selectRoute(startOrWaypoints: RouteWaypoint | RouteWaypoint[], to?: RouteWaypoint): void; getOptimizedRoutes(waypoints: RouteWaypoint[]): RouteInfo[]; selectCurrentPosition(point: CurrentPosition, focus: boolean, icon?: number): void; setBookmarks(bookmarks: { name?: string; externalId?: string; bookmarked: boolean; }[]): void; setEntitiesBookmarks(bookmarks: { type: "exhibitor" | "event" | "speaker" | "booth"; name?: string; externalId?: string; bookmarked: boolean; }[]): void; setEntitiesVisited(entities: { type: "exhibitor" | "event"; name?: string; externalId?: string; visited: boolean; }[]): void; setMarkers(markersData: MarkersData): void; selectMarker(id: string, focus?: boolean): Promise<void>; drawCircles(circles: { x: number; y: number; radius: number; color?: string; }[]): void; checkRoutes(): void; updateLayerVisibility(layer: string, visible: boolean): void; getCenterCoordinates(): FloorPlanGetCoordsEvent; exhibitorsList(): FloorPlanExhibitor[]; boothsList(): FloorPlanBooth[]; categoriesList(): FloorPlanCategory[]; selectCategory(nameOrSlug?: string): void; applyParameters(queryRaw: string): void; getVisibility(): Visibility; setVisibility(visibility: Visibility): void; findLocation(): void; zoomIn(): void; zoomOut(): void; switchView(): void; zoomTo(selectors: POISelectors, options?: { padding?: number; }): void; getBounds(selectors: POISelectors): Bounds | undefined; fitBounds(bounds?: Bounds, options?: { padding?: number; }): void; getBoothRect(name: string): Rect; convertToGeo(x: number, y: number): [number, number] | never; getGeoConfig(): GeoConfig | null; unstable_destroy(): void; search(term: string): Promise<{ item: unknown; score: number; }[]>; getFloors(): Floor[]; activateFloor(floorId: { name?: string; index?: number; }): void; showPathway(pathwayId: string, externalIds: string[]): void; showPathwayOnly(pathwayId: string, floorId: string): void; hidePathways(): void; showSearch(): void; changeLanguage(langId: string): void; isGpsTrackingEnabled(): boolean; setGpsTrackingEnabled(value: boolean): void; deselectCurrentPosition(): void; deselectRoute(): void; reset(): void; selectAccessibleRoute(waypoints: RouteWaypoint[]): void; } //# sourceMappingURL=floorplan.ready.d.ts.map