From 33f65d549a7b81af929978f0c5c6be1bc9c2f899 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 10 Mar 2026 04:18:17 +0000 Subject: [PATCH 1/2] feat: add blur tool to annotation editor Users can now select the Blur tool (button or keyboard shortcut B) to drag a rectangle over sensitive areas of a cropped screenshot before saving. The selected region is blurred using the canvas clip+filter technique, and blur regions support undo like other annotation types. https://claude.ai/code/session_01TbfSaMsdyScyRiY8m1xYrd --- js/annotation_editor.html | 27 +++++++++++++++++++++++ js/annotation_editor.js | 45 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 71 insertions(+), 1 deletion(-) diff --git a/js/annotation_editor.html b/js/annotation_editor.html index 27a8a15..8412d55 100644 --- a/js/annotation_editor.html +++ b/js/annotation_editor.html @@ -98,6 +98,10 @@ cursor: text; } + #annotation-canvas.tool-blur { + cursor: url('data:image/svg+xml;utf8,') 12 12, crosshair; + } + #text-input { position: absolute; display: none; @@ -182,6 +186,18 @@ background: #B91C1C; } + #blur-tool.active { + background: #4F46E5; + border-color: #4F46E5; + box-shadow: + 0 0 0 3px rgba(79, 70, 229, 0.3), + 0 4px 12px rgba(79, 70, 229, 0.4); + } + + #blur-tool.active:hover { + background: #4338CA; + } + .action-button { padding: 0 24px; height: 44px; @@ -341,6 +357,7 @@ A Arrow R Rectangle T Text + B Blur Ctrl+Z Undo Esc Cancel Ctrl+Enter Save @@ -372,6 +389,16 @@ +