Commit Graph
12 Commits
Author SHA1 Message Date
Dariusz L c1ec26644d refactor: share mask result application 2026-08-13 08:20:35 +02:00
Dariusz L 1dd3fe42c0 refactor: share batch and mask editor helpers 2026-08-13 07:39:03 +02:00
Dariusz L 58ae68b8e1 refactor: centralize canvas blob variant dispatch 2026-08-13 05:24:43 +02:00
Dariusz L b7785b6bc3 refactor: share mask result conversion 2026-08-13 04:32:30 +02:00
Dariusz L dc1bde6231 refactor: use canonical logging imports 2026-08-13 01:16:42 +02:00
Dariusz L afdac52144 Added mask and image input 2025-08-08 22:23:15 +02:00
Dariusz L 7fc49d72f5 Update MaskEditorIntegration.js 2025-07-27 21:11:06 +02:00
Dariusz L 64ee2c6abb createElement to createCanvas 2025-07-27 20:02:45 +02:00
Dariusz L f36f91487f Replace alert with notification utilities and refactor canvas creation
Replaces all uses of alert() with showErrorNotification or showSuccessNotification for improved user experience and consistency. Refactors canvas creation to use the createCanvas utility function across multiple files, reducing code duplication and improving maintainability. Also updates layer ID generation to use generateUUID.
2025-07-27 19:12:25 +02:00
Dariusz L 207bacc1f8 Refactor image and mask utility functions
Moved convertToImage, createMaskFromImageSrc, and canvasToMaskImage from MaskProcessingUtils and mask_utils to ImageUtils for better modularity and reuse. Updated imports in dependent modules to use the new locations. Removed duplicate implementations from mask_utils and MaskProcessingUtils.
2025-07-27 18:47:41 +02:00
Dariusz L 7e71d3ec3e Refactor image, mask, and notification logic into utils
Extracted image upload, mask processing, notification, and preview update logic into dedicated utility modules. Updated MaskEditorIntegration and SAMDetectorIntegration to use these new utilities, reducing code duplication and improving maintainability.
2025-07-27 18:19:35 +02:00
Dariusz L 4019a8a88f Rename CanvasMask to MaskEditorIntegration
Renamed the CanvasMask class and file to MaskEditorIntegration for improved clarity and consistency. Updated all references in Canvas and SAMDetectorIntegration to use the new name.
2025-07-27 17:39:13 +02:00