import type { DataItem } from "../../core/render/Component"; import type { Sankey, ISankeyDataItem } from "./Sankey"; import type { ISankeyNodesDataItem } from "./SankeyNodes"; import type { IOrientationPoint } from "../../core/util/IPoint"; import type { IDisposer } from "../../core/util/Disposer"; import { FlowLink, IFlowLinkPrivate, IFlowLinkSettings } from "./FlowLink"; import type { IPoint } from "../../core/util/IPoint"; export interface ISankeyLinkSettings extends IFlowLinkSettings { /** * Source node data item. */ source?: DataItem; /** * Target node data item. */ target?: DataItem; /** * How the link is filled: `"solid"` with its own `fill`, `"source"` or * `"target"` with that node's color, or `"gradient"` from the source color * to the target color. * * @see {@link https://www.amcharts.com/docs/v5/charts/flow-charts/sankey-diagram/#Color_mode} for more info * @default "gradient" */ fillStyle?: "solid" | "gradient" | "source" | "target"; /** * Distance of the link's two bend points from its ends, as a fraction of * the distance between its nodes, up to `0.5`. * * @see {@link https://www.amcharts.com/docs/v5/charts/flow-charts/sankey-diagram/#Bend_point} for more info * @default 0.2 */ controlPointDistance?: number; } export interface ISankeyLinkPrivate extends IFlowLinkPrivate { /** * Link orientation. */ orientation?: "horizontal" | "vertical"; } /** * A link element of a [[Sankey]] series. */ export declare class SankeyLink extends FlowLink { _settings: ISankeyLinkSettings; _privateSettings: ISankeyLinkPrivate; static className: string; static classNames: Array; protected _dataItem: DataItem | undefined; series: Sankey | undefined; protected _svgPath: SVGPathElement; protected _totalLength: number; protected _sourceDp?: IDisposer; protected _targetDp?: IDisposer; _beforeChanged(): void; getPoint(location: number): IOrientationPoint; _getTooltipPoint(): IPoint; } //# sourceMappingURL=SankeyLink.d.ts.map