import type { PanelControls } from "./PanelControls"; import type { StockChart } from "./StockChart"; import type { XYSeries } from "../xy/series/XYSeries"; import type { Rectangle } from "../../core/render/Rectangle"; import { XYChart, IXYChartPrivate, IXYChartSettings, IXYChartEvents } from "../xy/XYChart"; import { ListAutoDispose } from "../../core/util/List"; export interface IStockPanelSettings extends IXYChartSettings { } export interface IStockPanelPrivate extends IXYChartPrivate { /** * The [[StockChart]] the panel belongs to. */ stockChart: StockChart; } export interface IStockPanelEvents extends IXYChartEvents { /** * The panel was moved up or down. * * @since 5.9.2 */ moved: { oldIndex: number; newIndex: number; }; /** * The panel was closed, just before it is removed from the chart. * * @since 5.9.2 */ closed: {}; /** * The panel was expanded to fill the chart, hiding the other panels. * * @since 5.9.2 */ expanded: {}; /** * The panels returned to normal, showing the hidden ones again. * * @since 5.9.2 */ collapsed: {}; } /** * A panel of a [[StockChart]]: an [[XYChart]] stacked with the other panels. * * @see {@link https://www.amcharts.com/docs/v5/charts/stock/panels/} for more info * @important */ export declare class StockPanel extends XYChart { static className: string; static classNames: Array; _settings: IStockPanelSettings; _privateSettings: IStockPanelPrivate; _events: IStockPanelEvents; /** * The panel's buttons for moving, expanding and closing it. */ panelControls: PanelControls; /** * Grip for dragging the border with the panel above, to resize both. * * @since 5.4.7 */ panelResizer?: Rectangle; /** * Drawing series of the panel. Series added here are added to its * `series` too. * */ readonly drawings: ListAutoDispose; protected _afterNew(): void; /** * Moves the panel one place up. */ moveUp(): void; /** * Moves the panel one place down. */ moveDown(): void; /** * Closes the panel, removing it from the chart. */ close(): void; /** * Expands the panel to fill the chart, hiding the other panels. If any * panels are hidden, shows them again instead. */ expand(): void; } //# sourceMappingURL=StockPanel.d.ts.map