Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/chartist

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/chartist - npm Package Compare versions

Comparing version 0.9.48 to 0.11.0

90

chartist/index.d.ts

@@ -1,4 +0,4 @@

// Type definitions for Chartist v0.9.81
// Type definitions for Chartist v0.11.4
// Project: https://github.com/gionkunz/chartist-js
// Definitions by: Matt Gibbs <https://github.com/mtgibbs>, Simon Pfeifer <https://github.com/psimonski>, Anastasiia Antonova <https://github.com/affilnost>, Sunny Juneja <https://github.com/sunnyrjuneja>, Sam Raudabaugh <https://github.com/raudabaugh>, Manuel Borrajo <https://github.com/borrajo>
// Definitions by: Matt Gibbs <https://github.com/mtgibbs>, Simon Pfeifer <https://github.com/psimonski>, Anastasiia Antonova <https://github.com/affilnost>, Sunny Juneja <https://github.com/sunnyrjuneja>, Sam Raudabaugh <https://github.com/raudabaugh>, Manuel Borrajo <https://github.com/borrajo>, Alexander Goooseman <https://github.com/goooseman>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -261,2 +261,88 @@

interface IChartRect {
height: () => void;
width: () => void;
padding: IChartPadding;
x1: number;
x2: number;
y1: number;
y2: number;
}
interface IChartUnits {
dir: "vertical" | "horizontal";
len: "height" | "width";
pos: "x" | "y";
rectEnd: string;
rectOffset: string;
rectStart: string;
}
interface IChartAxis {
axisLength: number;
chartRect: IChartRect;
counterUnits: IChartUnits;
divisor: number;
gridOffset: number;
options: unknown;
range: {
min: number;
max: number;
};
stepLength: number;
ticks: number[];
units: IChartUnits;
}
interface IChartDrawLabelData {
type: "label";
axis: IChartAxis;
element: IChartistSvg;
group: IChartistSvg;
height: number;
index: number;
text: number;
width: number;
x: number;
y: number;
}
interface IChartDrawGridData {
type: "grid";
axis: IChartAxis;
element: IChartistSvg;
group: IChartistSvg;
index: number;
x1: number;
x2: number;
y1: number;
y2: number;
}
interface IChartDrawBarData {
type: "bar";
axisX: IChartAxis;
axisY: IChartAxis;
chartRect: IChartRect;
element: IChartistSvg;
group: IChartistSvg;
index: number;
meta: unknown;
series: number[];
seriesIndex: number;
value: {
x?: number;
y?: number;
};
x1: number;
x2: number;
y1: number;
y2: number;
}
type ChartDrawData =
| IChartDrawLabelData
| IChartDrawGridData
| IChartDrawBarData;
interface IPieChartClasses {

@@ -263,0 +349,0 @@ chartPie?: string;

11

chartist/package.json
{
"name": "@types/chartist",
"version": "0.9.48",
"version": "0.11.0",
"description": "TypeScript definitions for Chartist",

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

"githubUsername": "borrajo"
},
{
"name": "Alexander Goooseman",
"url": "https://github.com/goooseman",
"githubUsername": "goooseman"
}

@@ -48,4 +53,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "e26f4c363bee4176f4c00e9e964e1235ec79bfdcf236dd965d5864d1531a5eb7",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "33471fb50c0ef031b76d44a64d19098e395879419a5189fe0c0b856fa60b2715",
"typeScriptVersion": "3.0"
}

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

### Additional Details
* Last updated: Fri, 27 Mar 2020 05:36:10 GMT
* Last updated: Sat, 01 Aug 2020 07:55:30 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: `Chartist`

# Credits
These definitions were written by [Matt Gibbs](https://github.com/mtgibbs), [Simon Pfeifer](https://github.com/psimonski), [Anastasiia Antonova](https://github.com/affilnost), [Sunny Juneja](https://github.com/sunnyrjuneja), [Sam Raudabaugh](https://github.com/raudabaugh), and [Manuel Borrajo](https://github.com/borrajo).
These definitions were written by [Matt Gibbs](https://github.com/mtgibbs), [Simon Pfeifer](https://github.com/psimonski), [Anastasiia Antonova](https://github.com/affilnost), [Sunny Juneja](https://github.com/sunnyrjuneja), [Sam Raudabaugh](https://github.com/raudabaugh), [Manuel Borrajo](https://github.com/borrajo), and [Alexander Goooseman](https://github.com/goooseman).

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