import { Widget } from "@meursyphus/flitter"; import { Custom as CartesianChartCustom, Scale } from "../../common/CartesianChart/types"; import { LineConfig, LineProps } from "./components/Line"; import { SeriesConfig } from "./components/Series"; import type { CustomConfig, CustomWidget } from "../../common/type"; export type Custom = CartesianChartCustom & { line: CustomLine; series: CustomSeries; }; type CustomSeries = CustomConfig | CustomWidget<{ Line: (props: LineProps) => Widget; }, { scale: Scale; direction: "horizontal" | "vertical"; }>; type CustomLine = CustomConfig | CustomWidget<{}, { color: string; points: number[]; minPoint: number; maxPoint: number; }>; export {};