fix: add tool registry entry and manifest for content-aware-crop

This commit is contained in:
SnapOtter
2026-05-11 21:23:47 +08:00
parent 32faee9578
commit 9763a10db4
3 changed files with 216 additions and 1 deletions
+6
View File
@@ -78,6 +78,11 @@ const ContentAwareResizeSettings = lazy(() =>
default: m.ContentAwareResizeSettings,
})),
);
const ContentAwareCropSettings = lazy(() =>
import("@/components/tools/content-aware-crop-settings").then((m) => ({
default: m.ContentAwareCropSettings,
})),
);
const CropSettings = lazy(() =>
import("@/components/tools/crop-settings").then((m) => ({ default: m.CropSettings })),
);
@@ -495,6 +500,7 @@ export const toolRegistry = new Map<string, ToolRegistryEntry>([
["restore-photo", { displayMode: "before-after", Settings: RestorePhotoSettings }],
["transparency-fixer", { displayMode: "before-after", Settings: TransparencyFixerSettings }],
["content-aware-resize", { displayMode: "side-by-side", Settings: ContentAwareResizeSettings }],
["content-aware-crop", { displayMode: "before-after", Settings: ContentAwareCropSettings }],
]);
export function getToolRegistryEntry(toolId: string): ToolRegistryEntry | undefined {