@types/chart.js
Advanced tools
Comparing version 2.7.19 to 2.7.20
@@ -14,2 +14,3 @@ // Type definitions for Chart.js 2.7 | ||
// Ken Elkabany <https://github.com/braincore> | ||
// Slavik Nychkalo <https://github.com/gebeto> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -41,2 +42,3 @@ // TypeScript Version: 2.3 | ||
static pluginService: PluginServiceStatic; | ||
static plugins: PluginServiceStatic; | ||
@@ -61,30 +63,30 @@ static defaults: { | ||
interface PluginServiceRegistrationOptions { | ||
beforeInit?(chartInstance: Chart): void; | ||
afterInit?(chartInstance: Chart): void; | ||
beforeInit?(chartInstance: Chart, options?: any): void; | ||
afterInit?(chartInstance: Chart, options?: any): void; | ||
resize?(chartInstance: Chart, newChartSize: Size): void; | ||
resize?(chartInstance: Chart, newChartSize: Size, options?: any): void; | ||
beforeUpdate?(chartInstance: Chart): void; | ||
afterScaleUpdate?(chartInstance: Chart): void; | ||
beforeDatasetsUpdate?(chartInstance: Chart): void; | ||
afterDatasetsUpdate?(chartInstance: Chart): void; | ||
afterUpdate?(chartInstance: Chart): void; | ||
beforeUpdate?(chartInstance: Chart, options?: any): void; | ||
afterScaleUpdate?(chartInstance: Chart, options?: any): void; | ||
beforeDatasetsUpdate?(chartInstance: Chart, options?: any): void; | ||
afterDatasetsUpdate?(chartInstance: Chart, options?: any): void; | ||
afterUpdate?(chartInstance: Chart, options?: any): void; | ||
// This is called at the start of a render. It is only called once, even if the animation will run for a number of frames. Use beforeDraw or afterDraw | ||
// to do something on each animation frame | ||
beforeRender?(chartInstance: Chart): void; | ||
beforeRender?(chartInstance: Chart, options?: any): void; | ||
// Easing is for animation | ||
beforeDraw?(chartInstance: Chart, easing: string): void; | ||
afterDraw?(chartInstance: Chart, easing: string): void; | ||
beforeDraw?(chartInstance: Chart, easing: string, options?: any): void; | ||
afterDraw?(chartInstance: Chart, easing: string, options?: any): void; | ||
// Before the datasets are drawn but after scales are drawn | ||
beforeDatasetsDraw?(chartInstance: Chart, easing: string): void; | ||
afterDatasetsDraw?(chartInstance: Chart, easing: string): void; | ||
beforeDatasetsDraw?(chartInstance: Chart, easing: string, options?: any): void; | ||
afterDatasetsDraw?(chartInstance: Chart, easing: string, options?: any): void; | ||
// Called before drawing the `tooltip`. If any plugin returns `false`, | ||
// the tooltip drawing is cancelled until another `render` is triggered. | ||
beforeTooltipDraw?(chartInstance: Chart): void; | ||
beforeTooltipDraw?(chartInstance: Chart, tooltipData?: any, options?: any): void; | ||
// Called after drawing the `tooltip`. Note that this hook will not, | ||
// be called if the tooltip drawing has been previously cancelled. | ||
afterTooltipDraw?(chartInstance: Chart): void; | ||
afterTooltipDraw?(chartInstance: Chart, tooltipData?: any, options?: any): void; | ||
@@ -94,4 +96,4 @@ destroy?(chartInstance: Chart): void; | ||
// Called when an event occurs on the chart | ||
beforeEvent?(chartInstance: Chart, event: Event): void; | ||
afterEvent?(chartInstance: Chart, event: Event): void; | ||
beforeEvent?(chartInstance: Chart, event: Event, options?: any): void; | ||
afterEvent?(chartInstance: Chart, event: Event, options?: any): void; | ||
} | ||
@@ -105,3 +107,3 @@ | ||
declare namespace Chart { | ||
type ChartType = 'line' | 'bar' | 'radar' | 'doughnut' | 'polarArea' | 'bubble' | 'pie'; | ||
type ChartType = 'line' | 'bar' | 'horizontalBar' | 'radar' | 'doughnut' | 'polarArea' | 'bubble' | 'pie'; | ||
@@ -108,0 +110,0 @@ type TimeUnit = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'; |
{ | ||
"name": "@types/chart.js", | ||
"version": "2.7.19", | ||
"version": "2.7.20", | ||
"description": "TypeScript definitions for Chart.js", | ||
@@ -61,2 +61,7 @@ "license": "MIT", | ||
"githubUsername": "braincore" | ||
}, | ||
{ | ||
"name": "Slavik Nychkalo", | ||
"url": "https://github.com/gebeto", | ||
"githubUsername": "gebeto" | ||
} | ||
@@ -71,4 +76,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "ac9202c7a76eb7eeaea68867df73652791b927097bbc41cc400685687c803f68", | ||
"typesPublisherContentHash": "d36ea33e05ef1173f92821667e7cc8101251b4e8dbf65c68fc9f13af852b3deb", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 30 May 2018 01:28:45 GMT | ||
* Last updated: Thu, 31 May 2018 20:09:03 GMT | ||
* Dependencies: none | ||
@@ -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>, KentarouTakeda <https://github.com/KentarouTakeda>, Larry Bahr <https://github.com/larrybahr>, Daniel Luz <https://github.com/mernen>, Joseph Page <https://github.com/josefpaij>, Dan Manastireanu <https://github.com/danmana>, Guillaume Rodriguez <https://github.com/guillaume-ro-fr>, Sergey Rubanov <https://github.com/chicoxyzzy>, Simon Archer <https://github.com/archy-bold>, Ken Elkabany <https://github.com/braincore>. | ||
These definitions were written by Alberto Nuti <https://github.com/anuti>, Fabien Lavocat <https://github.com/FabienLavocat>, KentarouTakeda <https://github.com/KentarouTakeda>, Larry Bahr <https://github.com/larrybahr>, Daniel Luz <https://github.com/mernen>, Joseph Page <https://github.com/josefpaij>, Dan Manastireanu <https://github.com/danmana>, Guillaume Rodriguez <https://github.com/guillaume-ro-fr>, Sergey Rubanov <https://github.com/chicoxyzzy>, Simon Archer <https://github.com/archy-bold>, Ken Elkabany <https://github.com/braincore>, Slavik Nychkalo <https://github.com/gebeto>. |
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
23889
528