mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
Add FusionCharts definition for Charts, Widgets, Maps, PowerCharts and themes
- Also fixed the linting issue.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import * as FusionCharts from "fusioncharts";
|
||||
|
||||
FusionCharts.addEventListener('ready',(eventObject)=>{
|
||||
eventObject.stopPropagation();
|
||||
});
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var charts: (H: FusionCharts) => FusionCharts;
|
||||
export = charts;
|
||||
export as namespace charts;
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var gantt: (H: FusionCharts) => FusionCharts;
|
||||
export = gantt;
|
||||
export as namespace gantt;
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var maps: (H: FusionCharts) => FusionCharts;
|
||||
export = maps;
|
||||
export as namespace maps;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var powercharts: (H: FusionCharts) => FusionCharts;
|
||||
export = powercharts;
|
||||
export as namespace powercharts;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var ssgrid: (H: FusionCharts) => FusionCharts;
|
||||
export = ssgrid;
|
||||
export as namespace ssgrid;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var treemap: (H: FusionCharts) => FusionCharts;
|
||||
export = treemap;
|
||||
export as namespace treemap;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var widgets: (H: FusionCharts) => FusionCharts;
|
||||
export = widgets;
|
||||
export as namespace widgets;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var zoomscatter: (H: FusionCharts) => FusionCharts;
|
||||
export = zoomscatter;
|
||||
export as namespace zoomscatter;
|
||||
Vendored
+7
-7
@@ -1,6 +1,6 @@
|
||||
// Type definitions for FusionCharts 3.11.2
|
||||
// Type definitions for fusioncharts 3.11
|
||||
// Project: http://www.fusioncharts.com
|
||||
// Definitions by: Shivaraj KV <https://github.com/shivarajkv>
|
||||
// Definitions by: Rohit Kumar <https://github.com/rohitkr>, Shivaraj KV <https://github.com/shivarajkv>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
@@ -136,9 +136,9 @@ declare namespace FusionCharts {
|
||||
|
||||
outputTo(callback: (message: any) => any): void;
|
||||
|
||||
enable(state:any,outputTo?:(message: any) =>any,outputFormat?:any):void
|
||||
enable(state: any, outputTo?: (message: any) => any, outputFormat?: any): void;
|
||||
|
||||
enableFirebugLite():any;
|
||||
enableFirebugLite(): any;
|
||||
}
|
||||
|
||||
interface FusionCharts {
|
||||
@@ -154,7 +154,7 @@ declare namespace FusionCharts {
|
||||
|
||||
configureLink(param: {} | any[], level?: number): void;
|
||||
|
||||
setChartAttribute(attributes: ChartObject | String, value?: string): void;
|
||||
setChartAttribute(attributes: ChartObject | string, value?: string): void;
|
||||
|
||||
getChartAttribute(attribute?: string | string[]): ChartObject;
|
||||
|
||||
@@ -273,7 +273,7 @@ declare namespace FusionCharts {
|
||||
|
||||
formatNumber(num: number, type?: string, config?: {}): Element;
|
||||
|
||||
setCurrentRenderer(name: string): void
|
||||
setCurrentRenderer(name: string): void;
|
||||
|
||||
getCurrentRenderer(): string;
|
||||
|
||||
@@ -285,7 +285,7 @@ declare namespace FusionCharts {
|
||||
|
||||
options: {};
|
||||
|
||||
debugger:Debugger;
|
||||
debugger: Debugger;
|
||||
|
||||
|
||||
}
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var usa: (H: FusionCharts) => FusionCharts;
|
||||
export = usa;
|
||||
export as namespace usa;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var world: (H: FusionCharts) => FusionCharts;
|
||||
export = world;
|
||||
export as namespace world;
|
||||
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var carbon: (H: FusionCharts) => FusionCharts;
|
||||
export = carbon;
|
||||
export as namespace carbon;
|
||||
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var fint: (H: FusionCharts) => FusionCharts;
|
||||
export = fint;
|
||||
export as namespace fint;
|
||||
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var ocean: (H: FusionCharts) => FusionCharts;
|
||||
export = ocean;
|
||||
export as namespace ocean;
|
||||
@@ -0,0 +1,7 @@
|
||||
interface FusionCharts {
|
||||
type: string;
|
||||
}
|
||||
|
||||
declare var zune: (H: FusionCharts) => FusionCharts;
|
||||
export = zune;
|
||||
export as namespace zune;
|
||||
@@ -18,6 +18,20 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"fusioncharts.charts.d.ts",
|
||||
"fusioncharts.powercharts.d.ts",
|
||||
"fusioncharts.widgets.d.ts",
|
||||
"fusioncharts.maps.d.ts",
|
||||
"fusioncharts.zoomscatter.d.ts",
|
||||
"fusioncharts.ssgrid.d.ts",
|
||||
"fusioncharts.gantt.d.ts",
|
||||
"fusioncharts.treemap.d.ts",
|
||||
"maps/fusioncharts.usa.d.ts",
|
||||
"maps/fusioncharts.world.d.ts",
|
||||
"themes/fusioncharts.theme.carbon.d.ts",
|
||||
"themes/fusioncharts.theme.fint.d.ts",
|
||||
"themes/fusioncharts.theme.ocean.d.ts",
|
||||
"themes/fusioncharts.theme.zune.d.ts",
|
||||
"fusioncharts-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user