Add Canva-style Brush Select tool with SAM AI

- New tool: Paint/brush over objects to select them
- AI (SAM) detects actual object boundaries from brush strokes
- Collects sample points along brush path, sends to SAM
- Combines multiple masks for multi-object selection
- Shift+brush to add to existing selection
- Full cut/copy/delete support with mask-shaped results
- Visual feedback: brush stroke preview, sample points, marching ants
This commit is contained in:
Claude
2026-01-27 04:22:44 +00:00
parent d2f7b69dc7
commit a9a2b7bf04
4 changed files with 789 additions and 1 deletions
+1
View File
@@ -322,6 +322,7 @@ IMPORTANT: any new icon should also must be added on /service-worker.js + its ve
.sidebar_left .bulge_pinch:after{ background-image: url('images/icons/bulge_pinch.svg'); }
.sidebar_left .animation:after{ background-image: url('images/icons/animation.svg'); }
.sidebar_left .smart_select:after{ background-image: url('images/icons/smart_select.svg'); }
.sidebar_left .brush_select:after{ background-image: url('images/icons/brush_select.svg'); }
.sidebar_left .ai_inpaint:after{ background-image: url('images/icons/ai_inpaint.svg'); }
.sidebar_left .magic_wand:after{ background-image: url('images/icons/magic_wand.svg'); }
.sidebar_left .lasso:after{ background-image: url('images/icons/lasso.svg'); }