vue-chartjs
Advanced tools
Comparing version 5.0.1 to 5.1.0
@@ -5,11 +5,11 @@ import type { PropType } from 'vue'; | ||
readonly data: { | ||
readonly type: PropType<ChartData<keyof import("chart.js/dist/chunks/helpers.core").b$, (number | [number, number] | import("chart.js/dist/chunks/helpers.core").ad | import("chart.js/dist/chunks/helpers.core").a9 | null)[], unknown>>; | ||
readonly type: PropType<ChartData<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint | null)[], unknown>>; | ||
readonly required: true; | ||
}; | ||
readonly options: { | ||
readonly type: ObjectConstructor; | ||
readonly type: PropType<import("chart.js/dist/types/utils")._DeepPartialObject<import("chart.js").CoreChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").ElementChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").PluginChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").DatasetChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").ScaleChartOptions<keyof import("chart.js").ChartTypeRegistry>>>; | ||
readonly default: () => {}; | ||
}; | ||
readonly plugins: { | ||
readonly type: PropType<Plugin<keyof import("chart.js/dist/chunks/helpers.core").b$, import("chart.js/dist/chunks/helpers.core").a>[]>; | ||
readonly type: PropType<Plugin<keyof import("chart.js").ChartTypeRegistry, import("chart.js/dist/types/basic").AnyObject>[]>; | ||
readonly default: () => never[]; | ||
@@ -28,11 +28,11 @@ }; | ||
readonly data: { | ||
readonly type: PropType<ChartData<keyof import("chart.js/dist/chunks/helpers.core").b$, (number | [number, number] | import("chart.js/dist/chunks/helpers.core").ad | import("chart.js/dist/chunks/helpers.core").a9 | null)[], unknown>>; | ||
readonly type: PropType<ChartData<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint | null)[], unknown>>; | ||
readonly required: true; | ||
}; | ||
readonly options: { | ||
readonly type: ObjectConstructor; | ||
readonly type: PropType<import("chart.js/dist/types/utils")._DeepPartialObject<import("chart.js").CoreChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").ElementChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").PluginChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").DatasetChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").ScaleChartOptions<keyof import("chart.js").ChartTypeRegistry>>>; | ||
readonly default: () => {}; | ||
}; | ||
readonly plugins: { | ||
readonly type: PropType<Plugin<keyof import("chart.js/dist/chunks/helpers.core").b$, import("chart.js/dist/chunks/helpers.core").a>[]>; | ||
readonly type: PropType<Plugin<keyof import("chart.js").ChartTypeRegistry, import("chart.js/dist/types/basic").AnyObject>[]>; | ||
readonly default: () => never[]; | ||
@@ -49,3 +49,3 @@ }; | ||
readonly type: { | ||
readonly type: PropType<keyof import("chart.js/dist/chunks/helpers.core").b$>; | ||
readonly type: PropType<keyof import("chart.js").ChartTypeRegistry>; | ||
readonly required: true; | ||
@@ -52,0 +52,0 @@ }; |
@@ -6,8 +6,8 @@ import type { ChartType, ChartComponentLike, DefaultDataPoint } from 'chart.js'; | ||
export declare const Doughnut: TypedChartComponent<"doughnut", number[], unknown>; | ||
export declare const Line: TypedChartComponent<"line", (number | import("chart.js/dist/chunks/helpers.core.js").ad | null)[], unknown>; | ||
export declare const Line: TypedChartComponent<"line", (number | import("chart.js").Point | null)[], unknown>; | ||
export declare const Pie: TypedChartComponent<"pie", number[], unknown>; | ||
export declare const PolarArea: TypedChartComponent<"polarArea", number[], unknown>; | ||
export declare const Radar: TypedChartComponent<"radar", (number | null)[], unknown>; | ||
export declare const Bubble: TypedChartComponent<"bubble", import("chart.js/dist/chunks/helpers.core.js").a9[], unknown>; | ||
export declare const Scatter: TypedChartComponent<"scatter", (number | import("chart.js/dist/chunks/helpers.core.js").ad | null)[], unknown>; | ||
export declare const Bubble: TypedChartComponent<"bubble", import("chart.js").BubbleDataPoint[], unknown>; | ||
export declare const Scatter: TypedChartComponent<"scatter", (number | import("chart.js").Point | null)[], unknown>; | ||
//# sourceMappingURL=typedCharts.d.ts.map |
@@ -15,3 +15,3 @@ import type { Chart, ChartType, ChartData, ChartDataset, ChartOptions, DefaultDataPoint } from 'chart.js'; | ||
*/ | ||
export declare function getDatasetAtEvent(chart: Chart, event: MouseEvent): import("chart.js/dist/chunks/helpers.core").aE[]; | ||
export declare function getDatasetAtEvent(chart: Chart, event: MouseEvent): import("chart.js").InteractionItem[]; | ||
/** | ||
@@ -23,3 +23,3 @@ * Get single dataset element from mouse click event | ||
*/ | ||
export declare function getElementAtEvent(chart: Chart, event: MouseEvent): import("chart.js/dist/chunks/helpers.core").aE[]; | ||
export declare function getElementAtEvent(chart: Chart, event: MouseEvent): import("chart.js").InteractionItem[]; | ||
/** | ||
@@ -31,3 +31,3 @@ * Get all dataset elements from mouse click event | ||
*/ | ||
export declare function getElementsAtEvent(chart: Chart, event: MouseEvent): import("chart.js/dist/chunks/helpers.core").aE[]; | ||
export declare function getElementsAtEvent(chart: Chart, event: MouseEvent): import("chart.js").InteractionItem[]; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "vue-chartjs", | ||
"type": "module", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"description": "Vue.js wrapper for chart.js for creating beautiful charts.", | ||
@@ -43,4 +43,5 @@ "author": "Jakub Juszczak <jakub@posteo.de>", | ||
"exports": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
"require": "./dist/index.cjs" | ||
}, | ||
@@ -54,3 +55,3 @@ "publishConfig": { | ||
"peerDependencies": { | ||
"chart.js": "^4.0.0", | ||
"chart.js": "^4.1.1", | ||
"vue": "^3.0.0-0 || ^2.6.0" | ||
@@ -57,0 +58,0 @@ }, |
@@ -11,3 +11,3 @@ # vue-chartjs | ||
[![codecov](https://codecov.io/gh/apertureless/vue-chartjs/branch/master/graph/badge.svg)](https://codecov.io/gh/apertureless/vue-chartjs) | ||
[![Build Status](https://img.shields.io/github/workflow/status/apertureless/vue-chartjs/CI.svg)](https://github.com/apertureless/vue-chartjs/actions) | ||
[![Build Status](https://img.shields.io/github/actions/workflow/status/apertureless/vue-chartjs/ci.yml?branch=main)](https://github.com/apertureless/vue-chartjs/actions) | ||
[![Package Quality](http://npm.packagequality.com/shield/vue-chartjs.svg)](http://packagequality.com/#?package=vue-chartjs) | ||
@@ -14,0 +14,0 @@ [![npm](https://img.shields.io/npm/dm/vue-chartjs.svg)](https://www.npmjs.com/package/vue-chartjs) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70147
19
590