Add blend area effect for layers with distance field mask

Introduces a 'blendArea' property to layers and UI controls for adjusting it. Implements distance field mask generation in ImageAnalysis.ts and applies the mask during layer rendering for smooth edge blending. Refactors CanvasRenderer to delegate layer drawing to CanvasLayers for proper blend area support.
This commit is contained in:
Dariusz L
2025-07-24 23:34:27 +02:00
parent 58720a8eca
commit 764e802311
7 changed files with 715 additions and 63 deletions

View File

@@ -20,6 +20,7 @@ export interface Layer {
mask?: Float32Array;
flipH?: boolean;
flipV?: boolean;
blendArea?: number;
}
export interface ComfyNode {