mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: add tool registry entry and manifest for content-aware-crop
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user