mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-25 14:25:44 -03:00
Refactor MaskTool with utility methods and deduplication
Introduces utility methods to eliminate code duplication in chunk operations, mask creation, and shape processing. Adds universal chunk processing, chunk operation, and canvas helper methods. Refactors shape mask application and removal to use unified logic, and consolidates morphological and feathering operations for masks. Improves maintainability and readability by centralizing repeated logic.
This commit is contained in:
812
js/MaskTool.js
812
js/MaskTool.js
File diff suppressed because it is too large
Load Diff
913
src/MaskTool.ts
913
src/MaskTool.ts
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user