@types/chart.js
Advanced tools
Comparing version 2.7.26 to 2.7.27
@@ -63,6 +63,10 @@ // Type definitions for Chart.js 2.7 | ||
declare class PluginServiceStatic { | ||
register(plugin: PluginServiceRegistrationOptions): void; | ||
unregister(plugin: PluginServiceRegistrationOptions): void; | ||
register(plugin: PluginServiceGlobalRegistration & PluginServiceRegistrationOptions): void; | ||
unregister(plugin: PluginServiceGlobalRegistration & PluginServiceRegistrationOptions): void; | ||
} | ||
interface PluginServiceGlobalRegistration { | ||
id?: string; | ||
} | ||
interface PluginServiceRegistrationOptions { | ||
@@ -72,13 +76,18 @@ beforeInit?(chartInstance: Chart, options?: any): void; | ||
resize?(chartInstance: Chart, newChartSize: Chart.ChartSize, options?: any): void; | ||
beforeUpdate?(chartInstance: Chart, options?: any): void; | ||
afterUpdate?(chartInstance: Chart, options?: any): void; | ||
beforeUpdate?(chartInstance: Chart, options?: any): void; | ||
afterScaleUpdate?(chartInstance: Chart, options?: any): void; | ||
beforeLayout?(chartInstance: Chart, options?: any): void; | ||
afterLayout?(chartInstance: Chart, options?: any): void; | ||
beforeDatasetsUpdate?(chartInstance: Chart, options?: any): void; | ||
afterDatasetsUpdate?(chartInstance: Chart, options?: any): void; | ||
afterUpdate?(chartInstance: Chart, options?: any): void; | ||
beforeDatasetUpdate?(chartInstance: Chart, options?: any): void; | ||
afterDatasetUpdate?(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, options?: any): void; | ||
afterRender?(chartInstance: Chart, options?: any): void; | ||
@@ -88,2 +97,3 @@ // Easing is for animation | ||
afterDraw?(chartInstance: Chart, easing: string, options?: any): void; | ||
// Before the datasets are drawn but after scales are drawn | ||
@@ -93,2 +103,5 @@ beforeDatasetsDraw?(chartInstance: Chart, easing: string, options?: any): void; | ||
beforeDatasetDraw?(chartInstance: Chart, easing: string, options?: any): void; | ||
afterDatasetDraw?(chartInstance: Chart, easing: string, options?: any): void; | ||
// Called before drawing the `tooltip`. If any plugin returns `false`, | ||
@@ -101,7 +114,11 @@ // the tooltip drawing is cancelled until another `render` is triggered. | ||
destroy?(chartInstance: Chart): void; | ||
// Called when an event occurs on the chart | ||
beforeEvent?(chartInstance: Chart, event: Event, options?: any): void; | ||
afterEvent?(chartInstance: Chart, event: Event, options?: any): void; | ||
resize?(chartInstance: Chart, newChartSize: Chart.ChartSize, options?: any): void; | ||
destroy?(chartInstance: Chart): void; | ||
/** @deprecated since version 2.5.0. Use `afterLayout` instead. */ | ||
afterScaleUpdate?(chartInstance: Chart, options?: any): void; | ||
} | ||
@@ -230,4 +247,3 @@ | ||
options?: ChartOptions; | ||
// Plugins can require any options | ||
plugins?: any; | ||
plugins?: PluginServiceRegistrationOptions; | ||
} | ||
@@ -273,3 +289,3 @@ | ||
// Plugins can require any options | ||
plugins?: { [plugin: string]: any }; | ||
plugins?: { [pluginId: string]: any }; | ||
} | ||
@@ -276,0 +292,0 @@ |
{ | ||
"name": "@types/chart.js", | ||
"version": "2.7.26", | ||
"version": "2.7.27", | ||
"description": "TypeScript definitions for Chart.js", | ||
@@ -85,4 +85,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "fc10330dfd29613db4b876bc0e41a290cfd56d6fdcf1841d2a95cdb4088884b7", | ||
"typesPublisherContentHash": "c7e04ab7adce1bd1f10026d6cea852ed803f9fb361ca8d4c79ca198d0d6d439c", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 06 Jul 2018 00:07:02 GMT | ||
* Last updated: Fri, 06 Jul 2018 21:56:16 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: Chart |
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
26434
589