重构成功

This commit is contained in:
yinsx
2025-12-22 15:01:10 +08:00
parent 1df41ac4ab
commit 1de2ac8491
25 changed files with 349 additions and 377 deletions

View File

@ -1,5 +1,7 @@
import { listAllModelFiles } from "../../utils/gltf.js";
export const title = "模型压缩工具";
const transformOptions = [
{ value: "dedup", label: "dedup去重", hint: "删除重复的访问器、材质、网格" },
{ value: "prune", label: "prune清理无用节点", hint: "移除未被引用的节点、材质、动画" },
@ -27,7 +29,7 @@ const outputOptions = [
{ value: "copy", label: "输出副本 (_compressed)", hint: "保留原文件不动,结果写入新文件" }
];
export function getSteps() {
export const getSteps = () => {
const files = listAllModelFiles();
const fileStep = {
name: "模型选择",
@ -68,4 +70,4 @@ export function getSteps() {
default: ["overwrite", "backup"]
}
];
}
};