From 4b6a8b0fb661dbbbb01ec97c1f3feb8621c3c85b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Wed, 1 Mar 2023 15:59:22 +0300 Subject: [PATCH] Chart dts updated --- components/chart/Chart.d.ts | 60 ++++++++++++++++++++++++------------- 1 file changed, 39 insertions(+), 21 deletions(-) diff --git a/components/chart/Chart.d.ts b/components/chart/Chart.d.ts index e23d6fce4..29c419633 100755 --- a/components/chart/Chart.d.ts +++ b/components/chart/Chart.d.ts @@ -1,6 +1,19 @@ +/** + * + * Chart groups a collection of contents in tabs. + * + * [Live Demo](https://www.primevue.org/chart/) + * + * @module chart + * + */ import { CanvasHTMLAttributes } from 'vue'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +/** + * Custom select event. + * @see select + */ export interface ChartSelectEvent { /** * Browser event. @@ -16,6 +29,9 @@ export interface ChartSelectEvent { dataset: any; } +/** + * Defines valid properties in Chart component. + */ export interface ChartProps { /** * Type of the chart. @@ -51,44 +67,59 @@ export interface ChartProps { export interface ChartSlots {} -export declare type ChartEmits = { +/** + * Defines valid emits in Chart component. + */ +export interface ChartEmits { /** * Callback to invoke when a tab gets expanded. * @param {ChartSelectEvent} event - Custom select event. */ - select: (event: ChartSelectEvent) => void; + select(event: ChartSelectEvent): void; /** * Callback to invoke when chart is loaded. * @param {*} chart - Chart instance. */ - loaded: (chart: any) => void; -}; + loaded(chart: any): void; +} +/** + * **PrimeVue - Chart** + * + * _Chart groups a collection of contents in tabs._ + * + * [Live Demo](https://www.primevue.org/chart/) + * --- --- + * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg) + * + * @group Component + * + */ declare class Chart extends ClassComponent { /** * Redraws the graph. * * @memberof Chart */ - refresh: () => void; + refresh(): void; /** * Destroys the graph first and then creates it again. * * @memberof Chart */ - reinit: () => void; + reinit(): void; /** * Returns an HTML string of a legend for that chart. The legend is generated from the legendCallback in the options. * * @memberof Chart */ - generateLegend: () => string | any; + generateLegend(): string | any; /** * Returns Chart instance. * * @memberof Chart */ - getChart: () => any; + getChart(): any; } declare module '@vue/runtime-core' { @@ -97,17 +128,4 @@ declare module '@vue/runtime-core' { } } -/** - * - * Chart components are based on Charts.js, an open source HTML5 based charting library. - * - * Helper API; - * - * - [Chart.js](https://www.chartjs.org/) - * - * Demos: - * - * - [Chart](https://www.primefaces.org/primevue/chart) - * - */ export default Chart;