mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
04b7d327ec
* allow dragging image over current image value in imageeditor * add changeset * add drag to image * add changeset * type fixes * tweak * tweak * add test * add changeset * revert image editor changes (i.e. give up) * add changeset * add changeset * tweak * Ensure drag and drop functionality works in Multimodal textbox (#9125) * allow uploading files via drag * wrap tweak * * fix input * improve a11y * fix thumbnail scrolling * tweak * add changeset * add changeset --------- Co-authored-by: pngwn <hello@pngwn.io> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
---|---|---|
.. | ||
shared | ||
CHANGELOG.md | ||
Example.svelte | ||
Image.stories.svelte | ||
Image.test.ts | ||
ImageExample.stories.svelte | ||
Index.svelte | ||
package.json | ||
README.md |
@gradio/image
<script>
import { BaseImageUploader, BaseStaticImage, Webcam, BaseExample } from "@gradio/image";
</script>
BaseImageUploader
export let sources: ("clipboard" | "webcam" | "upload")[] = [
"upload",
"clipboard",
"webcam"
];
export let streaming = false;
export let pending = false;
export let mirror_webcam: boolean;
export let selectable = false;
export let root: string;
export let i18n: I18nFormatter;
BaseStaticImage
export let value: null | FileData;
export let label: string | undefined = undefined;
export let show_label: boolean;
export let show_download_button = true;
export let selectable = false;
export let show_share_button = false;
export let root: string;
export let i18n: I18nFormatter;
Webcam
export let streaming = false;
export let pending = false;
export let mode: "image" | "video" = "image";
export let mirror_webcam: boolean;
export let include_audio: boolean;
export let i18n: I18nFormatter;
BaseExample
export let value: string;
export let samples_dir: string;
export let type: "gallery" | "table";
export let selected = false;