Untitled diff

Creado El diff nunca expira
6 eliminaciones
939 líneas
17 adiciones
934 líneas
// Typescript declarations for Apex class and module.
// Typescript declarations for Apex class and module.
// Note: When you have a class and a module with the same name; the module is merged
// Note: When you have a class and a module with the same name; the module is merged
// with the class. This is necessary since apexcharts exports the main ApexCharts class only.
// with the class. This is necessary since apexcharts exports the main ApexCharts class only.
//
//
// This is a sparse typed declarations of chart interfaces. See Apex Chart documentation
// This is a sparse typed declarations of chart interfaces. See Apex Chart documentation
// for comprehensive API: https://apexcharts.com/docs/options
// for comprehensive API: https://apexcharts.com/docs/options
//
//
// There is on-going work to provide a comprehensive typed definition for this component.
// There is on-going work to provide a comprehensive typed definition for this component.
// See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28733
// See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28733


declare class ApexCharts {
declare module 'apexcharts' {
export default class ApexCharts {
constructor(el: any, options: any);
constructor(el: any, options: any);
render(): Promise<void>;
render(): Promise<void>;
updateOptions(options: any, redrawPaths?: boolean, animate?: boolean): Promise<void>;
updateOptions(options: any, redrawPaths?: boolean, animate?: boolean): Promise<void>;
updateSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void;
updateSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void;
appendSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void;
appendSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void;
toggleSeries(seriesName: string): void;
toggleSeries(seriesName: string): void;
destroy(): void;
destroy(): void;
addXaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addXaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addYaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addYaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addPointAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addPointAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addText(options: any, pushToMemory?: boolean, context?: any): void;
addText(options: any, pushToMemory?: boolean, context?: any): void;
dataURI(): Promise<void>;
dataURI(): Promise<void>;
static exec(chartID: string, fn: () => void, options: any): any;
static exec(chartID: string, fn: () => void, options: any): any;
static initOnLoad(): void;
static initOnLoad(): void;
}
}


declare module ApexCharts {
export interface ApexOptions {
export interface ApexOptions {
annotations?: ApexAnnotations;
annotations?: ApexAnnotations;
chart?: ApexChart;
chart?: ApexChart;
colors?: any[];
colors?: any[];
dataLabels?: ApexDataLabels;
dataLabels?: ApexDataLabels;
fill?: ApexFill;
fill?: ApexFill;
grid?: ApexGrid;
grid?: ApexGrid;
labels?: string[];
labels?: string[];
legend?: ApexLegend;
legend?: ApexLegend;
markers?: ApexMarkers;
markers?: ApexMarkers;
noData?: ApexNoData;
noData?: ApexNoData;
plotOptions?: ApexPlotOptions;
plotOptions?: ApexPlotOptions;
responsive?: ApexResponsive[];
responsive?: ApexResponsive[];
series?: ApexAxisChartSeries | ApexNonAxisChartSeries;
series?: ApexAxisChartSeries | ApexNonAxisChartSeries;
states?: ApexStates;
states?: ApexStates;
stroke?: ApexStroke;
stroke?: ApexStroke;
subtitle?: ApexTitleSubtitle;
subtitle?: ApexTitleSubtitle;
theme?: ApexTheme;
theme?: ApexTheme;
title?: ApexTitleSubtitle;
title?: ApexTitleSubtitle;
tooltip?: ApexTooltip;
tooltip?: ApexTooltip;
xaxis?: ApexXAxis;
xaxis?: ApexXAxis;
yaxis?: ApexYAxis | ApexYAxis[];
yaxis?: ApexYAxis | ApexYAxis[];
}
}
}
}


/**
/**
* Main Chart options
* Main Chart options
* See https://apexcharts.com/docs/options/chart/
* See https://apexcharts.com/docs/options/chart/
*/
*/
type ApexChart = {
type ApexChart = {
width?: string | number;
width?: string | number;
height?: string | number;
height?: string | number;
type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" |
type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" |
"radialBar" | "scatter" | "bubble" | "heatmap" | "candlestick" | "radar" | "rangeBar";
"radialBar" | "scatter" | "bubble" | "heatmap" | "candlestick" | "radar" | "rangeBar";
foreColor?: string;
foreColor?: string;
fontFamily?: string;
fontFamily?: string;
background?: string;
background?: string;
offsetX?: number;
offsetX?: number;
offsetY?: number;
offsetY?: number;
dropShadow?: {
dropShadow?: {
enabled?: boolean;
enabled?: boolean;
top?: number;
top?: number;
left?: number;
left?: number;
blur?: number;
blur?: number;
opacity?: number;
opacity?: number;
};
};
events?: {
events?: {
animationEnd?(chart: any, options: any): void;
animationEnd?(chart: any, options: any): void;
beforeMount?(chart: any, options: any): void;
beforeMount?(chart: any, options: any): void;
mounted?(chart: any, options: any): void;
mounted?(chart: any, options: any): void;
updated?(chart: any, options: any): void;
updated?(chart: any, options: any): void;
click?(e: any, chart: any, options: any): void;
click?(e: any, chart: any, options: any): void;
legendClick?(chart: any, seriesIndex: number, options: any): void;
legendClick?(chart: any, seriesIndex: number, options: any): void;
markerClick?(e: any, chart: any, options: any): void;
markerClick?(e: any, chart: any, options: any): void;
selection?(chart: any, options: any): void;
selection?(chart: any, options: any): void;
dataPointSelection?(e: any, chart: any, options: any): void;
dataPointSelection?(e: any, chart: any, options: any): void;
dataPointMouseEnter?(e: any, chart: any, options: any): void;
dataPointMouseEnter?(e: any, chart: any, options: any): void;
dataPointMouseLeave?(e: any, chart: any, options: any): void;
dataPointMouseLeave?(e: any, chart: any, options: any): void;
beforeZoom?(chart: any, options: any): void;
beforeZoom?(chart: any, options: any): void;
zoomed?(chart: any, options: any): void;
zoomed?(chart: any, options: any): void;
scrolled?(chart: any, options: any): void;
scrolled?(chart: any, options: any): void;
};
};
brush?: {
brush?: {
enabled?: boolean;
enabled?: boolean;
autoScaleYaxis?: boolean,
autoScaleYaxis?: boolean,
target?: string;
target?: string;
};
};
id?: string;
id?: string;
locales?: ApexLocale[];
locales?: ApexLocale[];
defaultLocale?: string;
defaultLocale?: string;
parentHeightOffset?: number;
parentHeightOffset?: number;
sparkline?: {
sparkline?: {
enabled?: boolean;
enabled?: boolean;
};
};
stacked?: boolean;
stacked?: boolean;
stackType?: "normal" | "100%";
stackType?: "normal" | "100%";
toolbar?: {
toolbar?: {
show?: boolean;
show?: boolean;
tools?: {
tools?: {
download?: boolean | string;
download?: boolean | string;
selection?: boolean | string;
selection?: boolean | string;
zoom?: boolean | string;
zoom?: boolean | string;
zoomin?: boolean | string;
zoomin?: boolean | string;
zoomout?: boolean | string;
zoomout?: boolean | string;
pan?: boolean | string;
pan?: boolean | string;
reset?: boolean | string;
reset?: boolean | string;
};
};