/** * The no-data basemap. * * A map with geometry and no series must still draw. "Show me the countries" is * a normal request (a locator map, a backdrop for markers, the first thing anyone * tries), and rendering an empty container for it would be an obvious defect. * * This implements the same surface the real series expose, so the renderer, * hover, selection, tooltip and accessibility paths need no special-casing for * the series-less case. * * @module series/BaseFeatures */ import type { NormalizedFeature, SeriesLabelOptions, StrokeOptions } from '../types'; export interface BaseFeaturesConfig { name?: string; stroke?: StrokeOptions; opacity?: number; fill?: string; /** Present so the basemap can be treated interchangeably with a real series. */ labels?: SeriesLabelOptions; } export declare class BaseFeatures { static readonly type: "base"; static readonly kind: "features"; readonly type: "base"; readonly kind: "features"; readonly id = "base"; readonly index = 0; readonly config: BaseFeaturesConfig; readonly fill: string; readonly warnings: string[]; readonly values: Map; readonly join: null; readonly mutedClasses: Set; readonly scale: { nullColor: string; nullLabel: string; continuous: boolean; classes: number; domain: [number, number]; classIndex: () => number; color: () => string; legendItems: () => never[]; gradientStops: () => never[]; }; constructor({ config, dark }: { config?: BaseFeaturesConfig; dark?: boolean; }); valueFor(): null; datumFor(): undefined; fillFor(): string; hoverFill(color: string): string; /** * No texture on the basemap: it is a backdrop, and it carries no value to * encode. Takes the feature it ignores so the two feature series stay callable * through the same union. */ paintFor(_feature?: NormalizedFeature): null; readonly painted = false; toggleClass(): boolean; legendTitle(): string | undefined; legendItems(): never[]; describe(feature: NormalizedFeature): string; advise(): string[]; } //# sourceMappingURL=BaseFeatures.d.ts.map