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.6.3 to 2.6.4

32

chart.js/index.d.ts

@@ -7,11 +7,10 @@ // Type definitions for Chart.js 2.6

// Larry Bahr <https://github.com/larrybahr>
// Daniel Luz <https://github.com/mernen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery" />
declare class Chart {
static readonly Chart: typeof Chart;
constructor(
context: string | JQuery | CanvasRenderingContext2D | HTMLCanvasElement | string[] | CanvasRenderingContext2D[] | HTMLCanvasElement[],
context: string | CanvasRenderingContext2D | HTMLCanvasElement | ArrayLike<CanvasRenderingContext2D | HTMLCanvasElement>,
options: Chart.ChartConfiguration

@@ -87,2 +86,4 @@ );

type PointStyle = 'circle' | 'cross' | 'crossRot' | 'dash' | 'line' | 'rect' | 'rectRounded' | 'rectRot' | 'star' | 'triangle';
type PositionType = 'left' | 'right' | 'top' | 'bottom';

@@ -180,3 +181,3 @@

display?: boolean;
position?: string;
position?: PositionType;
fullWdith?: boolean;

@@ -193,6 +194,8 @@ fontSize?: number;

display?: boolean;
position?: string;
position?: PositionType;
fullWidth?: boolean;
onClick?(event: any, legendItem: any): void;
onClick?(event: MouseEvent, legendItem: ChartLegendItem): void;
onHover?(event: MouseEvent, legendItem: ChartLegendItem): void;
labels?: ChartLegendLabelOptions;
reverse?: boolean;
}

@@ -300,3 +303,3 @@

radius?: number;
pointStyle?: string;
pointStyle?: PointStyle;
backgroundColor?: ChartColor;

@@ -340,2 +343,3 @@ borderWidth?: number;

autoSkip?: boolean;
autoSkipPadding?: boolean;
callback?(value: any, index: any, values: any): string|number;

@@ -395,3 +399,3 @@ display?: boolean;

interface ChartDataSets {
cubicInterpolationMode?: string;
cubicInterpolationMode?: 'default' | 'monotone';
backgroundColor?: ChartColor | ChartColor[];

@@ -404,6 +408,11 @@ borderWidth?: number;

borderJoinStyle?: string;
borderSkipped?: PositionType;
data?: number[] | ChartPoint[];
fill?: boolean;
fill?: boolean | number | string;
hoverBackgroundColor?: string | string[];
hoverBorderColor?: string | string[];
hoverBorderWidth?: number | number[];
label?: string;
lineTension?: number;
steppedLine?: 'before' | 'after' | boolean;
pointBorderColor?: ChartColor | ChartColor[];

@@ -418,3 +427,3 @@ pointBackgroundColor?: ChartColor | ChartColor[];

pointHoverBorderWidth?: number | number[];
pointStyle?: string | string[] | HTMLImageElement | HTMLImageElement[];
pointStyle?: PointStyle | HTMLImageElement | Array<PointStyle | HTMLImageElement>;
xAxisID?: string;

@@ -425,4 +434,5 @@ yAxisID?: string;

hideInLegendAndTooltip?: boolean;
showLine?: boolean;
stack?: string;
spanGaps?: string;
spanGaps?: boolean;
}

@@ -429,0 +439,0 @@

{
"name": "@types/chart.js",
"version": "2.6.3",
"version": "2.6.4",
"description": "TypeScript definitions for Chart.js",

@@ -9,15 +9,24 @@ "license": "MIT",

"name": "Alberto Nuti",
"url": "https://github.com/anuti"
"url": "https://github.com/anuti",
"githubUsername": "anuti"
},
{
"name": "Fabien Lavocat",
"url": "https://github.com/FabienLavocat"
"url": "https://github.com/FabienLavocat",
"githubUsername": "FabienLavocat"
},
{
"name": "KentarouTakeda",
"url": "https://github.com/KentarouTakeda"
"url": "https://github.com/KentarouTakeda",
"githubUsername": "KentarouTakeda"
},
{
"name": "Larry Bahr",
"url": "https://github.com/larrybahr"
"url": "https://github.com/larrybahr",
"githubUsername": "larrybahr"
},
{
"name": "Daniel Luz",
"url": "https://github.com/mernen",
"githubUsername": "mernen"
}

@@ -31,7 +40,5 @@ ],

"scripts": {},
"dependencies": {
"@types/jquery": "*"
},
"typesPublisherContentHash": "7be01ae8184b79f71f7c6225c1999b45dadf619b00b396ac17a605d595e95568",
"dependencies": {},
"typesPublisherContentHash": "9104fd3349adf131988ee02f615245ab68e10b6fc59c4afe6667fb73b69461f4",
"typeScriptVersion": "2.3"
}

@@ -11,7 +11,7 @@ # Installation

Additional Details
* Last updated: Mon, 21 Aug 2017 21:49:18 GMT
* Dependencies: jquery
* Last updated: Wed, 06 Sep 2017 14:55:01 GMT
* Dependencies: none
* 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>.
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>.

Sorry, the diff of this file is not supported yet

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