import { Graphics, IGraphicsSettings, IGraphicsPrivate } from "./Graphics"; import type { IPoint } from "../util/IPoint"; import type { Time } from "../util/Animation"; import type { Animation } from "../util/Entity"; export interface IPolygonSettings extends IGraphicsSettings { /** * The polygon's corners, in pixels. When they change, the polygon morphs * from its old shape to the new one. */ points?: Array; /** * The corners as `[x, y]` pairs, in pixels. They replace `points`. */ coordinates?: Array>; /** * Duration in milliseconds of the morph when `points` change. */ animationDuration?: number; /** * Easing function of the morph. * * @see {@link https://www.amcharts.com/docs/v5/concepts/animations/#Easing_functions} for more info */ animationEasing?: (t: Time) => Time; } export interface IPolygonPrivate extends IGraphicsPrivate { points?: Array; previousPoints?: Array; morphProgress?: number; minX?: number; maxX?: number; minY?: number; maxY?: number; } /** * Draws a closed polygon through `points`. * * @see {@link https://www.amcharts.com/docs/v5/concepts/common-elements/polygon/} for more info * @important * @since 5.4.0 */ export declare class Polygon extends Graphics { _settings: IPolygonSettings; _privateSettings: IPolygonPrivate; static className: string; static classNames: Array; morphAnimation?: Animation; _beforeChanged(): void; _changed(): void; protected _draw(): void; _updateSize(): void; } //# sourceMappingURL=Polygon.d.ts.map