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

chart.js

Package Overview
Dependencies
Maintainers
5
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chart.js - npm Package Compare versions

Comparing version 3.0.0-beta.10 to 3.0.0-beta.11

dist/chunks/index.esm.d.ts

27

dist/helpers.esm.d.ts
/*!
* Chart.js v3.0.0-beta.10
* Chart.js v3.0.0-beta.11
* https://www.chartjs.org

@@ -7,3 +7,3 @@ * (c) 2021 Chart.js Contributors

*/
import { FontSpec, ChartArea, PointStyle, Color, EasingFunction } from './chart.esm';
import { F as FontSpec, C as ChartArea, P as PointStyle, a as Color, A as AnyObject, E as EasingFunction } from './chunks/index.esm';

@@ -225,3 +225,3 @@ interface CanvasFontSpec extends FontSpec {

*/
declare function isNullOrUndef(value: any): value is null | undefined;
declare function isNullOrUndef(value: unknown): value is null | undefined;
/**

@@ -233,3 +233,3 @@ * Returns true if `value` is an array (including typed arrays), else returns false.

*/
declare function isArray<T = any>(value: any): value is ArrayLike<T>;
declare function isArray<T = unknown>(value: unknown): value is ArrayLike<T>;
/**

@@ -241,3 +241,3 @@ * Returns true if `value` is an object (excluding null), else returns false.

*/
declare function isObject(value: any): value is object;
declare function isObject(value: unknown): value is AnyObject;
/**

@@ -248,3 +248,3 @@ * Returns true if `value` is a finite number, else returns false

*/
declare function isFinite(value: any): value is number;
declare function isFinite(value: unknown): value is number;
/**

@@ -265,5 +265,5 @@ * Returns `value` if defined, else returns `defaultValue`.

*/
declare function callback<T extends (this: TA, ...args: any[]) => R, TA, R>(
declare function callback<T extends (this: TA, ...args: unknown[]) => R, TA, R>(
fn: T | undefined,
args: any[],
args: unknown[],
thisArg?: TA

@@ -310,3 +310,3 @@ ): R | undefined;

interface MergeOptions {
merger?: (key: string, target: any, source: any, options: any) => any;
merger?: (key: string, target: AnyObject, source: AnyObject, options: AnyObject) => AnyObject;
}

@@ -332,3 +332,3 @@ /**

): T & S1 & S2 & S3 & S4;
declare function merge<T>(target: T, source: any[], options?: MergeOptions): any;
declare function merge<T>(target: T, source: AnyObject[], options?: MergeOptions): AnyObject;

@@ -348,5 +348,5 @@ /**

declare function mergeIf<T, S1, S2, S3, S4>(target: T, source: [S1, S2, S3, S4]): T & S1 & S2 & S3 & S4;
declare function mergeIf<T>(target: T, source: any[]): any;
declare function mergeIf<T>(target: T, source: AnyObject[]): AnyObject;
declare function resolveObjectKey(obj: any, key: string): any;
declare function resolveObjectKey(obj: AnyObject, key: string): AnyObject;

@@ -402,3 +402,4 @@ interface SplinePoint {

},
forceRatio: number
forceRatio: number,
forceStyle?: boolean
): void;

@@ -405,0 +406,0 @@

/*!
* Chart.js v3.0.0-beta.10
* Chart.js v3.0.0-beta.11
* https://www.chartjs.org

@@ -7,2 +7,2 @@ * (c) 2021 Chart.js Contributors

*/
export { H as HALF_PI, aC as INFINITY, P as PI, aB as PITAU, aE as QUARTER_PI, aD as RAD_PER_DEG, T as TAU, aF as TWO_THIRDS_PI, S as _alignPixel, a1 as _angleBetween, aG as _angleDiff, q as _arrayUnique, a9 as _bezierCurveTo, a6 as _bezierInterpolation, ae as _boundSegment, a4 as _boundSegments, _ as _capitalize, a3 as _computeSegments, an as _decimalPlaces, aw as _deprecated, $ as _elementsEqual, W as _factorize, ar as _filterBetween, F as _getParentNode, R as _int16Range, A as _isPointInArea, x as _limitValue, aq as _longestText, as as _lookup, y as _lookupByKey, Q as _measureText, j as _merger, av as _mergerIf, ad as _normalizeAngle, a7 as _pointInLine, B as _rlookupByKey, am as _setMinAndMaxByKey, a5 as _steppedInterpolation, a8 as _steppedLineTo, a2 as _updateBezierControlPoints, ao as almostEquals, ap as almostWhole, N as callback, Z as clearCanvas, o as clipArea, au as clone, c as color, ak as distanceBetweenPoints, aa as drawPoint, D as each, e as easingEffects, L as finiteOrDefault, at as fontString, a0 as getAngleFromPoint, g as getHoverColor, E as getMaximumSize, z as getRelativePosition, af as getRtlAdapter, az as getStyle, b as isArray, M as isFinite, k as isNullOrUndef, w as isNumber, i as isObject, l as listenArrayEvents, K as log10, m as merge, h as mergeIf, n as noop, ah as overrideTextDirection, G as readUsedSize, U as renderText, r as requestAnimFrame, a as resolve, f as resolveObjectKey, ai as restoreTextDirection, Y as retinaScale, s as sign, ax as splineCurve, ay as splineCurveMonotone, J as supportsEventListenerOptions, O as toDegrees, V as toFont, al as toFontString, aA as toLineHeight, C as toPadding, t as toRadians, ab as toTRBL, ac as toTRBLCorners, X as uid, p as unclipArea, u as unlistenArrayEvents, v as valueOrDefault } from './chunks/helpers.segment.js';
export { H as HALF_PI, aH as INFINITY, P as PI, aG as PITAU, aJ as QUARTER_PI, aI as RAD_PER_DEG, T as TAU, aK as TWO_THIRDS_PI, M as _alignPixel, a2 as _angleBetween, aL as _angleDiff, _ as _arrayUnique, U as _attachContext, aa as _bezierCurveTo, a7 as _bezierInterpolation, af as _boundSegment, a5 as _boundSegments, R as _capitalize, a4 as _computeSegments, V as _createResolver, ap as _decimalPlaces, aB as _deprecated, X as _descriptors, a0 as _elementsEqual, Q as _factorize, at as _filterBetween, A as _getParentNode, L as _int16Range, q as _isPointInArea, n as _limitValue, as as _longestText, au as _lookup, o as _lookupByKey, K as _measureText, ay as _merger, aA as _mergerIf, ae as _normalizeAngle, a8 as _pointInLine, w as _rlookupByKey, ao as _setMinAndMaxByKey, a6 as _steppedInterpolation, a9 as _steppedLineTo, a3 as _updateBezierControlPoints, aq as almostEquals, ar as almostWhole, I as callback, $ as clearCanvas, j as clipArea, ax as clone, c as color, g as defined, am as distanceBetweenPoints, ab as drawPoint, y as each, e as easingEffects, F as finiteOrDefault, aw as fontString, a1 as getAngleFromPoint, av as getHoverColor, z as getMaximumSize, p as getRelativePosition, ag as getRtlAdapter, aE as getStyle, b as isArray, G as isFinite, S as isFunction, h as isNullOrUndef, m as isNumber, i as isObject, l as listenArrayEvents, E as log10, az as merge, W as mergeIf, al as noop, ai as overrideTextDirection, B as readUsedSize, N as renderText, r as requestAnimFrame, a as resolve, f as resolveObjectKey, aj as restoreTextDirection, Z as retinaScale, s as sign, aC as splineCurve, aD as splineCurveMonotone, D as supportsEventListenerOptions, J as toDegrees, O as toFont, an as toFontString, aF as toLineHeight, x as toPadding, t as toRadians, ac as toTRBL, ad as toTRBLCorners, Y as uid, k as unclipArea, u as unlistenArrayEvents, v as valueOrDefault } from './chunks/helpers.segment.js';

@@ -5,3 +5,3 @@ {

"description": "Simple HTML5 charts using the canvas element.",
"version": "3.0.0-beta.10",
"version": "3.0.0-beta.11",
"license": "MIT",

@@ -42,2 +42,3 @@ "jsdelivr": "dist/chart.min.js",

"lint-js": "eslint samples/**/*.html samples/**/*.js src/**/*.js test/**/*.js",
"lint-md": "markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"",
"lint-tsc": "tsc",

@@ -58,3 +59,3 @@ "lint-types": "eslint types/**/*.d.ts",

"chartjs-adapter-moment": "^0.1.2",
"chartjs-test-utils": "^0.1.2",
"chartjs-test-utils": "^0.2.1",
"concurrently": "^5.3.0",

@@ -64,3 +65,3 @@ "coveralls": "^3.1.0",

"eslint": "^7.16.0",
"eslint-config-chartjs": "^0.2.0",
"eslint-config-chartjs": "^0.3.0",
"eslint-plugin-es": "^4.1.0",

@@ -80,2 +81,3 @@ "eslint-plugin-html": "^6.1.1",

"karma-safari-private-launcher": "^1.0.0",
"markdownlint-cli2": "0.0.13",
"moment": "^2.29.1",

@@ -88,3 +90,3 @@ "pixelmatch": "^5.2.1",

"rollup-plugin-terser": "^7.0.2",
"typedoc": "^0.20.9",
"typedoc": "^0.20.25",
"typescript": "^4.1.3",

@@ -91,0 +93,0 @@ "yargs": "^16.2.0"

@@ -23,11 +23,11 @@ <p align="center">

- [Introduction](https://www.chartjs.org/docs/latest/)
- [Getting Started](https://www.chartjs.org/docs/latest/getting-started/)
- [General](https://www.chartjs.org/docs/latest/general/)
- [Configuration](https://www.chartjs.org/docs/latest/configuration/)
- [Charts](https://www.chartjs.org/docs/latest/charts/)
- [Axes](https://www.chartjs.org/docs/latest/axes/)
- [Developers](https://www.chartjs.org/docs/latest/developers/)
- [Popular Extensions](https://github.com/chartjs/awesome)
- [Samples](https://www.chartjs.org/samples/)
* [Introduction](https://www.chartjs.org/docs/latest/)
* [Getting Started](https://www.chartjs.org/docs/latest/getting-started/)
* [General](https://www.chartjs.org/docs/latest/general/)
* [Configuration](https://www.chartjs.org/docs/latest/configuration/)
* [Charts](https://www.chartjs.org/docs/latest/charts/)
* [Axes](https://www.chartjs.org/docs/latest/axes/)
* [Developers](https://www.chartjs.org/docs/latest/developers/)
* [Popular Extensions](https://github.com/chartjs/awesome)
* [Samples](https://www.chartjs.org/samples/)

@@ -34,0 +34,0 @@ ## Contributing

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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