@gradio/model3d 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/Index.svelte +3 -7
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# @gradio/model3d
|
2
2
|
|
3
|
+
## 0.7.0
|
4
|
+
|
5
|
+
### Features
|
6
|
+
|
7
|
+
- [#7183](https://github.com/gradio-app/gradio/pull/7183) [`49d9c48`](https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6) - [WIP] Refactor file normalization to be in the backend and remove it from the frontend of each component. Thanks [@abidlabs](https://github.com/abidlabs)!
|
8
|
+
|
3
9
|
## 0.6.0
|
4
10
|
|
5
11
|
### Features
|
package/Index.svelte
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
</script>
|
6
6
|
|
7
7
|
<script lang="ts">
|
8
|
-
import {
|
8
|
+
import type { FileData } from "@gradio/client";
|
9
9
|
import Model3D from "./shared/Model3D.svelte";
|
10
10
|
import Model3DUpload from "./shared/Model3DUpload.svelte";
|
11
11
|
import { BlockLabel, Block, Empty, UploadText } from "@gradio/atoms";
|
@@ -20,7 +20,6 @@
|
|
20
20
|
export let visible = true;
|
21
21
|
export let value: null | FileData = null;
|
22
22
|
export let root: string;
|
23
|
-
export let proxy_url: null | string;
|
24
23
|
export let clear_color: [number, number, number, number];
|
25
24
|
export let loading_status: LoadingStatus;
|
26
25
|
export let label: string;
|
@@ -40,9 +39,6 @@
|
|
40
39
|
];
|
41
40
|
export let interactive: boolean;
|
42
41
|
|
43
|
-
let _value: null | FileData;
|
44
|
-
$: _value = normalise_file(value, root, proxy_url);
|
45
|
-
|
46
42
|
let dragging = false;
|
47
43
|
</script>
|
48
44
|
|
@@ -67,7 +63,7 @@
|
|
67
63
|
|
68
64
|
{#if value}
|
69
65
|
<Model3D
|
70
|
-
value
|
66
|
+
{value}
|
71
67
|
i18n={gradio.i18n}
|
72
68
|
{clear_color}
|
73
69
|
{label}
|
@@ -108,7 +104,7 @@
|
|
108
104
|
{show_label}
|
109
105
|
{root}
|
110
106
|
{clear_color}
|
111
|
-
value
|
107
|
+
{value}
|
112
108
|
{camera_position}
|
113
109
|
{zoom_speed}
|
114
110
|
on:change={({ detail }) => (value = detail)}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/model3d",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.7.0",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"author": "",
|
@@ -11,12 +11,12 @@
|
|
11
11
|
"babylonjs": "^4.2.1",
|
12
12
|
"babylonjs-loaders": "^4.2.1",
|
13
13
|
"dequal": "^2.0.2",
|
14
|
+
"@gradio/client": "^0.12.0",
|
14
15
|
"@gradio/atoms": "^0.5.1",
|
15
|
-
"@gradio/client": "^0.11.0",
|
16
16
|
"@gradio/icons": "^0.3.2",
|
17
|
-
"@gradio/
|
18
|
-
"@gradio/upload": "^0.7.1",
|
17
|
+
"@gradio/upload": "^0.7.2",
|
19
18
|
"@gradio/utils": "^0.2.2",
|
19
|
+
"@gradio/statustracker": "^0.4.5",
|
20
20
|
"@gradio/wasm": "^0.6.0"
|
21
21
|
},
|
22
22
|
"main_changeset": true,
|