chore: import upstream snapshot with attribution
publish / version_or_publish (push) Has been cancelled
storybook-build / changes (push) Has been cancelled
storybook-build / :storybook-build (push) Has been cancelled
Sync Gradio Skills to Hugging Face / sync-skills (push) Has been cancelled
functional / changes (push) Has been cancelled
functional / build-frontend (push) Has been cancelled
functional / functional-test-SSR=false (push) Has been cancelled
functional / functional-reload (push) Has been cancelled
js / changes (push) Has been cancelled
js / js-test (push) Has been cancelled
docs-build / changes (push) Has been cancelled
docs-build / docs-build (push) Has been cancelled
docs-build / website-build (push) Has been cancelled
functional / functional-test-SSR=true (push) Has been cancelled
hygiene / hygiene-test (push) Has been cancelled
python / changes (push) Has been cancelled
python / build (push) Has been cancelled
python / test-ubuntu-latest-flaky (push) Has been cancelled
python / test-ubuntu-latest-not-flaky (push) Has been cancelled
python / test-windows-latest-flaky (push) Has been cancelled
python / test-windows-latest-not-flaky (push) Has been cancelled
publish / version_or_publish (push) Has been cancelled
storybook-build / changes (push) Has been cancelled
storybook-build / :storybook-build (push) Has been cancelled
Sync Gradio Skills to Hugging Face / sync-skills (push) Has been cancelled
functional / changes (push) Has been cancelled
functional / build-frontend (push) Has been cancelled
functional / functional-test-SSR=false (push) Has been cancelled
functional / functional-reload (push) Has been cancelled
js / changes (push) Has been cancelled
js / js-test (push) Has been cancelled
docs-build / changes (push) Has been cancelled
docs-build / docs-build (push) Has been cancelled
docs-build / website-build (push) Has been cancelled
functional / functional-test-SSR=true (push) Has been cancelled
hygiene / hygiene-test (push) Has been cancelled
python / changes (push) Has been cancelled
python / build (push) Has been cancelled
python / test-ubuntu-latest-flaky (push) Has been cancelled
python / test-ubuntu-latest-not-flaky (push) Has been cancelled
python / test-windows-latest-flaky (push) Has been cancelled
python / test-windows-latest-not-flaky (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
import type { Gradio, SelectData, CustomButton } from "@gradio/utils";
|
||||
import type { ILoadingStatus as LoadingStatus } from "@gradio/statustracker";
|
||||
|
||||
export interface PlotData {
|
||||
columns: string[];
|
||||
data: (string | number)[][];
|
||||
datatypes: Record<string, "quantitative" | "temporal" | "nominal">;
|
||||
mark: "line" | "point" | "bar";
|
||||
}
|
||||
|
||||
export interface NativePlotProps {
|
||||
value: PlotData | null;
|
||||
x: string;
|
||||
y: string;
|
||||
color: string | null;
|
||||
title: string | null;
|
||||
x_title: string | null;
|
||||
y_title: string | null;
|
||||
color_title: string | null;
|
||||
x_bin: string | number | null;
|
||||
y_aggregate: "sum" | "mean" | "median" | "min" | "max" | undefined;
|
||||
color_map: Record<string, string> | null;
|
||||
colors_in_legend: string[] | null;
|
||||
x_lim: [number | null, number | null] | null;
|
||||
y_lim: [number | null, number | null] | null;
|
||||
x_label_angle: number | null;
|
||||
y_label_angle: number | null;
|
||||
x_axis_format: string | null;
|
||||
y_axis_format: string | null;
|
||||
x_axis_labels_visible: boolean;
|
||||
caption: string | null;
|
||||
sort: "x" | "y" | "-x" | "-y" | string[] | null;
|
||||
tooltip: "axis" | "none" | "all" | string[];
|
||||
buttons: (string | CustomButton)[] | null;
|
||||
_selectable: boolean;
|
||||
label: string;
|
||||
elem_id: string;
|
||||
elem_classes: string[];
|
||||
visible: boolean | "hidden";
|
||||
show_label: boolean;
|
||||
scale: number | null;
|
||||
min_width: number | undefined;
|
||||
loading_status: LoadingStatus | undefined;
|
||||
height: number | undefined;
|
||||
}
|
||||
|
||||
export interface NativePlotEvents {
|
||||
change: never;
|
||||
select: SelectData;
|
||||
double_click: undefined;
|
||||
clear_status: LoadingStatus;
|
||||
custom_button_click: { id: number };
|
||||
}
|
||||
Reference in New Issue
Block a user