From 0cb028c3f11157f2e9c23456ff70aa8ae4c32263 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 1 Jun 2026 21:46:45 -0400 Subject: [PATCH] pen tool: side-panel "Path actions" block for anchor + path ops MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A new "Path actions" block appears in the right-side tool options panel whenever Pen (P) or Direct Selection (A) is active and an editable pen layer is selected. The block surfaces the most useful anchor- / path- level operations as buttons so they're discoverable without keyboard shortcuts: - Pointed corner / Curved smooth — flip the selected anchors (or all, if none are selected) between handle-less corner and symmetric-handle smooth, matching the Alt-click convert behavior. - Delete anchor — bulk-delete the current anchor selection (Backspace equivalent). - Average — move selected anchors to their centroid (Cmd+Alt+J). - Join endpoints — close an open path when both its endpoints are selected (Cmd+J); button auto-disables otherwise. - Close / Open path — toggle the path's closed flag. - Reverse direction — flip the order anchors are drawn in. A small hint at the top of the block reflects the current selection size, so the user knows what an action will affect. The "Join" button auto-disables when join would be a no-op; "Average" requires at least two anchors. Direct Selection also gets a short panel reminding the user how anchor editing works (multi-select via Shift / marquee, arrow keys nudge selected anchors). --- src/index.html | 153 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 151 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index e42823d..d403db9 100644 --- a/src/index.html +++ b/src/index.html @@ -4074,6 +4074,29 @@ + +