@types/chart.js
Advanced tools
Comparing version 2.4.8 to 2.6.0
@@ -1,5 +0,6 @@ | ||
// Type definitions for Chart.js 2.4 | ||
// Type definitions for Chart.js 2.6 | ||
// Project: https://github.com/nnnick/Chart.js | ||
// Definitions by: Alberto Nuti <https://github.com/anuti> | ||
// Fabien Lavocat <https://github.com/FabienLavocat> | ||
// KentarouTakeda <https://github.com/KentarouTakeda/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -29,2 +30,5 @@ // TypeScript Version: 2.3 | ||
getDatasetAtEvent: (e: any) => Array<{}>; | ||
ctx: CanvasRenderingContext2D|null; | ||
canvas: HTMLCanvasElement|null; | ||
chartArea: Chart.ChartArea; | ||
static pluginService: PluginServiceStatic; | ||
@@ -84,2 +88,9 @@ | ||
interface ChartArea { | ||
top: number; | ||
right: number; | ||
bottom: number; | ||
left: number; | ||
} | ||
interface ChartLegendItem { | ||
@@ -196,2 +207,3 @@ text?: string; | ||
mode?: string; | ||
intersect?: boolean; | ||
backgroundColor?: ChartColor; | ||
@@ -221,2 +233,9 @@ titleFontFamily?: string; | ||
callbacks?: ChartTooltipCallback; | ||
filter?(item: ChartTooltipItem): boolean; | ||
itemSort?(itemA: ChartTooltipItem, itemB: ChartTooltipItem): number; | ||
position?: "average"|"nearest"; | ||
caretPadding?: number; | ||
displayColors?: boolean; | ||
borderColor?: ChartColor; | ||
borderWidth?: number; | ||
} | ||
@@ -227,2 +246,3 @@ | ||
animationDuration?: number; | ||
intersect?: boolean; | ||
onHover?(active: any): void; | ||
@@ -315,3 +335,3 @@ } | ||
autoSkip?: boolean; | ||
callback?(value: any, index: any, values: any): string; | ||
callback?(value: any, index: any, values: any): string|number; | ||
display?: boolean; | ||
@@ -318,0 +338,0 @@ fontColor?: ChartColor; |
{ | ||
"name": "@types/chart.js", | ||
"version": "2.4.8", | ||
"version": "2.6.0", | ||
"description": "TypeScript definitions for Chart.js", | ||
@@ -14,2 +14,6 @@ "license": "MIT", | ||
"url": "https://github.com/FabienLavocat" | ||
}, | ||
{ | ||
"name": "KentarouTakeda", | ||
"url": "https://github.com/KentarouTakeda/" | ||
} | ||
@@ -27,4 +31,4 @@ ], | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "408028c3167b1bb0186a3896164390f021fac15f01c5e22ab40fb0d5aa4d70af", | ||
"typesPublisherContentHash": "5a76b17ea5903610a43b7276f4b44e723978a6f28631f466c86c71eb30aab517", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 14 Jul 2017 14:13:24 GMT | ||
* Last updated: Tue, 18 Jul 2017 13:54:28 GMT | ||
* Dependencies: jquery | ||
@@ -17,2 +17,2 @@ * Global values: Chart | ||
# Credits | ||
These definitions were written by Alberto Nuti <https://github.com/anuti>, Fabien Lavocat <https://github.com/FabienLavocat>. | ||
These definitions were written by Alberto Nuti <https://github.com/anuti>, Fabien Lavocat <https://github.com/FabienLavocat>, KentarouTakeda <https://github.com/KentarouTakeda/>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18341
450