import { type ReactElement } from "react"; import { type IntlShape } from "react-intl"; import { type IColorPalette, type ITheme } from "@gooddata/sdk-model"; import { type IColorAssignment, type IDataVisualizationProps, type ILoadingInjectedProps } from "@gooddata/sdk-ui"; import { type IColorStrategy, type IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons"; import { type IGeoConfig, type IGeoData } from "../../GeoChart.js"; import type { IGeoLngLat } from "../../publicTypes/geoCommon.js"; import { type IGeoChartLegendRendererProps } from "./GeoChartLegendRenderer.js"; import { type IGeoChartRendererProps } from "./GeoChartRenderer.js"; /** * @internal */ export interface ICoreGeoChartProps extends IDataVisualizationProps { config?: IGeoConfig; height?: number; documentObj?: Document; chartRenderer?: (props: IGeoChartRendererProps) => ReactElement; legendRenderer?: (props: IGeoChartLegendRendererProps) => ReactElement; onCenterPositionChanged?: (center: IGeoLngLat) => void; onZoomChanged?: (zoom: number) => void; geoChartOptions?: IGeoChartInnerOptions; theme?: ITheme; } /** * @internal */ export type IGeoChartInnerProps = ICoreGeoChartProps & ILoadingInjectedProps & { intl: IntlShape; }; export interface IGeoChartInnerState { enabledLegendItems: boolean[]; showFluidLegend: boolean; colorAssignmentItem: IColorAssignment[]; } /** * @internal */ export interface IGeoChartInnerOptions { geoData: IGeoData; categoryItems: IPushpinCategoryLegendItem[]; colorStrategy: IColorStrategy; colorPalette: IColorPalette; } /** * Geo Chart react component. * * Renders the map itself (through `chartRenderer`) together with its legend (through `legendRenderer`), * laid out according to the resolved legend position, and keeps the visibility of the individual legend * items in sync with the chart. It is the innermost piece of the core geo chart: it expects an already * resolved data view and the derived {@link IGeoChartInnerOptions} in its props, so it neither triggers * an execution nor validates the data on its own. * * @param props - {@link IGeoChartInnerProps}; on top of the core geo chart props (`config`, `dataView`, * `height`, `documentObj`, `chartRenderer`, `legendRenderer`, the `onCenterPositionChanged` / * `onZoomChanged` / `onDrill` / `pushData` callbacks) it requires `geoChartOptions` prepared by * `GeoChartOptionsWrapper` and `intl` injected by the wrapping HOC. * * @internal */ export declare function GeoChartInner(props: IGeoChartInnerProps): ReactElement; //# sourceMappingURL=GeoChartInner.d.ts.map