UNPKG

@teaui/core

Version:

A high-level terminal UI library for Node

26 lines (25 loc) 818 B
import type { Viewport } from '../Viewport.js'; import type { Props as ViewProps } from '../View.js'; import { View } from '../View.js'; import { Size } from '../geometry.js'; import { Chart } from './charts/Chart.js'; interface Props extends ViewProps { /** Title displayed above the chart */ title?: string; /** Show x-axis tick labels (default true) */ xAxisLabels?: boolean; /** Show y-axis tick labels (default true) */ yAxisLabels?: boolean; /** Show border/axes lines (default true) */ showAxes?: boolean; } export declare class Plot extends View { #private; constructor(props?: Props); update(props: Props): void; add(chart: Chart): void; remove(chart: Chart): void; naturalSize(available: Size): Size; render(viewport: Viewport): void; } export {};