d3-stencil
Version:
Charts built with D3 and Stencil. Framework-agnostic, simple.
140 lines (139 loc) • 5.09 kB
TypeScript
/* eslint-disable */
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
import { GraphData, LegendData, } from "@interfaces/index";
import { BcgMatrix, } from "@interfaces/data-types";
export namespace Components {
interface BcgMatrixChart {
"graphData": GraphData<BcgMatrix[]>;
}
interface HorizontalBarChart {
"graphData": GraphData<number[]>;
}
interface LegendChart {
"callOnClick": (callOnClickChild: (data: {
label: string;
index: number;
}) => any) => Promise<any>;
"legendData": LegendData;
}
interface LineAnnotationsChart {
"graphData": GraphData;
}
interface LineChart {
"graphData": GraphData;
}
interface PieChart {
"graphData": GraphData<number[]>;
}
interface TooltipChart {
"align": string;
"hide": () => Promise<any>;
"show": (message: string, positions: number[]) => Promise<any>;
"tooltip": (tooltip: any) => Promise<any>;
}
}
declare global {
interface HTMLBcgMatrixChartElement extends Components.BcgMatrixChart, HTMLStencilElement {
}
var HTMLBcgMatrixChartElement: {
prototype: HTMLBcgMatrixChartElement;
new (): HTMLBcgMatrixChartElement;
};
interface HTMLHorizontalBarChartElement extends Components.HorizontalBarChart, HTMLStencilElement {
}
var HTMLHorizontalBarChartElement: {
prototype: HTMLHorizontalBarChartElement;
new (): HTMLHorizontalBarChartElement;
};
interface HTMLLegendChartElement extends Components.LegendChart, HTMLStencilElement {
}
var HTMLLegendChartElement: {
prototype: HTMLLegendChartElement;
new (): HTMLLegendChartElement;
};
interface HTMLLineAnnotationsChartElement extends Components.LineAnnotationsChart, HTMLStencilElement {
}
var HTMLLineAnnotationsChartElement: {
prototype: HTMLLineAnnotationsChartElement;
new (): HTMLLineAnnotationsChartElement;
};
interface HTMLLineChartElement extends Components.LineChart, HTMLStencilElement {
}
var HTMLLineChartElement: {
prototype: HTMLLineChartElement;
new (): HTMLLineChartElement;
};
interface HTMLPieChartElement extends Components.PieChart, HTMLStencilElement {
}
var HTMLPieChartElement: {
prototype: HTMLPieChartElement;
new (): HTMLPieChartElement;
};
interface HTMLTooltipChartElement extends Components.TooltipChart, HTMLStencilElement {
}
var HTMLTooltipChartElement: {
prototype: HTMLTooltipChartElement;
new (): HTMLTooltipChartElement;
};
interface HTMLElementTagNameMap {
"bcg-matrix-chart": HTMLBcgMatrixChartElement;
"horizontal-bar-chart": HTMLHorizontalBarChartElement;
"legend-chart": HTMLLegendChartElement;
"line-annotations-chart": HTMLLineAnnotationsChartElement;
"line-chart": HTMLLineChartElement;
"pie-chart": HTMLPieChartElement;
"tooltip-chart": HTMLTooltipChartElement;
}
}
declare namespace LocalJSX {
interface BcgMatrixChart {
"graphData"?: GraphData<BcgMatrix[]>;
}
interface HorizontalBarChart {
"graphData"?: GraphData<number[]>;
}
interface LegendChart {
"legendData"?: LegendData;
}
interface LineAnnotationsChart {
"graphData"?: GraphData;
}
interface LineChart {
"graphData"?: GraphData;
"onLineChartRendered"?: (event: CustomEvent<any>) => void;
}
interface PieChart {
"graphData"?: GraphData<number[]>;
}
interface TooltipChart {
"align"?: string;
}
interface IntrinsicElements {
"bcg-matrix-chart": BcgMatrixChart;
"horizontal-bar-chart": HorizontalBarChart;
"legend-chart": LegendChart;
"line-annotations-chart": LineAnnotationsChart;
"line-chart": LineChart;
"pie-chart": PieChart;
"tooltip-chart": TooltipChart;
}
}
export { LocalJSX as JSX };
declare module "@stencil/core" {
export namespace JSX {
interface IntrinsicElements {
"bcg-matrix-chart": LocalJSX.BcgMatrixChart & JSXBase.HTMLAttributes<HTMLBcgMatrixChartElement>;
"horizontal-bar-chart": LocalJSX.HorizontalBarChart & JSXBase.HTMLAttributes<HTMLHorizontalBarChartElement>;
"legend-chart": LocalJSX.LegendChart & JSXBase.HTMLAttributes<HTMLLegendChartElement>;
"line-annotations-chart": LocalJSX.LineAnnotationsChart & JSXBase.HTMLAttributes<HTMLLineAnnotationsChartElement>;
"line-chart": LocalJSX.LineChart & JSXBase.HTMLAttributes<HTMLLineChartElement>;
"pie-chart": LocalJSX.PieChart & JSXBase.HTMLAttributes<HTMLPieChartElement>;
"tooltip-chart": LocalJSX.TooltipChart & JSXBase.HTMLAttributes<HTMLTooltipChartElement>;
}
}
}