import { Graphics, IGraphicsSettings, IGraphicsPrivate } from "./Graphics"; import type { IPoint } from "../util/IPoint"; export interface IOrthogonalLineSettings extends IGraphicsSettings { /** * Points the line goes through, in pixels. Between two points that differ * in both x and y it goes horizontally first, then vertically. */ points?: Array; /** * Radius in pixels of the rounded corners where the line turns, at most * half the length of the segments next to a corner. * * @default 10 */ cornerRadius?: number; } export interface IOrthogonalLinePrivate extends IGraphicsPrivate { } /** * Draws a line of horizontal and vertical segments through `points`, with * rounded corners. * * @important * @since 5.14.0 */ export declare class OrthogonalLine extends Graphics { _settings: IOrthogonalLineSettings; _privateSettings: IOrthogonalLinePrivate; static className: string; static classNames: Array; _beforeChanged(): void; /** * Returns the points with a corner added between any two that differ in * both x and y, so that the path goes horizontally first, then vertically. * * @param points Points * @return Points with only horizontal and vertical segments */ static makeOrthogonal(points: Array): Array; /** * Handles changes and redraws the orthogonal line with optional rounded corners. */ _changed(): void; } //# sourceMappingURL=OrthogonalLine.d.ts.map