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.9.30 to 2.9.31

65

chart.js/index.d.ts

@@ -517,41 +517,44 @@ // Type definitions for Chart.js 2.9

interface ChartArcOptions {
angle?: number;
backgroundColor?: ChartColor;
borderAlign?: BorderAlignment;
borderColor?: ChartColor;
borderWidth?: number;
angle?: number | Scriptable<number>;
backgroundColor?: ChartDataSets["backgroundColor"];
borderAlign?: BorderAlignment | Scriptable<BorderAlignment>;
borderColor?: ChartColor | Scriptable<ChartColor>;
borderWidth?: number | Scriptable<number>;
}
type CubicInterpolationMode = 'default' | 'monotone';
type FillMode = 'zero' | 'top' | 'bottom' | boolean;
interface ChartLineOptions {
cubicInterpolationMode?: 'default' | 'monotone';
tension?: number;
backgroundColor?: ChartColor;
borderWidth?: number;
borderColor?: ChartColor;
borderCapStyle?: string;
borderDash?: any[];
borderDashOffset?: number;
borderJoinStyle?: string;
capBezierPoints?: boolean;
fill?: 'zero' | 'top' | 'bottom' | boolean;
stepped?: boolean;
cubicInterpolationMode?: CubicInterpolationMode | Scriptable<CubicInterpolationMode>;
tension?: number | Scriptable<number>;
backgroundColor?: ChartDataSets["backgroundColor"];
borderWidth?: number | Scriptable<number>;
borderColor?: ChartColor | Scriptable<ChartColor>;
borderCapStyle?: string | Scriptable<string>;
borderDash?: any[] | Scriptable<any[]>;
borderDashOffset?: number | Scriptable<number>;
borderJoinStyle?: string | Scriptable<string>;
capBezierPoints?: boolean | Scriptable<boolean>;
fill?: FillMode | Scriptable<FillMode>;
stepped?: boolean | Scriptable<boolean>;
}
interface ChartPointOptions {
radius?: number;
pointStyle?: PointStyle;
rotation?: number;
backgroundColor?: ChartColor;
borderWidth?: number;
borderColor?: ChartColor;
hitRadius?: number;
hoverRadius?: number;
hoverBorderWidth?: number;
radius?: number | Scriptable<number>;
pointStyle?: PointStyle | Scriptable<PointStyle>;
rotation?: number | Scriptable<number>;
backgroundColor?: ChartDataSets["backgroundColor"];
borderWidth?: number | Scriptable<number>;
borderColor?: ChartColor | Scriptable<ChartColor>;
hitRadius?: number | Scriptable<number>;
hoverRadius?: number | Scriptable<number>;
hoverBorderWidth?: number | Scriptable<number>;
}
interface ChartRectangleOptions {
backgroundColor?: ChartColor;
borderWidth?: number;
borderColor?: ChartColor;
borderSkipped?: string;
backgroundColor?: ChartDataSets["backgroundColor"];
borderWidth?: number | Scriptable<number>;
borderColor?: ChartColor | Scriptable<ChartColor>;
borderSkipped?: string | Scriptable<string>;
}

@@ -689,3 +692,3 @@

interface ChartDataSets {
cubicInterpolationMode?: 'default' | 'monotone';
cubicInterpolationMode?: CubicInterpolationMode | Scriptable<CubicInterpolationMode>;
backgroundColor?: ChartColor | ChartColor[] | Scriptable<ChartColor>;

@@ -692,0 +695,0 @@ barPercentage?: number;

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

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

},
"typesPublisherContentHash": "0ab0602efa28db797edffbf55cc0b57c2c8b02c346a0b0c39eab617213e59541",
"typesPublisherContentHash": "0a45f0f7ca0df470673f521fe3b5dc5220b472b2b336cc1825b20f91f28fb27f",
"typeScriptVersion": "3.4"
}

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

### Additional Details
* Last updated: Fri, 22 Jan 2021 23:06:11 GMT
* Last updated: Thu, 25 Feb 2021 15:13:17 GMT
* Dependencies: [@types/moment](https://npmjs.com/package/@types/moment)

@@ -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