mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
flot: add support for flot plugins
This commit is contained in:
Vendored
+14
-2
@@ -198,6 +198,13 @@ declare module jquery.flot {
|
||||
c2p(canvasPoint: canvasPoint):point;
|
||||
}
|
||||
|
||||
interface plugin {
|
||||
init(options: plotOptions): any;
|
||||
options?: any;
|
||||
name?: string;
|
||||
version?: string;
|
||||
}
|
||||
|
||||
interface plot {
|
||||
highlight(series: dataSeries, datapoint: item): void;
|
||||
unhightlight(): void;
|
||||
@@ -221,9 +228,14 @@ declare module jquery.flot {
|
||||
getPlotOffset(): canvasPoint;
|
||||
getOptions(): plotOptions;
|
||||
}
|
||||
|
||||
interface plotStatic {
|
||||
(placeholder: JQuery, data: dataSeries[], options?: plotOptions): plot;
|
||||
(placeholder: JQuery, data: any[], options?: plotOptions): plot;
|
||||
plugins: plugin[];
|
||||
}
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
plot(placeholder: JQuery, data: jquery.flot.dataSeries[], options?: jquery.flot.plotOptions): jquery.flot.plot;
|
||||
plot(placeholder: JQuery, data: any[], options?: jquery.flot.plotOptions): jquery.flot.plot;
|
||||
plot: jquery.flot.plotStatic;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user