import { Widget } from "@meursyphus/flitter"; import { Custom as CartesianChartCustom, Theme as CartesianChartTheme, Data as CartesianChartData, Scale } from "../../common/CartesianChart/types"; import { AreaConfig, AreaProps } from "./components/Area"; import { SeriesConfig } from "./components/Series"; import type { CustomConfig, CustomWidget } from "../../common/type"; export type Custom = CartesianChartCustom & { area: CustomArea; series: CustomSeries; }; type CustomSeries = CustomConfig | CustomWidget<{ Line: (props: AreaProps) => Widget; }, { scale: Scale; direction: "horizontal" | "vertical"; }>; type CustomArea = CustomConfig | CustomWidget<{}, { color: string; points: number[]; minPoint: number; maxPoint: number; }>; export type Theme = CartesianChartTheme; export type Data = CartesianChartData; export {};