Sketch: hold horizontal/vertical and line up with other points at once while drawing (#7828) (#8474)

* claim: #7828

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Sketch: hold horizontal/vertical and line up with other points at once while drawing (#7828)

While drawing, the pointer lines up horizontally with the nearest sketch
point level with it and vertically with the nearest one plumb with it, at
the same time, as a dragged point already does; holding H/V with the
previous point still lines up across with another point. Dotted guides run
from the points lined up with (H, V or H+V), and the click adds a
Horizontal or Vertical constraint with each, in the shape's undo step,
unless the sketch already has it.

A click takes the tool out of the app while it runs, so refine_snap
treated every tool as the Line tool then: a rectangle's click could take a
line-extension inference its hover never showed. The tool's points and
kind are kept from the last hover, as the previous point was.

Preferences > Sketch > "Line up with other sketch points while drawing"
(sketch_align_points) turns it off for the old behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Sketch: lining up with other points is off unless turned on

Review on #8474: sketch_align_points defaults to off, so nothing changes for anyone who
doesn't turn it on. With it off, a click also treats the tool as before (the Line tool's
inferences), instead of keeping the tool's kind from the hover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ryan
2026-10-29 17:11:42 +00:00
committed by GitHub
parent 6255a10e80
commit 791abbd9b1
7 changed files with 303 additions and 14 deletions
+11
View File
@@ -199,6 +199,17 @@ to prefer a line midpoint instead; hold Ctrl/Cmd or Alt/Option (the default supp
to stop snapping for that gesture. Scripts pass `"x:<curve>+<curve>:x,y"` as a point
argument, the same way `"mid:<line>"` and `"on:<curve>:x,y"` work.
With Preferences › Sketch › **Line up with other sketch points while drawing** turned on (it's
off by default), the pointer also **lines up** while drawing with the sketch's points on screen:
line ends, centres, standalone points and the origin, and the shape's own earlier points. It
lines up on both axes at once, level with one point and plumb with another, so a rectangle drawn
beside another can take its height from one and its width from a point below. A line kept
horizontal or vertical from its start can still end under or beside another point. A dotted guide
runs from each point it lines up with, and the snap hint shows **H**, **V** or **H+V**. The click
keeps the alignment: the new point gets a Horizontal or Vertical constraint with each sketch
point it lined up with, in the shape's undo step, unless the sketch already sets it. With the
preference off, drawing lines up only with the previous point, one axis at a time.
Enable **3D Sketch** in the Sketch Palette to draw lines, fit splines and points off the plane.
While placing these points, you can snap to points on other visible sketches. For a bridge
line, start Line and click an endpoint on each source sketch; each endpoint uses its source