Merge fix/131-content-aware-resize-registry: add frontend registry for content-aware resize

fix: add frontend registry entry for content-aware resize tool

Closes #131
This commit is contained in:
SnapOtter
2026-05-07 09:44:14 +08:00
4 changed files with 297 additions and 0 deletions
+6
View File
@@ -72,6 +72,11 @@ export interface ToolRegistryEntry {
const ResizeSettings = lazy(() =>
import("@/components/tools/resize-settings").then((m) => ({ default: m.ResizeSettings })),
);
const ContentAwareResizeSettings = lazy(() =>
import("@/components/tools/content-aware-resize-settings").then((m) => ({
default: m.ContentAwareResizeSettings,
})),
);
const CropSettings = lazy(() =>
import("@/components/tools/crop-settings").then((m) => ({ default: m.CropSettings })),
);
@@ -457,6 +462,7 @@ export const toolRegistry = new Map<string, ToolRegistryEntry>([
["red-eye-removal", { displayMode: "before-after", Settings: RedEyeRemovalSettings }],
["restore-photo", { displayMode: "before-after", Settings: RestorePhotoSettings }],
["transparency-fixer", { displayMode: "before-after", Settings: TransparencyFixerSettings }],
["content-aware-resize", { displayMode: "side-by-side", Settings: ContentAwareResizeSettings }],
]);
export function getToolRegistryEntry(toolId: string): ToolRegistryEntry | undefined {