import { Graphics, IGraphicsSettings, IGraphicsPrivate } from "../../core/render/Graphics"; import type { MapPolygonSeries } from "./MapPolygonSeries"; import type { IGeoPoint } from "../../core/util/IGeoPoint"; import type { IPoint } from "../../core/util/IPoint"; export interface IMapPolygonSettings extends IGraphicsSettings { /** * The polygon's shape, as GeoJSON geometry. */ geometry?: GeoJSON.MultiPolygon | GeoJSON.Polygon; /** * How far, in pixels, the drawn edges may stray from the curves the * projection bends them into (d3-geo's resampling precision). Smaller is * more accurate but slower. * * @default 0.5 */ precision?: number; /** * Height of this polygon's columns in a [[PixelMapSeries]], from `0` to `1` * of the series' `columnHeight`. * * Set it with heat rules (`key: "pixelHeight"`) or `templateField`. When * set, it is used instead of the height the series works out from the * polygon's value. The series' `pixelHeightFunction` overrides it. * * @since 5.21.0 */ pixelHeight?: number; } export interface IMapPolygonPrivate extends IGraphicsPrivate { } /** * A polygon in a [[MapPolygonSeries]]. */ export declare class MapPolygon extends Graphics { _settings: IMapPolygonSettings; _privateSettings: IMapPolygonPrivate; static className: string; static classNames: Array; protected _projectionDirty: boolean; protected _afterNew(): void; /** * The series the polygon belongs to. */ series: MapPolygonSeries | undefined; _beforeChanged(): void; /** * @ignore */ markDirtyProjection(): void; _clearDirty(): void; /** * Returns the polygon's geographic centroid. For an odd shape it can lie * outside the polygon; `visualCentroid()` can't. * * @return Center */ geoCentroid(): IGeoPoint; /** * Returns the point inside the polygon farthest from its edges, in its * largest part: where a label fits best. Tooltips point there. * * @return Center */ visualCentroid(): IGeoPoint; _getTooltipPoint(): IPoint; } //# sourceMappingURL=MapPolygon.d.ts.map