ScaleType
} from '../interfaces';
import { ElementChartOptions } from '../elements';
-import { PluginOptions } from '../plugins';
+import { ExtendedPlugin, PluginOptions } from '../plugins';
export interface DateAdapterBase {
/**
update(chart: Chart, width: number, height: number): void;
};
-export interface Plugin<O = {}> {
+export interface Plugin<O = {}> extends ExtendedPlugin {
id: string;
/**
-import { ActiveDataPoint, ActiveElement, Chart, Element, InteractionMode, LayoutPosition, Plugin } from '../core';
+import { ActiveDataPoint, ActiveElement, Chart, Element, LayoutPosition } from 'core';
import { AnimationSpecContainer, Color, ChartArea, FontSpec, Scriptable, TextAlign, ChartEvent, CoreInteractionOptions } from '../core/interfaces';
import { PointStyle } from '../elements';
import { ChartData, ChartDataset } from '../interfaces';
afterFooter(this: TooltipModel, tooltipItems: TooltipItem[]): string | string[];
}
-export interface TooltipPlugin<O = {}> {
+export interface ExtendedPlugin<O = {}> {
/**
* @desc Called before drawing the `tooltip`. If any plugin returns `false`,
* the tooltip drawing is cancelled until another `render` is triggered.
*/
afterTooltipDraw?(chart: Chart, args: { tooltip: TooltipModel }, options: O): void;
}
-
export interface TooltipOptions extends CoreInteractionOptions {
/**
* Are on-canvas tooltips enabled?