* fix(editor): Enter/Esc only close the shape switch popup
Esc no longer also deselects, and Enter no longer enters text/line editing.
* feat(editor): pick the flowchart Alt+arrow target by a single distance score
Replace the in-line/linked/cone/past-edge tiers with one score per node
(forward + (k * sideways)² / forward), so the nearest node that looks next in
the pressed direction wins; links only break near-ties.
* feat(editor): Alt+arrows move to the flowchart node that's visually next
Alt+arrow navigation used to follow only the arrows bound to the pressed
side of the selected node, cycled through siblings on repeated presses,
and fell back to any linked node when nothing was that way.
It now picks, among the nodes of the selected node's flowchart, the
nearest node of the first non-empty tier:
1. nodes in line (sharing the row for left/right, the column for up/down)
2. linked nodes whose center lies past the selected node's edge
3. nodes whose center lies in the 45° cone of the pressed direction
4. any other node whose center lies past that edge
Near-ties (within 10%) go to linked nodes, successors first, then
reading order. Pressing the opposite of the last move goes back where it
came from, also after releasing Alt.
Claude Opus 5.5 (xhigh)
* docs(packages/excalidraw): changelog for visual flowchart navigation
Claude Opus 5.5 (xhigh)
* feat(editor): forget the way back when Alt is released
Going back where the last Alt+arrow move came from only applies while Alt
is still held; a new Alt session navigates from scratch.
Claude Opus 5.5 (xhigh)
* feat(editor): drop the Alt+arrow way back
Pressing the opposite of the last move no longer returns to the node it
came from. As an override it beat even nodes in line (B ← went back down
to A instead of to C in B's row); navigation is now stateless, so a key
from a given node always goes to the same place.
Claude Opus 5.5 (xhigh)
* feat(editor): link flowchart nodes through non-elbow arrows too
Any arrow bound at both ends now links its nodes, for Alt+arrow
navigation and for the nodes Ctrl+arrows keeps new nodes clear of.
Claude Opus 5.5 (xhigh)
* fix(editor): break flowchart navigation ties by alignment before reading order
Of two equally near in-line nodes, both linked, Alt+arrow went to the
upper one even when the other was level with the selected node's center.
Offsets within a pixel still tie, so float noise in fanned-out siblings
doesn't decide between them.
Claude Opus 5.5 (xhigh)
* perf(editor): walk flowchart links in one pass over the scene
Collecting a node's flowchart rescanned every arrow in the scene for each
node visited, so Alt+arrow and Ctrl+arrow in a large chart paid chart
nodes × all arrows (~10 ms per press at 1,000 nodes). A neighbour map
built in one pass makes it linear.
Claude Opus 5.5 (xhigh)
Closes#8518. Fixes the issue when adding a new child to a flowchart node that already has children (after the first creation session was committed), the new child could land on top of, or misaligned with, an existing sibling.
---------
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>