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.7.24 to 2.7.25

62

chart.js/index.d.ts

@@ -16,2 +16,3 @@ // Type definitions for Chart.js 2.7

// Francesco Benedetto <https://github.com/frabnt>
// Alexandros Dorodoulis <https://github.com/alexdor>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -39,4 +40,5 @@ // TypeScript Version: 2.3

getDatasetAtEvent: (e: any) => Array<{}>;
ctx: CanvasRenderingContext2D|null;
canvas: HTMLCanvasElement|null;
getDatasetMeta: (index: number) => Meta;
ctx: CanvasRenderingContext2D | null;
canvas: HTMLCanvasElement | null;
chartArea: Chart.ChartArea;

@@ -105,2 +107,44 @@ static pluginService: PluginServiceStatic;

interface Meta {
type: Chart.ChartType;
data: MetaData[];
dataset?: Chart.ChartDataSets;
controller: { [key: string]: any; };
hidden?: boolean;
total?: string;
xAxisID?: string;
yAxisID?: string;
"$filler"?: { [key: string]: any; };
}
interface MetaData {
_chart: Chart;
_datasetIndex: number;
_index: number;
_model: Model;
_start?: any;
_view: Model;
_xScale: Chart.ChartScales;
_yScale: Chart.ChartScales;
hidden?: boolean;
}
interface Model {
backgroundColor: string;
borderColor: string;
borderWidth?: number;
controlPointNextX: number;
controlPointNextY: number;
controlPointPreviousX: number;
controlPointPreviousY: number;
hitRadius: number;
pointStyle: string;
radius: string;
skip?: boolean;
steppedLine?: undefined;
tension: number;
x: number;
y: number;
}
declare namespace Chart {

@@ -304,3 +348,3 @@ type ChartType = 'line' | 'bar' | 'horizontalBar' | 'radar' | 'doughnut' | 'polarArea' | 'bubble' | 'pie';

interface ChartTooltipsStaticConfiguration {
positioners: {[mode: string]: ChartTooltipPositioner};
positioners: { [mode: string]: ChartTooltipPositioner };
}

@@ -379,10 +423,10 @@

interface ChartLayoutOptions {
padding?: ChartLayoutPaddingObject | number;
padding?: ChartLayoutPaddingObject | number;
}
interface ChartLayoutPaddingObject {
top?: number;
right?: number;
bottom?: number;
left?: number;
top?: number;
right?: number;
bottom?: number;
left?: number;
}

@@ -423,3 +467,3 @@

beginAtZero?: boolean;
callback?(value: any, index: any, values: any): string|number;
callback?(value: any, index: any, values: any): string | number;
display?: boolean;

@@ -426,0 +470,0 @@ fontColor?: ChartColor;

9

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

@@ -71,2 +71,7 @@ "license": "MIT",

"githubUsername": "frabnt"
},
{
"name": "Alexandros Dorodoulis",
"url": "https://github.com/alexdor",
"githubUsername": "alexdor"
}

@@ -81,4 +86,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "b1852c236a0338d09450d9584005399c86dfc24c2315b62482c5228a38f98a7c",
"typesPublisherContentHash": "fa00422ad759974669dab90f98c375ac164eab4687824bad05231b1704792780",
"typeScriptVersion": "2.3"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Tue, 26 Jun 2018 01:10:50 GMT
* Last updated: Wed, 27 Jun 2018 01:27:15 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>, Slavik Nychkalo <https://github.com/gebeto>, Francesco Benedetto <https://github.com/frabnt>.
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>, Francesco Benedetto <https://github.com/frabnt>, Alexandros Dorodoulis <https://github.com/alexdor>.
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