vectorcraft/crates/mcp/src
bflatastic f6cd4588ee Fix #501: a Pen drag out of the first anchor always closes the path
Reported: closing a shape by pressing on the first anchor and dragging out a curve flickered, and
releasing at the wrong moment left the shape open.

The press decided to close (path.close preview), but every move asked again which path was being
drawn: the closing preview leaves the path closed, so no longer one the Pen extends, and the move
fell through to "first anchor of a new path" (a path.create preview), the next move back to a
close of a path that no longer existed in the preview... The release committed whichever was last.

- The press now records what it placed (Place: the anchor, the path it goes on, none for a new
  path, and whether it closes it), and the drag only shapes that anchor's handles: a close stays a
  close, symmetric by default and Alt breaking the handles, and the release closes the path wherever
  it ends. The first anchor of a new path no longer depends on the selection either.
- Tests: tools (the drag sees the closed path), engine (closed throughout a 12-move drag, symmetric
  handles at the release), MCP headless pointer_gesture. ROADMAP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 22:00:24 +07:00
..
backend.rs Robustness: VectorCraft never crashes — no panics in shipped code 2026-10-05 06:28:59 +07:00
headless.rs MCP: inspect_document slices too, stricter find filters (review of #416) 2026-10-08 09:17:06 +07:00
lib.rs Fix #494: Pen + Cmd edits the path being drawn; Pen + Alt reshapes segments; handle drags fixed and fast 2026-10-08 22:00:13 +07:00
logging.rs MCP: prompts, resource templates, completions and logging 2026-10-07 07:25:02 +07:00
prompts.rs MCP: prompts, resource templates, completions and logging 2026-10-07 07:25:02 +07:00
resources.rs MCP: slice summary reads with document.node depth and childLimit 2026-10-08 07:43:07 +07:00
server.rs MCP: a server sends log records only when its own client asked for them 2026-10-07 17:15:56 -04:00
tests.rs Fix #483: Shift-drag marquees toggle the selection; the Lasso's Alt keeps the rest 2026-10-08 20:21:36 +07:00
tests_distortkeys.rs Fix #392: Cmd+A selects a focused field's text or the type being edited 2026-10-08 07:18:52 +07:00
tests_exportas.rs M4.33: Export As with Use Artboards (All or a range) and art bounds 2026-10-05 09:14:42 +07:00
tests_fileio.rs Fix #421: Document Color Mode can put RGB greys on the black plate 2026-10-08 10:30:32 +07:00
tests_freeform.rs M3.97: freeform points drag out to delete, spread ring drags, Lines mode draws lines 2026-10-05 04:43:43 +07:00
tests_gradient.rs M3.17: interactive gradient annotator — drag the start handle or the bar to move the gradient, the end handle to change length and angle, just past the end to rotate (Shift snaps to 45°); a bar click adds a stop, stops drag along the bar, off it to delete (never below two), Alt-drag copies, diamonds move midpoints; a click inside selected art applies the gradient from that point; double-clicking a stop opens a popover (Color/Swatches, Opacity, Location); the selected stop lives in the session (gradient.selectStop), shared by the tool, the Gradient and Color panels and agents, and takes Delete/Backspace and ←/→ ahead of their shortcuts (Tool::claims_key, also headless); stop chips draw as Overlay::Swatch with generated add/remove-stop cursors; the stop math moves into the color crate 2026-10-04 17:39:36 +07:00
tests_links.rs M4.53: Linked images remember their file and keep a preview; missing links ask Replace or Ignore, modified ones follow Update Links 2026-10-05 10:07:10 +07:00
tests_liquify.rs M8.4: Liquify keeps going while held, leaves non-paths alone, strokes apply incrementally 2026-10-06 12:00:52 +07:00
tests_pen.rs Fix #501: a Pen drag out of the first anchor always closes the path 2026-10-08 22:00:24 +07:00
tests_persp.rs M8.12: Perspective Selection tool scales, copies, moves perpendicular and nudges in perspective 2026-10-06 11:00:15 +07:00
tests_place.rs M4.25: Drop files on the canvas to place them; several placed files load the place cursor 2026-10-05 08:42:30 +07:00
tests_protocol.rs MCP: prompts, resource templates, completions and logging 2026-10-07 07:25:02 +07:00
tests_svg.rs M4.26: SVG Options in the engine, a dialog and MCP 2026-10-05 07:55:59 +07:00
tools.rs EPS import: other apps' EPS open as vectors, a preview that stands in says why 2026-10-08 18:23:36 +07:00