UNPKG

ag-charts-community

Version:

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

23 lines (22 loc) 735 B
import type { DataController } from '../chart/data/dataController'; import type { ChartType } from '../chart/factory/chartTypes'; import type { BBox } from '../scene/bbox'; export interface LayoutContext { width: number; height: number; layoutBox: BBox; } export interface ModuleInstance { processData?: (dataController: DataController) => Promise<void>; updateData?: (data: any) => void; destroy(): void; } export interface BaseModule<T extends ChartType = ChartType> { packageType: 'community' | 'enterprise'; chartTypes: T[]; identifier?: string; dependencies?: string[]; } export interface BaseOptionsModule<T extends ChartType = ChartType> extends BaseModule<T> { optionsKey: string; }