about summary refs log tree commit diff stats
path: root/js/leibovitz/blur.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/leibovitz/blur.js')
-rw-r--r--js/leibovitz/blur.js27
1 files changed, 23 insertions, 4 deletions
diff --git a/js/leibovitz/blur.js b/js/leibovitz/blur.js
index 27fa480..001246b 100644
--- a/js/leibovitz/blur.js
+++ b/js/leibovitz/blur.js
@@ -1,8 +1,27 @@
 /**
- * Blur management module implementing optimized box blur
- * Uses the Observer pattern for state management and effect application
- * Implements two-pass box blur algorithm with boundary detection
- * Uses content-aware optimization for performance
+ * @fileoverview Blur management module implementing optimized box blur algorithm.
+ * 
+ * @description
+ * Implements a two-pass box blur algorithm with boundary optimization.
+ * Uses block-based processing for improved performance on large images.
+ * 
+ * @architecture
+ * Implements the following design patterns:
+ * - Observer Pattern: For state management and effect application
+ * - Factory Pattern: For UI initialization
+ * - Strategy Pattern: For blur algorithm implementation
+ * - Command Pattern: For state reset operations
+ * 
+ * @algorithm
+ * The blur implementation uses a two-pass approach:
+ * 1. Horizontal pass: Applies blur along rows
+ * 2. Vertical pass: Applies blur along columns
+ * 
+ * Features:
+ * - Boundary optimization for performance
+ * - Block-based processing
+ * - Two-pass implementation for better performance
+ * - Edge clamping to prevent artifacts
  */
 
 const BlurManager = {