gradio/js/model3D/index.svelte
pngwn 1419538ea7
Refactor component directories (#5074)
* asd

* changes

* fix everything

* cleanup

* add changeset

* fix casing

* lockfile

* fix casing

* fix ci, enable linting

* fix test

* add changeset

* add changeset

* delete changeset

* fix dirs

* fix casing

* fix notebooks

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00

61 lines
1.2 KiB
Svelte

<script lang="ts">
import Static from "./static";
import Interactive from "./interactive";
import type { FileData } from "@gradio/upload";
import type { LoadingStatus } from "@gradio/statustracker/types";
export let elem_id = "";
export let elem_classes: string[] = [];
export let visible = true;
export let value: null | FileData = null;
export let mode: "static" | "dynamic";
export let root: string;
export let root_url: null | string;
export let clearColor: [number, number, number, number];
export let loading_status: LoadingStatus;
export let label: string;
export let show_label: boolean;
export let container = true;
export let scale: number | null = null;
export let min_width: number | undefined = undefined;
</script>
{#if mode === "static"}
<Static
{elem_id}
{elem_classes}
{visible}
bind:value
{root}
{root_url}
{clearColor}
{loading_status}
{label}
{show_label}
{container}
{scale}
{min_width}
on:change
on:clear
></Static>
{:else}
<Interactive
{elem_id}
{elem_classes}
{visible}
bind:value
{root}
{root_url}
{clearColor}
{loading_status}
{label}
{show_label}
{container}
{scale}
{min_width}
on:change
on:clear
></Interactive>
{/if}