import { type IGeoJsonFeature } from "@gooddata/sdk-model"; import { type DataViewFacade, type IDrillEventIntersectionElement } from "@gooddata/sdk-ui"; import { type IColorStrategy } from "@gooddata/sdk-ui-vis-commons"; import { type IGeoAreaChartConfig } from "../../types/config/areaChart.js"; import { type IAreaGeoData } from "../../types/geoData/area.js"; import type { GeoJSONSourceSpecification } from "../common/mapFacade.js"; import type { IAreaLayerOutput, IGeoAdapterContext } from "../registry/adapterTypes.js"; /** * Properties for creating a area data source * * @internal */ export interface IAreaDataSourceProps { colorStrategy: IColorStrategy; config: IGeoAreaChartConfig; geoData: IAreaGeoData; /** * Boundary features to render. These are matched with geoData by area identifier. */ features: IGeoJsonFeature[]; tooltipAttrIds?: { locationName?: string; segment?: string; }; } type IAreaDataSourceFeature = GeoJSON.Feature; export type IAreaDataSourceFeatures = IAreaDataSourceFeature[]; /** * Updates area source feature fills according to the provided map. * * @remarks * Used for synchronous recoloring (e.g. palette/mapping change) without re-running async preparation. * * @internal */ export declare function recolorAreaDataSource(source: GeoJSONSourceSpecification, fillByKey: Map): GeoJSONSourceSpecification; /** * Applies current palette/mapping colors to a prepared area output source. * * @remarks * Area styling reads fill color from GeoJSON feature properties, so palette/mapping updates require * producing a new GeoJSON payload and pushing it via `setData` (or by re-initializing the layer). * * This helper keeps the "apply current colors" logic colocated with other area source utilities. * * @internal */ export declare function applyCurrentColorsToAreaOutputSource(output: IAreaLayerOutput, dataView: DataViewFacade, context: IGeoAdapterContext): GeoJSONSourceSpecification; /** * Stamps `__selected` on area features based on cross-filtering selectedPoints. * * @remarks * Matches each feature's `locationName.value` against the attribute item names * from the selectedPoints intersections. * * @internal */ export declare function applySelectionToAreaSource(source: GeoJSONSourceSpecification, selectedPoints: IDrillEventIntersectionElement[][] | undefined): GeoJSONSourceSpecification; /** * Creates a GeoJSON data source for area visualization. * * @remarks * Transforms area geo data into a complete GeoJSON source specification * with polygon features for MapLibre rendering. * * @param dataSourceProps - Properties containing area data, config, and styling * @returns GeoJSON source specification for MapLibre * * @internal */ export declare function createAreaDataSource(dataSourceProps: IAreaDataSourceProps): GeoJSONSourceSpecification; export {}; //# sourceMappingURL=source.d.ts.map