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 0.0.1 to 0.0.2

85

chart.js/chart.js.d.ts

@@ -84,3 +84,3 @@ // Type definitions for Chart.js

interface ChartFontOptions {
defaultFontColor?: string;
defaultFontColor?: ChartColor;
defaultFontFamily?: string;

@@ -97,3 +97,3 @@ defaultFontSize?: number;

fontFamily?: string;
fontColor?: string;
fontColor?: ChartColor;
fontStyle?: string;

@@ -116,3 +116,3 @@ padding?: number;

fontStyle?: number;
fontColor?: string;
fontColor?: ChartColor;
fontFamily?: string;

@@ -127,7 +127,7 @@ padding?: number;

mode?: string;
backgroundColor?: string;
backgroundColor?: ChartColor;
titleFontFamily?: string;
titleFontSize?: number;
titleFontStyle?: string;
titleFontColor?: string;
titleFontColor?: ChartColor;
titleSpacing?: number;

@@ -138,3 +138,3 @@ titleMarginBottom?: number;

bodyFontStyle?: string;
bodyFontColor?: string;
bodyFontColor?: ChartColor;
bodySpacing?: number;

@@ -144,3 +144,3 @@ footerFontFamily?: string;

footerFontStyle?: string;
footerFontColor?: string;
footerFontColor?: ChartColor;
footerSpacing?: number;

@@ -186,4 +186,4 @@ footerMarginTop?: number;

interface ChartArcOtpions {
backgroundColor?: string;
borderColor?: string;
backgroundColor?: ChartColor;
borderColor?: ChartColor;
borderWidth?: number;

@@ -194,5 +194,5 @@ }

tension?: number;
backgroundColor?: string;
backgroundColor?: ChartColor;
borderWidth?: number;
borderColor?: string;
borderColor?: ChartColor;
borderCapStyle?: string;

@@ -207,5 +207,5 @@ borderDash?: any[];

pointStyle?: string;
backgroundColor?: string;
backgroundColor?: ChartColor;
borderWidth?: number;
borderColor?: string;
borderColor?: ChartColor;
hitRadius?: number;

@@ -217,5 +217,5 @@ hoverRadius?: number;

interface ChartRectangleOptions {
backgroundColor?: string;
backgroundColor?: ChartColor;
borderWidth?: number;
borderColor?: string;
borderColor?: ChartColor;
borderSkipped?: string;

@@ -225,3 +225,3 @@ }

display?: boolean;
color?: string;
color?: ChartColor;
lineWidth?: number;

@@ -233,3 +233,3 @@ drawBorder?: boolean;

zeroLineWidth?: number;
zeroLineColor?: string;
zeroLineColor?: ChartColor;
offsetGridLines?: boolean;

@@ -241,3 +241,3 @@ }

labelString?: string;
fontColor?: string;
fontColor?: ChartColor;
fontFamily?: string;

@@ -252,3 +252,3 @@ fontSize?: number;

display?: boolean;
fontColor?: string;
fontColor?: ChartColor;
fontFamily?: string;

@@ -268,3 +268,3 @@ fontSize?: number;

display?: boolean;
color?: string;
color?: ChartColor;
lineWidth?: number;

@@ -275,3 +275,3 @@ }

callback?: (arg: any) => any;
fontColor?: string;
fontColor?: ChartColor;
fontFamily?: string;

@@ -283,3 +283,3 @@ fontSize?: number;

interface TickOptions {
backdropColor?: string;
backdropColor?: ChartColor;
backdropPaddingX?: number;

@@ -305,6 +305,8 @@ backdropPaddingY?: number;

type ChartColor = string | CanvasGradient | CanvasPattern;
interface ChartDataSets {
backgroundColor?: string[];
backgroundColor?: ChartColor;
borderWidth?: number;
borderColor?: string[];
borderColor?: ChartColor;
borderCapStyle?: string;

@@ -318,4 +320,4 @@ borderDash?: number[];

lineTension?: number;
pointBorderColor?: string | string[];
pointBackgroundColor?: string | string[];
pointBorderColor?: ChartColor | ChartColor[];
pointBackgroundColor?: ChartColor | ChartColor[];
pointBorderWidth?: number | number[];

@@ -325,4 +327,4 @@ pointRadius?: number | number[];

pointHitRadius?: number | number[];
pointHoverBackgroundColor?: string | string[];
pointHoverBorderColor?: string | string[];
pointHoverBackgroundColor?: ChartColor | ChartColor[];
pointHoverBorderColor?: ChartColor | ChartColor[];
pointHoverBorderWidth?: number | number[];

@@ -355,4 +357,30 @@ pointStyle?: string | string[] | HTMLImageElement | HTMLImageElement[];

ticks?: TickOptions;
xAxes?: ChartXAxe[];
yAxes?: ChartYAxe[];
}
interface ChartXAxe {
type?: string;
display?: boolean;
id?: string;
stacked?: boolean;
categoryPercentage?: number;
barPercentage?: number;
gridLines?: GridLineOptions;
position?: string;
ticks?: TickOptions;
time?: TimeScale;
scaleLabel?: ScaleTitleOptions;
}
interface ChartYAxe {
type?: string;
display?: boolean;
id?: string;
stacked?: boolean;
position?: string;
ticks?: TickOptions;
scaleLabel?: ScaleTitleOptions;
}
interface LinearScale extends ChartScales {

@@ -367,2 +395,3 @@ ticks?: LinearTickOptions;

interface TimeScale extends ChartScales {
format?: string;
displayFormats?: string;

@@ -369,0 +398,0 @@ isoWeekday?: boolean;

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

@@ -5,0 +5,0 @@ "license": "MIT",

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

Additional Details
* Last updated: Tue, 02 Aug 2016 15:42:54 GMT
* Last updated: Mon, 08 Aug 2016 20:24:44 GMT
* File structure: Global

@@ -14,0 +14,0 @@ * Library Dependencies: none

@@ -24,3 +24,3 @@ {

"hasPackageJson": false,
"contentHash": "9003eba0d1129dffcbe5d1dc55d8b2904b871c4ae81c807f57fc8378b8f7dd23"
"contentHash": "f2f79cc2472046f68b38a75162e8b6ae8de283fec655bed52757cd8e2fd4aa10"
}
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