Free Transform: distorted images get the shared refusal in Create Gradient Mesh and keep their size in Link Info

- Create Gradient Mesh refuses a distorted image with the same message as
  the other commands, so the complete-message catalogs translate it.
- Link Info gives a distorted image's scale and rotation at its middle,
  where Image info measures its resolution.
- Update Links scales a distorted image's transform to the new pixel size,
  so a placement by the transform keeps the image's size.
- Place with Replace refuses only the clip group shape that Replace
  measures as its image.
- New test: Weed Box and Lines measure a distorted image by its corners.
  The image-and-path distort test now moves the shared edge.

Docs: docs/mcp.md, docs/target-app-parity.md.
This commit is contained in:
dotCooCoo
2026-11-17 12:00:27 -08:00
parent 4373826cc6
commit 5042947399
8 changed files with 98 additions and 36 deletions
@@ -663,6 +663,29 @@ fn an_image_is_measured_by_its_frame_as_turned() {
assert!((end - (300.0 - (y - (300.0 - half)))).abs() < 0.01, "{end} at {y}");
}
#[test]
fn a_distorted_image_is_measured_by_the_frame_through_its_corners() {
let mut s = session();
let im = vectorcraft_doc::ImageObject {
key: "image".into(),
width: 100,
height: 100,
xf: Affine::IDENTITY,
link: None,
placement: Default::default(),
pixels: None,
};
insert(&mut s, |id| {
let mut n = Node::new(id, NodeKind::Image(Box::new(im)));
n.set_image_corners([Point::new(40.0, 0.0), Point::new(60.0, 0.0), Point::new(100.0, 100.0), Point::new(0.0, 100.0)]).unwrap();
n
});
let (b, end) = diamond_weeding(&mut s);
assert!((b.x0 + 10.0).abs() < 1e-3 && (b.y1 - 110.0).abs() < 1e-3, "{b:?}");
// A quarter of the box down (y = 20), the line meets the side from (40, 0) to (0, 100).
assert!((end - 32.0).abs() < 0.01, "{end}");
}
#[test]
fn a_placed_file_is_measured_by_the_art_it_shows() {
let dir = crate::tests_links::Folder::new("weed-placed");
+19 -9
View File
@@ -1210,6 +1210,16 @@ pub(crate) fn set_image_from_path(d: &mut Document, id: NodeId, path: &str, doc_
install(d, &[id], read, Some(Preserve::Bounds), None)
}
/// Distorted image `im` shows the file read for `link` (`img`) and keeps its corners and its
/// clipping: the new pixels fill them. Its transform is scaled to the new pixel size, so a reader
/// that places it by the transform still gives it its old size.
fn refill_distorted(im: &mut ImageObject, link: &LinkInfo, img: &RasterImage) {
if (img.width, img.height) != (im.width, im.height) && img.width > 0 && img.height > 0 {
im.xf *= Affine::scale_non_uniform(f64::from(im.width) / f64::from(img.width), f64::from(im.height) / f64::from(img.height));
}
(im.key, im.width, im.height, im.link) = (img.key.clone(), img.width, img.height, Some(link.clone()));
}
/// Image objects `ids` (in the layers or outside them) show the file read for `link` (`img`), each
/// placed as its Placement Options say (`force`: as that Preserve choice says, whatever they say);
/// with `also` (a file's path and the content shown), so do the images outside the layer tree that
@@ -1235,12 +1245,11 @@ fn install(d: &mut Document, ids: &[NodeId], (link, img): FileRead, force: Optio
let mut n = n.clone();
let mut clip = ClipTo::Keep;
let distorted = n.is_distorted_image();
if let NodeKind::Image(im) = &mut n.kind
&& distorted
{
// A distorted image keeps its corners and its clipping: the new pixels fill them.
(im.key, im.width, im.height, im.link) = (img.key.clone(), img.width, img.height, Some(link.clone()));
} else if let NodeKind::Image(im) = &mut n.kind {
if let NodeKind::Image(im) = &mut n.kind {
if distorted {
refill_distorted(im, &link, &img);
return (n, clip);
}
let o = PlacementOptions { preserve: force.unwrap_or(im.placement.preserve), ..im.placement };
let size = |w: u32, h: u32| (w as f64, h as f64);
let (old_pt, old_clip) = match old.get(&im.key) {
@@ -1256,12 +1265,11 @@ fn install(d: &mut Document, ids: &[NodeId], (link, img): FileRead, force: Optio
Nested { pick: &pick, make: &mut make, next: 0 }.run(d);
}
for id in ids {
// A distorted image keeps its corners and its clipping: the new pixels fill them.
if d.node(*id).is_some_and(Node::is_distorted_image) {
if let Some(n) = d.node_mut(*id)
&& let NodeKind::Image(im) = &mut n.kind
{
(im.key, im.width, im.height, im.link) = (img.key.clone(), img.width, img.height, Some(link.clone()));
refill_distorted(im, &link, &img);
}
continue;
}
@@ -2846,7 +2854,9 @@ fn info(s: &mut Session, p: &Value) -> Result<Value> {
let (px, py) = file_pt(&st.doc, &im.key);
out["effectivePpi"] = out["ppi"].take();
out["ppi"] = json!([72.0 / px, 72.0 / py]);
(out["scale"], out["rotation"]) = scale_rotation(im.xf, (px, py));
// A distorted image is measured at its middle, as its effective resolution is.
let xf = stored(&doc, id).and_then(vectorcraft_doc::image_quad::nearest_affine).unwrap_or(im.xf);
(out["scale"], out["rotation"]) = scale_rotation(xf, (px, py));
out["format"] = json!(format_label(&st.doc, im));
out["placement"] = placement_json(im.placement);
out["status"] = json!("embedded");
+10 -10
View File
@@ -33,14 +33,18 @@ pub(super) fn mesh_create(s: &mut Session, p: &Value) -> Result<Value> {
for id in &roots {
let Some(n) = d.node(*id).cloned() else { continue };
let m = if let NodeKind::Image(im) = &n.kind {
if n.is_distorted_image() {
refused.get_or_insert_with(|| super::super::xform::distorted_image_error(C, *id));
continue;
}
// An embedded image: the points take the picture's colours there.
match image_mesh(d, &n, im, rows, cols) {
match image_mesh(d, im, rows, cols) {
Ok(mut m) => {
m.highlight(app, highlight);
Some(m)
}
Err(why) => {
refused.get_or_insert(why);
refused.get_or_insert_with(|| bad(C, why));
continue;
}
}
@@ -60,7 +64,7 @@ pub(super) fn mesh_create(s: &mut Session, p: &Value) -> Result<Value> {
match m.add_lines_at(q, tol) {
Some(i) => index = Some(i),
None => {
refused.get_or_insert("point is outside the object");
refused.get_or_insert_with(|| bad(C, "point is outside the object"));
continue;
}
}
@@ -75,7 +79,7 @@ pub(super) fn mesh_create(s: &mut Session, p: &Value) -> Result<Value> {
out.push(*id);
}
if out.is_empty() {
return Err(bad(C, refused.unwrap_or("select a path, a compound path or an embedded image")));
return Err(refused.unwrap_or_else(|| bad(C, "select a path, a compound path or an embedded image")));
}
sel.set(out.iter().copied());
Ok((out, index))
@@ -89,12 +93,8 @@ pub(super) fn mesh_create(s: &mut Session, p: &Value) -> Result<Value> {
/// Create Gradient Mesh on an embedded image: a `rows` × `cols` mesh over the picture's rectangle
/// (placed with the image's transform), each point taking the average colour and opacity of the
/// area around it. Linked images are refused: the documentation allows embedded ones only. So are
/// images changed by Perspective Distort or Free Distort.
fn image_mesh(d: &Document, n: &Node, im: &vectorcraft_doc::ImageObject, rows: u32, cols: u32) -> std::result::Result<GradientMesh, &'static str> {
if n.is_distorted_image() {
return Err("an image changed by Perspective Distort or Free Distort can't become a gradient mesh");
}
/// area around it. Linked images are refused: the documentation allows embedded ones only.
fn image_mesh(d: &Document, im: &vectorcraft_doc::ImageObject, rows: u32, cols: u32) -> std::result::Result<GradientMesh, &'static str> {
if im.link.is_some() {
return Err("a linked image can't become a gradient mesh: embed it first");
}
+7 -2
View File
@@ -781,10 +781,15 @@ fn prepare(s: &Session, p: &Value) -> Result<PlaceJob> {
(true, _) => return Err(bad(PLACE, "replace: select the one object to replace")),
};
let replaced = old.and_then(|id| st.doc.node(id)).cloned();
// Replace keeps the replaced image's transform, which a distortion's corners do not follow.
// Replace keeps the transform of the replaced image, or of an image alone in a clip group (the
// shape `replace_xf` measures), which a distortion's corners do not follow. Any other object
// is replaced where its bounds are, so a distorted image inside it is not refused.
if let Some(n) = &replaced {
let inner = match &n.kind {
NodeKind::Group { children, clip: true } => children.get(1).filter(|c| c.is_distorted_image()).map(|c| c.id),
NodeKind::Group { children, clip: true } => match &children[..] {
[path, image] if matches!(path.kind, NodeKind::Path { clipping: true, .. }) && image.is_distorted_image() => Some(image.id),
_ => None,
},
_ => None,
};
if let Some(id) = n.is_distorted_image().then_some(n.id).or(inner) {
+21 -1
View File
@@ -589,7 +589,8 @@ fn a_symbols_link_without_a_relative_path_follows_the_moved_file() {
}
/// Update Links gives a distorted image its file's new pixels between the same corners: its
/// Placement Options' fill and clip do not move or clip it.
/// Placement Options' fill and clip do not move or clip it. Its transform takes the new pixel size,
/// and Link Info measures its scale at its middle.
#[test]
fn update_links_keeps_a_distorted_images_corners() {
let dir = Folder::new("distorted-update");
@@ -603,6 +604,21 @@ fn update_links_keeps_a_distorted_images_corners() {
let corners = |s: &Session| s.doc().unwrap().doc.node(id).unwrap().image_corners().unwrap();
let before = corners(&s);
assert!(s.doc().unwrap().doc.node(id).unwrap().is_distorted_image());
// The far corner of the pixels as the transform alone places them.
let far = |s: &Session| {
let NodeKind::Image(im) = &s.doc().unwrap().doc.node(id).unwrap().kind else { panic!("an image") };
im.xf * vectorcraft_geom::Point::new(f64::from(im.width), f64::from(im.height))
};
let far_before = far(&s);
// Link Info measures the scale where the effective resolution is measured: at the middle.
let scale_matches_ppi = |s: &mut Session| {
let info = s.execute("links.info", &json!({"id": id.0})).unwrap();
for i in 0..2 {
let (scale, ppi, eff) = (info["scale"][i].as_f64().unwrap(), info["ppi"][i].as_f64().unwrap(), info["effectivePpi"][i].as_f64().unwrap());
assert!((scale - ppi / eff * 100.0).abs() < 1e-6, "{info}");
}
};
scale_matches_ppi(&mut s);
// A copy in a symbol, distorted the same way, shows the same file.
let copy = place(&mut s, &photo);
s.execute("links.placementOptions", &json!({"ids": [copy.0], "preserve": "fill", "clip": true})).unwrap();
@@ -628,11 +644,15 @@ fn update_links_keeps_a_distorted_images_corners() {
assert_eq!(corners(&s), before);
let NodeKind::Image(im) = &n.kind else { panic!("an image") };
assert_eq!((im.width, im.height), (60, 20));
// The transform takes the new pixel size, so a placement by the transform keeps the old size.
assert!(far(&s).distance(far_before) < 1e-9, "{:?} vs {far_before:?}", far(&s));
let d = &s.doc().unwrap().doc;
assert!(!matches!(d.parent_of(id).and_then(|p| d.node(p)).map(|p| &p.kind), Some(NodeKind::Group { clip: true, .. })), "not clipped");
let mut clipped = false;
d.symbols[0].art.walk(&mut |n| clipped |= matches!(n.kind, NodeKind::Group { clip: true, .. }));
assert!(!clipped, "the symbol's image is not clipped");
assert_eq!(in_symbol(&s), [(true, (60, 20))]);
scale_matches_ppi(&mut s);
}
/// Update Links reads a changed file again for the images inside symbols, patterns and opacity
+8 -4
View File
@@ -677,11 +677,13 @@ fn distort_moves_an_image_and_a_path_as_one() {
let img = placed_image(&mut s);
let path = rect(&mut s, 100.0, 0.0, 100.0, 100.0);
s.execute("select.set", &json!({"ids": [img.0, path.0]})).unwrap();
s.execute("object.distort", &json!({"corners": [[40, 0], [160, 0], [200, 100], [0, 100]]})).unwrap();
s.execute("object.distort", &json!({"corners": [[0, 0], [200, 0], [200, 100], [50, 100]]})).unwrap();
let d = &s.doc().unwrap().doc;
let anchors: Vec<Point> = d.node(path).unwrap().path_data().unwrap().anchors().map(|(_, _, a)| a.p).collect();
let q = corners(&s, img);
// The image's right edge and the path's left edge were one line, and stay one.
// The image's right edge and the path's left edge were one line, and stay one where the warp
// moves it.
assert!(q[2].distance(Point::new(100.0, 100.0)) > 1.0, "{q:?}");
for p in [q[1], q[2]] {
assert!(anchors.iter().any(|a| a.distance(p) < 1e-9), "{p:?} not in {anchors:?}");
}
@@ -732,7 +734,8 @@ fn distort_refuses_a_folded_image_and_crop_and_trace_refuse_a_distorted_one() {
),
] {
let e = s.execute(cmd, &params).unwrap_err().to_string();
assert!(e.contains("Perspective Distort or Free Distort"), "{cmd}: {e}");
// Every command gives the one shared refusal, which the complete-message catalogs translate.
assert!(e.contains("is an image changed by Perspective Distort or Free Distort, which this command does not work on"), "{cmd}: {e}");
}
assert!(s.doc().unwrap().doc.node(img).unwrap().is_distorted_image());
assert_eq!(undo_len(&s), undo + 1);
@@ -900,7 +903,8 @@ fn image_info_measures_a_distorted_image_at_its_middle() {
[out["ppi"][0].as_f64().unwrap(), out["ppi"][1].as_f64().unwrap()]
};
assert!((ppi(&mut s)[0] - 1.44).abs() < 1e-9);
// Corners squeezed to half the width at the middle row: twice the resolution across there.
// The top squeezed to half the width: the middle of the pixels spans less than 100 pt across,
// so the resolution across there is higher.
s.execute("object.distort", &json!({ "corners": [[25, 0], [75, 0], [100, 100], [0, 100]] })).unwrap();
let [x, _] = ppi(&mut s);
assert!(x > 1.44 * 1.1, "{x}");
+9 -9
View File
@@ -6362,20 +6362,20 @@ on the corners' longest side, and each piece reaches 0.5 pt into its neighbors.
within a quarter of a screen pixel, with cells at least 4 pixels long, and each piece reaches 2 pixels into its
neighbors. Either way the mesh takes no more than 64 by 64 cells, and no more cells across than the image has pixels on
its longer side (or 8, if that is more). A stronger perspective, or a smaller image, is drawn with the cells it is
allowed. DXF and WMF cannot clip, so they
write the image as the parallelogram nearest its corners and warn. Corners that would fold the image over itself, put
three corners on one line, join two corners, cross the warp's horizon or lie too close together for a perspective map
are an error, and nothing changes. A file whose `image_quad` breaks these rules opens with the image placed by its
transform. A drag is one undo step, and a distort that leaves the corners where they are records none. Image info
(`image.info`) gives a distorted image's resolution at its middle.
allowed. DXF and WMF cannot clip, so they write the image as the parallelogram nearest its corners and warn. Corners
that would fold the image over itself, put three corners on one line, join two corners, cross the warp's horizon or lie
too close together for a perspective map are an error, and nothing changes. A file whose `image_quad` breaks these
rules opens with the image placed by its transform. A drag is one undo step, and a distort that leaves the corners
where they are records none. Image info (`image.info`) gives a distorted image's resolution at its middle, and Link
Info (`links.info`) gives its scale and rotation there.
Crop Image (`object.cropImage`), Image Trace (`imageTrace.make`, `imageTrace.makeAndExpand`), Relink (`links.relink`),
Embed (`links.embed`), Unembed (`links.unembed`), Create Object Mosaic (`object.createObjectMosaic`), Create
Gradient Mesh (`object.mesh.create`) and Place with Replace (`file.place` with `replace`) refuse a distorted image with
an error that names the distortion. Update Links (`links.update`) puts a changed file's pixels between a distorted
image's corners, without applying its Placement Options. Mask
(`object.maskImage`) draws its clipping path through the image's corners. Rasterize (`object.rasterize`) draws the
image between its corners and makes a plain image of the result. These rules are VectorCraft's own.
image's corners, without applying its Placement Options. Mask (`object.maskImage`) draws its clipping path through the
image's corners. Rasterize (`object.rasterize`) draws the image between its corners and makes a plain image of the
result. These rules are VectorCraft's own.
```json
{"name":"run_command","arguments":{"command":"object.distort","params":{"corners":[[40,0],[60,0],[100,100],[0,100]]}}}
+1 -1
View File
@@ -1049,7 +1049,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- After a rotation the Free Transform tool shows and drags the same turned bounding box as the Selection tool: its handles, their cursors and its rotate zone sit on the selection's own sides, a handle scales along those sides from the opposite handle ([the help page](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/scale-objects.html)), Cmd/Ctrl on a side handle shears along that side, and Perspective Distort and Free Distort start from the turned box's corners (`object.distort` takes `angle` with `from`) (`bboxrotate::free_transform_handles_turn_with_the_object_and_scale_along_its_axes`, `free_transform_shears_along_the_turned_side`, `free_transform_distort_starts_from_the_turned_box`, `xform::distort_reads_from_in_a_turned_frame_and_rejects_a_bad_angle`, tools `xform::free::tests::the_box_and_its_handles_turn_with_the_selection`).
- After a rotation the Scale and Reflect tools, the Scale and Reflect dialogs, `object.scale`, `object.reflect` with a named axis and the Transform and Properties panels' flips act along the selection's turned bounding box until Reset Bounding Box: the horizontal and vertical scale stretch along its own width and height, and the vertical and horizontal reflection axes are its own. The Reflect tool's default axis and its Shift steps start from the box's axes, and an axis drawn with the tool is the line drawn on the page. `basis: "page"` keeps the page's axes (VectorCraft's own rules; `bboxrotate::scale_and_reflect_follow_the_turned_box`, tools `xform::transform::tests::scale_and_reflect_drags_follow_a_turned_bounding_box`).
- Perspective Distort and Free Distort (`object.distort`) turn each warped object's bounding box as the warp turns the object at its own center, the objects inside groups, compound paths and clip groups and the art of linked opacity masks included, so the next Selection or Free Transform drag uses the tilted box; Object › Transform › Reset Bounding Box squares it again, and corners left where they are add no undo step (VectorCraft's own rule; `bboxrotate::distort_turns_an_upright_box_with_the_warp_at_its_center`, `distort_turns_each_member_and_linked_mask_by_its_own_warp`, `mirrored_and_collapsing_distorts_keep_valid_angles`, `distort_angles_undo_redo_and_reopen_together`, `xform::unchanged_distort_records_no_history`).
- Perspective Distort and Free Distort (`object.distort`) move an image's four corners exactly onto the handles, alone or with other objects, and draw its pixels in perspective between them on the canvas, in print and in every export, as a mesh of affine image pieces (DXF and WMF write the nearest parallelogram and warn); the native file saves the corners; bounds, clicks, blends, the Eyedropper, Outline view, the Color Theme Picker and Weed Box and Lines follow them, and corners that would fold the image over or cross the warp's horizon are refused. Crop Image, Image Trace, Relink, Embed, Unembed, Create Object Mosaic, Create Gradient Mesh and Place with Replace refuse a distorted image; Rasterize makes a plain image of it. All of this is VectorCraft's own rule (doc `image_quad::tests`, `blend::tests::steps_between_distorted_images_have_corners_between_theirs`; engine `xform::distort_puts_an_images_corners_on_the_handles`, `distort_moves_an_image_and_a_path_as_one`, `distort_refuses_a_folded_image_and_crop_and_trace_refuse_a_distorted_one`, `distort_names_the_horizon_and_an_unchanged_distort_of_a_distorted_image_records_nothing`, `free_transform_distort_drag_on_an_image_is_one_undo_step`, `mask_on_a_distorted_image_follows_its_corners`, `a_transform_effect_moves_a_distorted_images_corners`, `rasterize_draws_a_distorted_image_between_its_corners`, `a_distorted_image_saves_and_reads_back`, `recolor::theme_picker_reads_a_distorted_image_where_it_is_drawn`; render `outline_mode_draws_a_distorted_images_frame_through_its_corners`, `meshwarp::outline_mode_paints_a_distorted_images_pixels_once_where_its_pieces_overlap`, `objectfx::a_distorted_image_is_opaque_between_its_corners_and_its_shadow_follows_them`; svg `warp_pieces::a_distorted_image_is_written_between_its_corners`; pdf `compression::a_distorted_image_is_written_with_its_corners_on_its_quad`; cad and metafile `a_distorted_image_*`).
- Perspective Distort and Free Distort (`object.distort`) move an image's four corners exactly onto the handles, alone or with other objects, and draw its pixels in perspective between them on the canvas, in print and in every export, as a mesh of affine image pieces (DXF and WMF write the nearest parallelogram and warn); the native file saves the corners; bounds, clicks, blends, the Eyedropper, Outline view, the Color Theme Picker and Weed Box and Lines follow them; Image info and Link Info measure the image at its middle; and corners that would fold the image over, fall on one line, cross the warp's horizon or lie too close together for a perspective map are refused. Crop Image, Image Trace, Relink, Embed, Unembed, Create Object Mosaic, Create Gradient Mesh and Place with Replace refuse a distorted image; Update Links puts a changed file's pixels between its corners; Rasterize makes a plain image of it. All of this is VectorCraft's own rule (doc `image_quad::tests`, `blend::tests::steps_between_distorted_images_have_corners_between_theirs`; engine `xform::distort_puts_an_images_corners_on_the_handles`, `distort_moves_an_image_and_a_path_as_one`, `distort_refuses_a_folded_image_and_crop_and_trace_refuse_a_distorted_one`, `distort_names_the_horizon_and_an_unchanged_distort_of_a_distorted_image_records_nothing`, `distort_of_a_blend_holding_an_image_is_not_refused`, `free_transform_distort_drag_on_an_image_is_one_undo_step`, `mask_on_a_distorted_image_follows_its_corners`, `a_transform_effect_moves_a_distorted_images_corners`, `a_transform_after_a_warp_moves_a_distorted_image_once`, `baked_raster_effect_pixels_replace_a_distortion`, `rasterize_draws_a_distorted_image_between_its_corners`, `image_info_measures_a_distorted_image_at_its_middle`, `a_distorted_image_saves_and_reads_back`, `links::update_links_keeps_a_distorted_images_corners`, `recolor::theme_picker_reads_a_distorted_image_where_it_is_drawn`, `addons::cutting::weed::tests::a_distorted_image_is_measured_by_the_frame_through_its_corners`; render `outline_mode_draws_a_distorted_images_frame_through_its_corners`, `meshwarp::outline_mode_paints_a_distorted_images_pixels_once_where_its_pieces_overlap`, `meshwarp::the_canvas_cuts_a_distorted_images_mesh_for_the_zoom`, `objectfx::a_distorted_image_is_opaque_between_its_corners_and_its_shadow_follows_them`, `objectfx::a_distorted_image_is_opaque_inside_its_corners_at_every_zoom`; svg `warp_pieces::a_distorted_image_is_written_between_its_corners`; pdf `compression::a_distorted_image_is_written_with_its_corners_on_its_quad`; eps `a_distorted_image_is_written_with_its_corners_on_its_quad`; cad `a_distorted_image_is_written_as_its_nearest_parallelogram_with_a_warning`; metafile `a_distorted_image_is_its_mesh_with_clips_and_its_nearest_parallelogram_without`; tools `xform::eyedropper::tests::clicking_an_image_samples_its_pixels`; plugins `objects::tests::a_distorted_image_comes_with_its_corners`; ui-egui `i18n::tests::distorted_image_messages_are_in_complete_catalogs`).
- The Free Transform widget's Constrain works in Free Distort as well as in Free Transform ([the help page](https://helpx.adobe.com/illustrator/using/tool-techniques/free-transform-tool.html)). With Constrain on, or Shift held, a corner dragged in Free Distort moves only along the line through the opposite corner, in the box's own proportions, and the other three corners stay in place; on a turned box the line runs through the box's own corners. The line is VectorCraft's own rule. Cmd/Ctrl+Alt+Shift on a corner still drags in Perspective Distort, where Constrain stays unavailable (tools `xform::free::tests::free_distort_corner_keeps_to_its_diagonal_with_shift_or_constrain`, `shift_pressed_during_a_free_distort_drag_constrains_it`, `a_turned_box_is_constrained_along_its_own_diagonal`, `along_diagonal_of_a_degenerate_box`; engine `xform::free_transform_constrained_distort_keeps_the_corner_on_its_diagonal`; ui-egui `free_transform::tests::the_widget_sets_the_mode_and_a_corner_drag_then_distorts`).
- Native macOS menu bar, vector tool cursors, a command palette (Help › Search Commands…), middle-button panning with any tool. Native menus explicitly end tracking on command selection, outside window presses and Escape; menu updates wait until tracking ends, and a dismissing press never starts a canvas gesture (M14.8).
- Help › Search Commands… is the first item of the Help menu in the window, with its shortcut and a separator after it; in the native macOS menu bar it is the first item below the system's search field. This is VectorCraft's own order and does not raise a score (`menus::tests::help_starts_with_search_commands`, `tests::nativemenu::the_mac_help_menu_starts_with_search_commands`).