♻️ refactor!: massive refactor

This commit is contained in:
2026-05-31 03:04:30 +07:00
parent c1f12c7201
commit df3c944547
86 changed files with 3691 additions and 1129 deletions
+3 -7
View File
@@ -26,8 +26,8 @@ export type FacePreview = {
type SelectedImageLayer = {
id: string;
sourceUri: string;
width?: number;
height?: number;
width: number;
height: number;
};
type UseFaceDetectionOptions = {
@@ -37,11 +37,7 @@ type UseFaceDetectionOptions = {
};
export function useFaceDetection(options: UseFaceDetectionOptions) {
const {
tool,
selectedImageLayer,
activeLayerStillSelected,
} = options;
const { tool, selectedImageLayer, activeLayerStillSelected } = options;
const selectedImageLayerId = selectedImageLayer?.id ?? null;
const selectedImageSourceUri = selectedImageLayer?.sourceUri ?? null;
const selectedImageWidth = selectedImageLayer?.width;