@gradio/model3d 0.16.1 → 0.16.3
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
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @gradio/model3d
|
|
2
2
|
|
|
3
|
+
## 0.16.3
|
|
4
|
+
|
|
5
|
+
### Dependency updates
|
|
6
|
+
|
|
7
|
+
- @gradio/atoms@0.21.0
|
|
8
|
+
- @gradio/client@2.0.4
|
|
9
|
+
- @gradio/statustracker@0.12.3
|
|
10
|
+
- @gradio/upload@0.17.5
|
|
11
|
+
|
|
12
|
+
## 0.16.2
|
|
13
|
+
|
|
14
|
+
### Fixes
|
|
15
|
+
|
|
16
|
+
- [#12800](https://github.com/gradio-app/gradio/pull/12800) [`7a1c321`](https://github.com/gradio-app/gradio/commit/7a1c321b6546ba05a353488f5133e8262c4a8a39) - Bump svelte/kit for security reasons. Thanks @freddyaboulton!
|
|
17
|
+
- [#12779](https://github.com/gradio-app/gradio/pull/12779) [`ea2d3e9`](https://github.com/gradio-app/gradio/commit/ea2d3e985a8b42d188e551f517c5825c00790628) - Migrate Audio + Upload + Atoms to Svelte 5. Thanks @dawoodkhan82!
|
|
18
|
+
|
|
19
|
+
### Dependency updates
|
|
20
|
+
|
|
21
|
+
- @gradio/statustracker@0.12.2
|
|
22
|
+
- @gradio/atoms@0.20.1
|
|
23
|
+
- @gradio/utils@0.11.2
|
|
24
|
+
- @gradio/icons@0.15.1
|
|
25
|
+
- @gradio/upload@0.17.4
|
|
26
|
+
- @gradio/client@2.0.3
|
|
27
|
+
|
|
3
28
|
## 0.16.1
|
|
4
29
|
|
|
5
30
|
### Fixes
|
|
@@ -86,9 +86,7 @@
|
|
|
86
86
|
ondrag?.(dragging);
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
async function handle_upload({
|
|
90
|
-
detail
|
|
91
|
-
}: CustomEvent<FileData>): Promise<void> {
|
|
89
|
+
async function handle_upload(detail: FileData): Promise<void> {
|
|
92
90
|
value = detail;
|
|
93
91
|
await tick();
|
|
94
92
|
onchange?.(value);
|
|
@@ -106,8 +104,8 @@
|
|
|
106
104
|
canvas3d?.reset_camera_position();
|
|
107
105
|
}
|
|
108
106
|
|
|
109
|
-
function handle_error(
|
|
110
|
-
onerror?.(
|
|
107
|
+
function handle_error(error: string): void {
|
|
108
|
+
onerror?.(error);
|
|
111
109
|
}
|
|
112
110
|
</script>
|
|
113
111
|
|
|
@@ -118,13 +116,13 @@
|
|
|
118
116
|
bind:upload_promise
|
|
119
117
|
{upload}
|
|
120
118
|
{stream_handler}
|
|
121
|
-
|
|
119
|
+
onload={handle_upload}
|
|
122
120
|
{root}
|
|
123
121
|
{max_file_size}
|
|
124
122
|
filetype={[".stl", ".obj", ".gltf", ".glb", "model/obj", ".splat", ".ply"]}
|
|
125
123
|
bind:dragging
|
|
126
124
|
bind:uploading
|
|
127
|
-
|
|
125
|
+
onerror={handle_error}
|
|
128
126
|
aria_label={i18n("model3d.drop_to_upload")}
|
|
129
127
|
>
|
|
130
128
|
<slot />
|
|
@@ -133,9 +131,9 @@
|
|
|
133
131
|
<div class="input-model">
|
|
134
132
|
<ModifyUpload
|
|
135
133
|
undoable={!use_3dgs}
|
|
136
|
-
|
|
134
|
+
onclear={handle_clear}
|
|
137
135
|
{i18n}
|
|
138
|
-
|
|
136
|
+
onundo={handle_undo}
|
|
139
137
|
/>
|
|
140
138
|
|
|
141
139
|
{#if use_3dgs}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/model3d",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"@types/babylon": "^6.16.9",
|
|
14
14
|
"dequal": "^2.0.3",
|
|
15
15
|
"gsplat": "^1.2.9",
|
|
16
|
-
"@gradio/
|
|
17
|
-
"@gradio/
|
|
18
|
-
"@gradio/
|
|
19
|
-
"@gradio/
|
|
20
|
-
"@gradio/upload": "^0.17.
|
|
21
|
-
"@gradio/utils": "^0.11.
|
|
16
|
+
"@gradio/statustracker": "^0.12.3",
|
|
17
|
+
"@gradio/icons": "^0.15.1",
|
|
18
|
+
"@gradio/client": "^2.0.4",
|
|
19
|
+
"@gradio/atoms": "^0.21.0",
|
|
20
|
+
"@gradio/upload": "^0.17.5",
|
|
21
|
+
"@gradio/utils": "^0.11.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@gradio/preview": "^0.15.
|
|
24
|
+
"@gradio/preview": "^0.15.2"
|
|
25
25
|
},
|
|
26
26
|
"main_changeset": true,
|
|
27
27
|
"main": "./Index.svelte",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"./package.json": "./package.json"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"svelte": "^5.
|
|
47
|
+
"svelte": "^5.48.0"
|
|
48
48
|
},
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
@@ -86,9 +86,7 @@
|
|
|
86
86
|
ondrag?.(dragging);
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
async function handle_upload({
|
|
90
|
-
detail
|
|
91
|
-
}: CustomEvent<FileData>): Promise<void> {
|
|
89
|
+
async function handle_upload(detail: FileData): Promise<void> {
|
|
92
90
|
value = detail;
|
|
93
91
|
await tick();
|
|
94
92
|
onchange?.(value);
|
|
@@ -106,8 +104,8 @@
|
|
|
106
104
|
canvas3d?.reset_camera_position();
|
|
107
105
|
}
|
|
108
106
|
|
|
109
|
-
function handle_error(
|
|
110
|
-
onerror?.(
|
|
107
|
+
function handle_error(error: string): void {
|
|
108
|
+
onerror?.(error);
|
|
111
109
|
}
|
|
112
110
|
</script>
|
|
113
111
|
|
|
@@ -118,13 +116,13 @@
|
|
|
118
116
|
bind:upload_promise
|
|
119
117
|
{upload}
|
|
120
118
|
{stream_handler}
|
|
121
|
-
|
|
119
|
+
onload={handle_upload}
|
|
122
120
|
{root}
|
|
123
121
|
{max_file_size}
|
|
124
122
|
filetype={[".stl", ".obj", ".gltf", ".glb", "model/obj", ".splat", ".ply"]}
|
|
125
123
|
bind:dragging
|
|
126
124
|
bind:uploading
|
|
127
|
-
|
|
125
|
+
onerror={handle_error}
|
|
128
126
|
aria_label={i18n("model3d.drop_to_upload")}
|
|
129
127
|
>
|
|
130
128
|
<slot />
|
|
@@ -133,9 +131,9 @@
|
|
|
133
131
|
<div class="input-model">
|
|
134
132
|
<ModifyUpload
|
|
135
133
|
undoable={!use_3dgs}
|
|
136
|
-
|
|
134
|
+
onclear={handle_clear}
|
|
137
135
|
{i18n}
|
|
138
|
-
|
|
136
|
+
onundo={handle_undo}
|
|
139
137
|
/>
|
|
140
138
|
|
|
141
139
|
{#if use_3dgs}
|