Socket
Socket
Sign inDemoInstall

@types/chart.js

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/chart.js - npm Package Compare versions

Comparing version 2.4.2 to 2.4.3

chart.js/LICENSE

39

chart.js/index.d.ts

@@ -27,2 +27,3 @@ // Type definitions for Chart.js 2.4.0

getDatasetAtEvent: (e: any) => {}[];
static pluginService: PluginServiceStatic;

@@ -33,3 +34,41 @@ static defaults: {

}
declare class PluginServiceStatic {
register(plugin?: PluginServiceRegistrationOptions): void;
}
declare interface PluginServiceRegistrationOptions {
beforeInit?: (chartInstance: Chart) => void,
afterInit?: (chartInstance: Chart) => void,
resize?: (chartInstance: Chart, newChartSize: Size) => void,
beforeUpdate?: (chartInstance: Chart) => void,
afterScaleUpdate?: (chartInstance: Chart) => void,
beforeDatasetsUpdate?: (chartInstance: Chart) => void,
afterDatasetsUpdate?: (chartInstance: Chart) => void,
afterUpdate?: (chartInstance: Chart) => 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,
// Easing is for animation
beforeDraw?: (chartInstance: Chart, easing: string) => void,
afterDraw?: (chartInstance: Chart, easing: string) => void,
// Before the datasets are drawn but after scales are drawn
beforeDatasetsDraw?: (chartInstance: Chart, easing: string) => void,
afterDatasetsDraw?: (chartInstance: Chart, easing: string) => void,
destroy?: (chartInstance: Chart) => void,
// Called when an event occurs on the chart
beforeEvent?: (chartInstance: Chart, event: Event) => void,
afterEvent?: (chartInstance: Chart, event: Event) => void
}
declare interface Size {
height: number;
width: number;
}
declare namespace Chart {

@@ -36,0 +75,0 @@ export type ChartType = 'line' | 'bar' | 'radar' | 'doughnut' | 'polarArea' | 'bubble';

4

chart.js/package.json
{
"name": "@types/chart.js",
"version": "2.4.2",
"version": "2.4.3",
"description": "TypeScript definitions for Chart.js",

@@ -22,4 +22,4 @@ "license": "MIT",

"peerDependencies": {},
"typesPublisherContentHash": "39aeb0a9a38986b38f4a61ae3a0cca0284a230e5f8852f9d51add62a87e0f04e",
"typesPublisherContentHash": "4276b9fdae3e8a6273870959f200291d2eb933a6e980cf43fc0e9f5af11c2fcc",
"typeScriptVersion": "2.0"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/chart.js
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chart.js
Additional Details
* Last updated: Wed, 22 Mar 2017 17:48:32 GMT
* Last updated: Fri, 02 Jun 2017 01:33:55 GMT
* Dependencies: jquery

@@ -14,0 +14,0 @@ * Global values: Chart

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc