import { type IColorPalette } from "@gooddata/sdk-model"; import { type IDrillEventIntersectionElement, type ISeparators } from "@gooddata/sdk-ui"; import { type IColorMapping, type ICustomTooltipConfig } from "@gooddata/sdk-ui-vis-commons"; import type { IGeoLngLat, IGeoLngLatBounds } from "../../../publicTypes/geoCommon.js"; import type { StyleSpecification } from "../../layers/common/mapFacade.js"; import type { GeoBasemap } from "../map/basemap.js"; import { type IGeoAreasConfig } from "./areas.js"; import { type IGeoChartLegendConfig } from "./legend.js"; import { type IGeoChartPointsConfig } from "./points.js"; import { type IGeoChartViewport } from "./viewport.js"; /** * Unified configuration shared by {@link GeoChart} and its wrappers. * * @public */ export interface IGeoChartConfig { /** * Initial map center. Defaults to auto-centering based on data. */ center?: IGeoLngLat; /** * Initial zoom level (0-22). Defaults to auto-fit. */ zoom?: number; /** * Bounding box for custom viewport. Takes priority over center/zoom * and adapts to container dimensions. */ bounds?: IGeoLngLatBounds; /** * Enables export mode (disables gestures, preserves drawing buffer). */ isExportMode?: boolean; /** * Legend configuration. */ legend?: IGeoChartLegendConfig; /** * Maximum number of rendered data points. */ limit?: number; /** * Segment values that should stay visible when using legend-driven filtering. */ selectedSegmentItems?: string[]; /** * Cross-filtering selected points expressed as drill intersections. * * @remarks * When present, selected features render at full opacity while * unselected features are faded out. * * @internal */ selectedPoints?: IDrillEventIntersectionElement[][]; /** * MapLibre style URL or inline style specification. */ mapStyle?: string | StyleSpecification; /** * Selected basemap style identifier (e.g. `"standard-light"`, `"satellite"`). * * @remarks * `undefined` uses the backend default basemap. * * @alpha */ basemap?: GeoBasemap; /** * Maximum zoom level allowed on the map. * * @remarks * - `undefined` keeps default max zoom level * - `null` switches to unrestricted zoom level */ maxZoomLevel?: number | null; /** * Custom number separators used for formatting. */ separators?: ISeparators; /** * Viewport preset or explicit bounds. */ viewport?: IGeoChartViewport; /** * Pushpin-specific options (size range, clustering, ...). */ points?: IGeoChartPointsConfig; /** * Area-specific options (opacity, border styling, ...). */ areas?: IGeoAreasConfig; /** * Simple palette expressed as color strings. */ colors?: string[]; /** * Structured color palette compatible with color mapping GUIDs. */ colorPalette?: IColorPalette; /** * Explicit color-mapping overrides. */ colorMapping?: IColorMapping[]; /** * Displays data labels on the map when supported by the layer. */ showLabels?: boolean; /** * Specify the accessibility title for the map canvas. * * @internal */ a11yTitle?: string; /** * Enables geo accessibility enhancements introduced for map canvas, legend semantics, * live announcements, and alternate table view. * * @internal */ enableGeoChartA11yImprovements?: boolean; /** * Enables basemap configuration that relies on backend style support. * * @internal */ enableGeoBasemapConfig?: boolean; /** * Enables advanced geo viewport configuration. * * @internal */ enableGeoChartsViewportConfig?: boolean; /** * Applies viewport navigation limits (pan/zoom locks) at runtime. * * @internal */ applyViewportNavigation?: boolean; /** * Requires Ctrl/Cmd + scroll to zoom (helps inside scroll containers). */ cooperativeGestures?: boolean; /** * Cancels running executions when props change. */ enableExecutionCancelling?: boolean; /** * Keeps the requested legend position even when responsive heuristics disagree. */ respectLegendPosition?: boolean; /** * Custom tooltip configuration with Markdown content and metric/attribute references. * * @alpha */ customTooltip?: ICustomTooltipConfig; /** * Feature-flag gate for custom tooltips (defaults on); when `false`, a persisted custom * tooltip is ignored at render. * * @internal */ enableCustomTooltip?: boolean; } //# sourceMappingURL=unified.d.ts.map