feat: register transparency-fixer in frontend tool registry

This commit is contained in:
SnapOtter
2026-05-05 23:09:15 +08:00
parent 06d6c0ef1e
commit 52f355ef8f
+6
View File
@@ -298,6 +298,11 @@ const RestorePhotoSettings = lazy(() =>
default: m.RestorePhotoSettings, default: m.RestorePhotoSettings,
})), })),
); );
const TransparencyFixerSettings = lazy(() =>
import("@/components/tools/transparency-fixer-settings").then((m) => ({
default: m.TransparencyFixerSettings,
})),
);
// ── Color tool wrapper ───────────────────────────────────────────── // ── Color tool wrapper ─────────────────────────────────────────────
// Color tools share a single component but differ by toolId. // Color tools share a single component but differ by toolId.
@@ -451,6 +456,7 @@ export const toolRegistry = new Map<string, ToolRegistryEntry>([
], ],
["red-eye-removal", { displayMode: "before-after", Settings: RedEyeRemovalSettings }], ["red-eye-removal", { displayMode: "before-after", Settings: RedEyeRemovalSettings }],
["restore-photo", { displayMode: "before-after", Settings: RestorePhotoSettings }], ["restore-photo", { displayMode: "before-after", Settings: RestorePhotoSettings }],
["transparency-fixer", { displayMode: "before-after", Settings: TransparencyFixerSettings }],
]); ]);
export function getToolRegistryEntry(toolId: string): ToolRegistryEntry | undefined { export function getToolRegistryEntry(toolId: string): ToolRegistryEntry | undefined {