UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

37 lines (36 loc) 1.27 kB
import type { AxisID, ChartAxisDirection } from 'ag-charts-core'; import type { EventsHub } from '../../core/eventsHub'; import type { AxisContext } from '../../module/axisContext'; import { Group } from '../../scene/group'; import { Node } from '../../scene/node'; interface AxisNodes { axisNode: Node; gridNode: Node; labelNode: Node; overlayLowNode: Node; overlayMidNode: Node; overlayHighNode: Node; } interface Axis { createAxisContext(): AxisContext; attachAxis(nodes: AxisNodes): void; detachAxis(nodes: AxisNodes): void; destroy(): void; } export declare class AxisManager { private readonly eventsHub; private readonly sceneRoot; private readonly axes; readonly axisGridGroup: Group<unknown>; readonly axisGroup: Group<unknown>; readonly axisLabelGroup: Group<unknown>; readonly axisOverlayLowGroup: Group<unknown>; readonly axisOverlayMidGroup: Group<unknown>; readonly axisOverlayHighGroup: Group<unknown>; constructor(eventsHub: EventsHub, sceneRoot: Group); updateAxes(oldAxes: Axis[], newAxes: Axis[]): void; getAxisIdContext(id: AxisID): AxisContext | undefined; getAxisContext(direction: ChartAxisDirection): AxisContext[]; destroy(): void; } export {};