import { type ContentRect } from "react-measure"; import type { IMapFacade } from "../../layers/common/mapFacade.js"; import { type IGeoChartConfig } from "../../types/config/unified.js"; import { type IMapViewport } from "../../types/map/provider.js"; /** * Handle map resize when container dimensions change * * @remarks * This hook monitors container dimensions and updates the map when they change. * It performs two operations: * 1. Calls map.resize() to update the MapLibre canvas size * 2. Reapplies the viewport so fitBounds can recalculate based on new dimensions * * This is separate from viewport updates triggered by config changes (e.g. Analytical Designer viewport). * Those are handled in `useApplyViewportOnConfigChange`. * * @param map - MapLibre map instance (null if not initialized) * @param isMapReady - Whether map is ready for updates * @param chartContainerRect - Container dimensions from react-measure * @param viewport - Viewport configuration to reapply after resize * @param dataViewport - Viewport computed from the data * @param config - Chart configuration * * @internal */ export declare function useMapResize(map: IMapFacade | null, isMapReady: boolean, chartContainerRect: ContentRect | null, viewport: Partial | null, dataViewport: Partial | null, config: IGeoChartConfig | undefined): void; //# sourceMappingURL=useMapResize.d.ts.map