mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-22 15:34:29 +01:00
Add upload and share functionality and minor improvements
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {Buffer, Document, Scene, type Transform, WebIO} from "@gltf-transform/core";
|
||||
import {mergeDocuments, unpartition} from "@gltf-transform/functions";
|
||||
import {retrieveFile} from "../tools/upload-file.ts";
|
||||
|
||||
let io = new WebIO();
|
||||
export let extrasNameKey = "__yacv_name";
|
||||
@@ -140,7 +141,7 @@ async function fetchOrRead(url: string | Blob) {
|
||||
});
|
||||
} else {
|
||||
// Fetch the URL
|
||||
return fetch(url);
|
||||
return retrieveFile(url);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user