ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
61 lines (60 loc) • 3.1 kB
TypeScript
import type { HistoryManager } from '../api/state/historyManager';
import type { StateManager } from '../api/state/stateManager';
import type { AnnotationManager } from '../chart/annotation/annotationManager';
import type { AxisManager } from '../chart/axis/axisManager';
import type { ChartService } from '../chart/chartService';
import type { DataService } from '../chart/data/dataService';
import type { AnimationManager } from '../chart/interaction/animationManager';
import type { ChartEventManager } from '../chart/interaction/chartEventManager';
import type { ContextMenuRegistry } from '../chart/interaction/contextMenuRegistry';
import type { HighlightManager } from '../chart/interaction/highlightManager';
import type { InteractionManager } from '../chart/interaction/interactionManager';
import type { SyncManager } from '../chart/interaction/syncManager';
import type { TooltipManager } from '../chart/interaction/tooltipManager';
import type { WidgetSet } from '../chart/interaction/widgetSet';
import type { ZoomManager } from '../chart/interaction/zoomManager';
import type { LayoutManager } from '../chart/layout/layoutManager';
import type { SeriesLabelLayoutManager } from '../chart/layout/seriesLabelLayoutManager';
import type { LegendManager } from '../chart/legend/legendManager';
import type { SeriesStateManager } from '../chart/series/seriesStateManager';
import type { UpdateService } from '../chart/updateService';
import type { DOMManager } from '../dom/domManager';
import type { ProxyInteractionService } from '../dom/proxyInteractionService';
import type { LocaleManager } from '../locale/localeManager';
import type { Scene } from '../scene/scene';
import type { CallbackCache } from '../util/callbackCache';
export interface ModuleContext {
readonly scene: Scene;
readonly callbackCache: CallbackCache;
readonly chartService: ChartService;
readonly dataService: DataService<any>;
readonly layoutManager: LayoutManager;
readonly updateService: UpdateService;
readonly axisManager: AxisManager;
readonly legendManager: LegendManager;
readonly animationManager: AnimationManager;
readonly annotationManager: AnnotationManager;
readonly chartEventManager: ChartEventManager;
readonly contextMenuRegistry: ContextMenuRegistry;
readonly domManager: DOMManager;
readonly highlightManager: HighlightManager;
readonly historyManager: HistoryManager;
readonly interactionManager: InteractionManager;
readonly localeManager: LocaleManager;
readonly proxyInteractionService: ProxyInteractionService;
readonly seriesStateManager: SeriesStateManager;
readonly seriesLabelLayoutManager: SeriesLabelLayoutManager;
readonly stateManager: StateManager;
readonly syncManager: SyncManager;
readonly tooltipManager: TooltipManager;
readonly widgets: WidgetSet;
readonly zoomManager: ZoomManager;
}
export interface ModuleContextWithParent<P> extends ModuleContext {
parent: P;
}
export interface SeriesContext extends ModuleContext {
series: {
type: string;
};
}