From 2d6b8680e6de3d718dadd704b09a7d34130a966d Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 21 Nov 2026 02:01:48 -0800 Subject: [PATCH] Dimension tool: whole-path dimensions keep clear of the path when turned A dimension of a whole path whose line lay across the path, made vertical or horizontal with dimension.update, now goes as far past the path as it lay from its first point. Before, its line landed on the path's edge. A line on the edge to within rounding still counts as outside the path. When the new place would be more than 1,000,000 pt from the first point, the update is an error unless it also gives offset, and the dimension is left as it was. A dimension whose measured node is missing or is not a path, as in a file that names a node it does not hold, is unlinked at the next edit. Tests: a dimension of a whole path saved in a native file and opened again still follows the path, and one that names a missing node is unlinked at the next edit; past a corner of the path the side the pointer is farther out on decides; after the first point Alt picks a point; a hovered segment's length stays by the pointer at a high zoom. The line in docs/target-app-parity.md now attributes only the Alt hover over a path to the linear dimensions help page. Docs: docs/dimensions.md and dimension.update's params text. --- crates/doc/src/dimension.rs | 62 ++++++++++++++++++--------- crates/engine/src/cmd/dimension.rs | 11 ++++- crates/engine/tests/it/dimensions.rs | 64 ++++++++++++++++++++++++++++ crates/tools/src/dimension.rs | 25 +++++++++++ docs/dimensions.md | 8 ++-- docs/target-app-parity.md | 2 +- 6 files changed, 145 insertions(+), 27 deletions(-) diff --git a/crates/doc/src/dimension.rs b/crates/doc/src/dimension.rs index 0b50358622..3e08f96977 100644 --- a/crates/doc/src/dimension.rs +++ b/crates/doc/src/dimension.rs @@ -425,10 +425,11 @@ impl DimensionSource { }) } /// Whether a path it measures differs between `before` and `after`, or is in only one of them. + /// A node without a path, or missing from both, counts as changed. pub fn art_changed(&self, before: &Document, after: &Document) -> bool { self.nodes().into_iter().any(|id| match (before.node(id), after.node(id)) { - (Some(old), Some(new)) => !std::ptr::eq(old, new) && old.path_data() != new.path_data(), - (old, new) => old.is_some() != new.is_some(), + (Some(old), Some(new)) => old.path_data().is_none() || (!std::ptr::eq(old, new) && old.path_data() != new.path_data()), + _ => true, }) } /// The map that took the measured art from `before` to `after`, when every path it measures @@ -861,28 +862,44 @@ impl Dimension { /// that side as the old line lay from its points. A dimension of a whole path /// ([`DimensionSource::Extent`]) first reads from `doc` the outermost points it measures in the /// new orientation, and its line keeps its distance from the whole path ([`Self::span`]), on - /// the side the middle of the old line is on. + /// the side the middle of the old line is on. A line that lay across the path goes as far past + /// the path as it lay from its first point. For such a dimension it is an error when the path + /// no longer exists, or when the line would lie more than 1,000,000 pt from its first point, + /// and the dimension is then left as it was. pub fn set_orientation(&mut self, orientation: Orientation, doc: &Document) -> Result<(), String> { if self.mode != DimensionMode::Linear || self.orientation == orientation { self.orientation = orientation; return Ok(()); } - let (handle, mut gap) = (self.handle(), self.offset.abs()); - if let Some(DimensionSource::Extent { .. }) = &self.source { - // Measured from the whole path. - let (low, high) = self.span(Some(doc)); - let line = self.a.to_vec2().dot(self.normal()) + self.offset; - gap = if line >= high { line - high } else { (low - line).max(0.0) }; + let mut next = self.clone(); + let (handle, mut gap) = (next.handle(), next.offset.abs()); + if let Some(DimensionSource::Extent { .. }) = &next.source { + // Measured from the whole path, relative to the first point, which the line is + // `offset` from. A line on the path's edge, to within the rounding of the + // projections, is outside it. + let n = next.normal(); + let base = next.a.to_vec2().dot(n); + let (low, high) = next.span(Some(doc)); + let eps = 8.0 * f64::EPSILON * ((next.a.x * n.x).abs() + (next.a.y * n.y).abs() + low.abs() + high.abs()); + let (low, high, line) = (low - base, high - base, next.offset); + gap = if line >= high - eps { + (line - high).max(0.0) + } else if line <= low + eps { + (low - line).max(0.0) + } else { + gap + }; } - self.orientation = orientation; - if let Some(DimensionSource::Extent { node }) = &self.source { - (self.a, self.b) = extent(doc, *node, orientation == Orientation::Vertical).ok_or("Measured path no longer exists")?; + next.orientation = orientation; + if let Some(DimensionSource::Extent { node }) = &next.source { + (next.a, next.b) = extent(doc, *node, orientation == Orientation::Vertical).ok_or("Measured path no longer exists")?; } - let n = self.normal(); - let across = |p: Point| p.to_vec2().dot(n); - let (low, high) = self.span(Some(doc)); - let h = across(handle); - let whole = matches!(self.source, Some(DimensionSource::Extent { .. })); + // Along the new normal, relative to the new first point, so that the result is the offset. + let n = next.normal(); + let base = next.a.to_vec2().dot(n); + let (low, high) = next.span(Some(doc)); + let (low, high, h) = (low - base, high - base, handle.to_vec2().dot(n) - base); + let whole = matches!(next.source, Some(DimensionSource::Extent { .. })); let at = if whole && h >= high { high + gap } else if whole && h <= low { @@ -894,11 +911,14 @@ impl Dimension { } else { low - gap }; - let offset = at - across(self.a); - if offset.is_finite() && offset.abs() <= 1e6 { - self.offset = offset; + if at.is_finite() && at.abs() <= 1e6 { + next.offset = at; + } else if whole { + // The old offset would put the line across the path. + return Err("Invalid dimension offset".into()); } - self.length = self.measured(); + next.length = next.measured(); + *self = next; Ok(()) } fn bisector(&self) -> Vec2 { diff --git a/crates/engine/src/cmd/dimension.rs b/crates/engine/src/cmd/dimension.rs index 27e1d81ae8..610558be73 100644 --- a/crates/engine/src/cmd/dimension.rs +++ b/crates/engine/src/cmd/dimension.rs @@ -23,7 +23,7 @@ pub fn specs() -> Vec { "Update Dimensions", [], None, - "{ids?: [dimension ids] (default selection), options?: dimension options, orientation?: aligned|horizontal|vertical (linear dimensions only; the line stays on the side of the points it was on), offset?: pt (as in dimension.create)} restyle, turn or move existing dimensions → {ids}", + "{ids?: [dimension ids] (default selection), options?: dimension options, orientation?: aligned|horizontal|vertical (linear dimensions only; the line stays on the side of the points it was on; for an extent source, an error when that would put the line more than 1,000,000 pt from its first point and no offset is given), offset?: pt (as in dimension.create)} restyle, turn or move existing dimensions → {ids}", has_doc, update ), @@ -175,7 +175,14 @@ fn update(s: &mut Session, p: &Value) -> Result { dim.options = o.clone(); } if let Some(orientation) = orientation(p, dim.mode)? { - dim.set_orientation(orientation, doc).map_err(error)?; + // An offset given with the orientation replaces the one the orientation would + // give: the dimension takes the orientation, and `resolve` reads its points. + if let Err(e) = dim.set_orientation(orientation, doc) { + if p.get("offset").is_none() { + return Err(error(e)); + } + dim.orientation = orientation; + } } dim.offset = distance(p, dim.offset)?; dim.resolve(doc).map_err(error)?; diff --git a/crates/engine/tests/it/dimensions.rs b/crates/engine/tests/it/dimensions.rs index 2cbd61de92..2c0738f737 100644 --- a/crates/engine/tests/it/dimensions.rs +++ b/crates/engine/tests/it/dimensions.rs @@ -596,6 +596,28 @@ fn a_dimension_of_a_whole_path_stays_clear_of_the_path_it_draws() { assert!(sides.iter().all(|v| *v > 1e-6) || sides.iter().all(|v| *v < -1e-6), "{a:?} to {b:?}: {sides:?}"); let nearest = sides.iter().map(|v| v.abs()).fold(f64::INFINITY, f64::min); assert!((nearest - 40.0).abs() < 1e-6, "nearest corner {nearest} pt from the line"); + + // A line across the path, 30 pt below the top, made vertical: it goes 30 pt past the path's + // side rather than onto it. + let rect = run(&mut s, "shape.rectangle", json!({"x":600,"y":100,"width":100,"height":60}))["id"].as_u64().unwrap(); + let id = run(&mut s, "dimension.create", json!({"source":{"kind":"extent","node":rect},"orientation":"horizontal","offset":30}))["id"] + .as_u64() + .unwrap(); + run(&mut s, "dimension.update", json!({"ids":[id],"orientation":"vertical"})); + let line = recipe(&s, id).line_ends().0.x; + assert!((line - 570.0).abs() < 1e-6 || (line - 730.0).abs() < 1e-6, "line at x = {line}, path from 600 to 700"); + // When that would put the line farther from its first point than an offset may be, the + // change is refused rather than leaving the line across the path. + let far = run(&mut s, "path.create", json!({"d":"M0 0 L950000 -100 L950000 200000 Z","closed":true}))["id"].as_u64().unwrap(); + let id = run(&mut s, "dimension.create", json!({"source":{"kind":"extent","node":far},"orientation":"horizontal","offset":100000}))["id"] + .as_u64() + .unwrap(); + assert!(s.execute("dimension.update", &json!({"ids":[id],"orientation":"vertical"})).is_err()); + assert_eq!(recipe(&s, id).orientation, vectorcraft_doc::dimension::Orientation::Horizontal); + // An offset given with the orientation places the line instead. + run(&mut s, "dimension.update", json!({"ids":[id],"orientation":"vertical","offset":-30})); + let line = recipe(&s, id).line_ends().0.x; + assert!((line - 950030.0).abs() < 1e-6, "line at x = {line}"); } /// The line of a linked horizontal dimension keeps its gap from the outermost point on its side @@ -1223,6 +1245,48 @@ fn free_points_survive_a_native_file() { assert!(near(d.a, before.a + v) && near(d.b, before.b + v), "{before:?} → {d:?}"); } +/// Saved and opened again, a dimension of a whole path still measures the path: turned, the path +/// is wider than before, and so is the dimension. +#[test] +fn a_dimension_of_a_whole_path_survives_a_native_file() { + let value = |s: &Session, id: u64| text(s, id).trim_end_matches(" pt").parse::().unwrap(); + let mut s = session(); + let rect = run(&mut s, "shape.rectangle", json!({"x":100,"y":100,"width":100,"height":60}))["id"].as_u64().unwrap(); + let id = run(&mut s, "dimension.create", json!({"source":{"kind":"extent","node":rect},"orientation":"horizontal","offset":-30}))["id"] + .as_u64() + .unwrap(); + let before = recipe(&s, id); + let doc = vectorcraft_format::load(&vectorcraft_format::save(&s.doc().unwrap().doc, false)).unwrap(); + let mut reopened = Session::new(); + reopened.add_document(doc, None); + assert_eq!(recipe(&reopened, id).source, before.source); + run(&mut reopened, "select.set", json!({"ids":[rect]})); + run(&mut reopened, "object.rotate", json!({"angle":30})); + let wide = 100.0 * 30f64.to_radians().cos() + 60.0 * 30f64.to_radians().sin(); + assert!((value(&reopened, id) - wide).abs() < 0.01, "{} against {wide}", text(&reopened, id)); + + // A file whose dimension names a node that is not there: the next edit unlinks it. + let mut v: Value = serde_json::from_slice(&vectorcraft_format::save(&s.doc().unwrap().doc, false)).unwrap(); + fn dangle(v: &mut Value) { + match v { + Value::Object(m) => { + if m.get("kind") == Some(&json!("extent")) { + m.insert("node".into(), json!(99999)); + } + m.values_mut().for_each(dangle); + } + Value::Array(a) => a.iter_mut().for_each(dangle), + _ => {} + } + } + dangle(&mut v); + let mut dangling = Session::new(); + dangling.add_document(vectorcraft_format::load(&serde_json::to_vec(&v).unwrap()).unwrap(), None); + assert!(recipe(&dangling, id).source.is_some()); + run(&mut dangling, "shape.rectangle", json!({"x":300,"y":300,"width":10,"height":10})); + assert!(recipe(&dangling, id).source.is_none(), "no longer linked"); +} + /// A linked dimension opened from a file with options it cannot be drawn with keeps its art, as a /// plain group, when the art it measures is deleted. #[test] diff --git a/crates/tools/src/dimension.rs b/crates/tools/src/dimension.rs index f5a9ca880c..fe82d4df30 100644 --- a/crates/tools/src/dimension.rs +++ b/crates/tools/src/dimension.rs @@ -2365,6 +2365,11 @@ mod tests { let above = preview(t.pointer(&c, &PointerEvent::new(PointerKind::Move, 150.0, 60.0))); assert_eq!(above["source"], json!({"kind":"extent","node":id})); assert_eq!(above["orientation"], json!("horizontal")); + // Past a corner, the side the pointer is farther out on decides. + let corner = preview(t.pointer(&c, &PointerEvent::new(PointerKind::Move, 280.0, 70.0))); + assert_eq!(corner["orientation"], json!("vertical")); + let corner = preview(t.pointer(&c, &PointerEvent::new(PointerKind::Move, 230.0, 40.0))); + assert_eq!(corner["orientation"], json!("horizontal")); let beside = preview(t.pointer(&c, &PointerEvent::new(PointerKind::Move, 260.0, 150.0))); assert_eq!(beside["orientation"], json!("vertical")); t.pointer(&c, &PointerEvent::new(PointerKind::Down, 260.0, 150.0)); @@ -2383,6 +2388,26 @@ mod tests { t.pointer(&c, &PointerEvent::new(PointerKind::Down, 150.0, 100.0)); t.pointer(&c, &PointerEvent::new(PointerKind::Up, 150.0, 100.0)); assert!(t.pending.is_none() && t.points.len() == 1, "a plain click picks a point"); + // After the first point, Alt does not make the path whole: the second click picks a point. + t.pointer(&c, &held(PointerKind::Move, 100.0, 150.0)); + assert!(matches!(t.hover, Some(Target::Segment(_))), "{:?}", t.hover); + t.pointer(&c, &held(PointerKind::Down, 100.0, 150.0)); + t.pointer(&c, &held(PointerKind::Up, 100.0, 150.0)); + let d = t.pending.as_ref().expect("the second click starts placing a dimension between the two points"); + assert!( + !matches!(d.source, Some(DimensionSource::Extent { .. })) + && d.a.distance(Point::new(150.0, 100.0)) < 1e-6 + && d.b.distance(Point::new(100.0, 150.0)) < 1e-6, + "{d:?}" + ); + + // A hovered segment's length also stays by the pointer at a high zoom. + let mut t = DimensionTool::default(); + t.pointer(&zoomed, &PointerEvent::new(PointerKind::Move, 150.0, 100.0)); + assert!(matches!(t.hover, Some(Target::Segment(_))), "{:?}", t.hover); + let o = t.overlays(&zoomed); + let near = |o: &Overlay| matches!(o, Overlay::Measure { p, .. } if p.distance(Point::new(150.0, 100.0)) < zoomed.tol(20.0)); + assert!(o.iter().any(near), "{o:?}"); } /// A point that Smart Guides leave where the pointer already is (the pointer right in line diff --git a/docs/dimensions.md b/docs/dimensions.md index ba1fd687df..f886371dbb 100644 --- a/docs/dimensions.md +++ b/docs/dimensions.md @@ -84,7 +84,7 @@ The **Dimension Tool** is in the Modify section of the toolbar. Its strip offers placed. The [linear dimensions help](https://helpx.adobe.com/illustrator/desktop/measure-and-align/plot-and-measure/plot-linear-dimensions-of-objects.html) - describes plotting an object's overall horizontal and vertical dimensions by holding Alt + describes plotting an object's horizontal and vertical dimensions by holding Alt (Option on macOS) over its path. With Alt held, hovering a path shows a box through the path's outermost points, as a Smart Guide when Smart Guides are on and in the tool's own color when they are off, with its width and height beside the pointer when Measurement Labels are on. @@ -177,8 +177,10 @@ another document. line from the first point: along the left normal of a → b for an aligned dimension, downward for a horizontal one and leftward for a vertical one. A negative offset goes the other way. - `dimension.update`: restyle or move existing dimensions, or change the orientation of linear - ones. A new orientation keeps the line on the side of the points it was on. An update that - changes nothing records no undo step. + ones. A new orientation keeps the line on the side of the points it was on. For a dimension of + a whole path, a new orientation that would put the line more than 1,000,000 pt from its first + point is an error unless the update also gives `offset`. An update that changes nothing records + no undo step. - `dimension.applyToAll`: every dimension takes one dimension's style, in one undo step. - `tool.select {"tool":"dimension"}` and `tool.setOption {"tool":"dimension","values":{"mode":"linear","style":{"units":"mm","scale":"1:10"}}}` diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 7e35dd9151..6b185f98d9 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -684,7 +684,7 @@ since 2026-10-01. **Drawing tools, Ellipse tool circle from its center sized to touch a path:** By VectorCraft's own rule, with Smart Guides and Snap to Tangent on, a circle drawn from its center (Alt and Shift) snaps its radius so that the circle touches a nearby path whenever the radius comes within the snapping tolerance of that size. The touch point is where the line from the center meets a straight segment or a curve square, inside a segment or at an anchor where the path runs smoothly, also where a curve's handle lies on that anchor. A circle can touch another circle from outside or touch it from inside, and a center inside a closed path gives a circle that touches the path from within. A corner or an open path's end is not offered, nor a curve around the same center. The touch point shows the "tangent" label and the line from the center as guides; the radius is measured along the Constrain Angle's axes, as the drawn box is, and Space moves the circle at the size it snapped to, which it keeps when Space is let go. The snap does not apply to an ellipse (no Shift). When an anchor, center or crossing is within the snapping tolerance of the pointer, or the dragged corner snapped onto one, the circle is not resized to touch a path. Snap to Grid and pixel snapping place the drawn point instead, also when turned on during the drag, and turning Snap to Tangent off during the drag stops the snap. A press with a small jitter is still a click rather than a drag. At most 256 segments near that radius are measured per pointer move, the ones nearest the pointer. `a_circle_from_its_center_snaps_its_radius_to_touch_a_line`, `a_circle_from_its_center_snaps_to_touch_another_circle_from_outside_and_inside`, `a_circle_from_its_center_snaps_to_touch_a_curve`, `a_circle_from_its_center_keeps_its_radius_without_the_snap_or_a_smooth_touch`, `a_circle_from_its_center_prefers_an_anchor_and_measures_the_segments_nearest_the_pointer`, `a_circle_snapped_to_touch_keeps_to_the_constrain_angle`, `a_circle_from_its_center_does_not_snap_to_touch_with_the_grid_or_pixels`, `a_jittered_alt_shift_press_beside_a_path_is_a_click`, `a_circle_from_its_center_prefers_an_anchor_or_a_crossing_at_the_pointer` and `a_circle_from_its_center_touches_a_path_at_an_anchor_with_retracted_handles` cover it. **Drawing tools, selected Dimension extension-line style (#7078):** Properties › Dimension exposes the selected editable dimension's existing extension-line color and weight. Both extension lines share that style, independently of the main dimension line and label. Apply to All keeps its full-style behavior for editable dimensions, leaving a protected dimension unchanged; Set as Default keeps the whole style for a new dimension created without explicit options, without changing existing dimensions. The dimension remains editable. Four cases in `crates/ui-egui/tests/dimension_extension_properties.rs` verify actual Properties input, both canvas extension lines, independent main-line/label styling, full-style Apply to All, locked and unselected controls, defaults/new dimensions, Undo/Redo, and native save/reopen with further editing. Existing document-color conversion is unchanged. The measured geometry and existing snapping behavior are unchanged; no whole-Dimension completion or score/hour change is claimed. **Drawing tools, Dimension tool horizontal and vertical linear dimensions:** A linear dimension between two clicked points or dragged out from a segment is aligned, horizontal or vertical, chosen by where the pointer moves while it is placed, and a click again by the second point gives aligned; `dimension.create` and `dimension.update` take `orientation`, and the dimension stays linked to the anchors it measures, keeps its orientation when it or the art turns, with a line that lay outside the points kept outside them; an unlinked horizontal or vertical dimension that is reflected has its line on the reflected side. `the_pointer_chooses_aligned_horizontal_or_vertical`, `two_points_measure_horizontally_vertically_or_aligned`, `clicking_again_by_the_second_point_places_an_aligned_dimension`, `a_segment_drag_measures_horizontally_vertically_or_aligned`, `points_on_a_vertical_line_measure_aligned`, `horizontal_and_vertical_dimensions_draw_lines_along_their_axis`, `turned_horizontal_dimensions_stay_horizontal`, `a_linked_horizontal_dimension_keeps_its_gap_from_turned_art`, `a_linked_horizontal_dimension_below_or_between_its_points_follows_turned_art`, `a_reflected_horizontal_dimension_keeps_its_line_on_the_reflected_side`, `a_dimension_without_an_orientation_reads_as_aligned`, `dimension_orientation_is_checked` and `a_turned_dimension_keeps_its_line_on_its_side` cover it. -**Drawing tools, Dimension tool overall width and height of a path (#5590):** With Alt (Option on macOS) held, hovering a path shows a box through its outermost points (a Smart Guide when Smart Guides are on), and a click then a placing click, or a drag out from the path, places a linear dimension of the whole path, as the [linear dimensions help](https://helpx.adobe.com/illustrator/desktop/measure-and-align/plot-and-measure/plot-linear-dimensions-of-objects.html) describes; by VectorCraft's own rule the pointer above or below the path gives its width and beside it its height. `dimension.create` takes the `extent` source, whose points are the outermost points of the path's curves, read again after every edit, so a turned path shows its new overall size, and the line keeps its distance from the whole path. `an_alt_click_or_drag_on_a_path_places_its_overall_width_or_height`, `a_dimension_of_a_whole_path_measures_its_overall_width_and_height` and `a_dimension_of_a_whole_path_stays_clear_of_the_path_it_draws` cover it. +**Drawing tools, Dimension tool overall width and height of a path:** The [linear dimensions help](https://helpx.adobe.com/illustrator/desktop/measure-and-align/plot-and-measure/plot-linear-dimensions-of-objects.html) describes plotting an object's horizontal and vertical dimensions with Alt (Option on macOS) held over its path. By VectorCraft's own rule, hovering a path with Alt held shows a box through its outermost points (a Smart Guide when Smart Guides are on); a click then a placing click, or a drag out from the path, places a linear dimension of the whole path, and the pointer above or below the path gives its width and beside it its height. `dimension.create` takes the `extent` source, whose points are the outermost points of the path's curves, read again after every edit, so a turned path shows its new overall size, and the line keeps its distance from the whole path. `an_alt_click_or_drag_on_a_path_places_its_overall_width_or_height`, `a_dimension_of_a_whole_path_measures_its_overall_width_and_height`, `a_dimension_of_a_whole_path_stays_clear_of_the_path_it_draws` and `a_dimension_of_a_whole_path_survives_a_native_file` cover it. **Drawing tools, Dimension tool points that are not anchors follow the art:** A clicked point on a segment stays at its place along the segment, also when the segment curves, and a point off the art is linked to anchors (or, when the anchors lie on one line, anchors and handles) of the path, so both ends of the dimension follow when the art is moved, scaled, turned or reflected, also when the point was placed by a Smart Guide and when the dimension is saved and opened again; a linked linear dimension of reflected art (other than art on one line) has its line on the reflected side; deleting the art, changing its anchor count or whether it is closed, turning an angle's arm into a curve, or making a measured circle or arc no longer circular leaves the dimension where it was, no longer linked, instead of removing it. `a_dimension_to_a_point_on_a_segment_follows_the_art_at_both_ends`, `a_dimension_to_a_point_off_the_art_moves_with_the_art`, `a_dimension_whose_art_changes_its_anchors_stays_where_it_was`, `a_dimension_whose_art_is_opened_stays_where_it_was`, `angle_and_arc_dimensions_whose_art_no_longer_fits_stay_where_they_were`, `a_dimension_that_cannot_be_drawn_again_keeps_its_art`, `a_linked_dimension_of_reflected_art_has_its_line_on_the_reflected_side`, `a_dimension_to_a_point_off_a_line_follows_the_line`, `a_point_off_an_arch_is_reflected_with_the_arch`, `a_point_beside_an_almost_straight_curve_follows_it`, `a_point_off_a_loop_with_its_anchors_in_one_place_follows_it`, `a_point_beside_a_reflected_line_moves_as_a_half_turn_would`, `a_point_on_a_segment_stays_on_it_when_the_segment_curves`, `a_linked_dimension_of_a_reflected_curve_has_its_line_on_the_reflected_side`, `a_dimension_of_art_reflected_across_its_points_changes_sides`, `a_dimension_between_paths_reflected_each_in_its_own_way_keeps_its_offset`, `free_points_survive_a_native_file`, `dimension_free_points_are_checked`, `points_off_anchors_are_held_against_the_path` and `a_point_smart_guides_place_is_held_against_the_path` cover it. **Drawing tools, Dimension tool points on a Smart Guide stay on the guide:** By VectorCraft's own rule, a clicked point that lies on a Smart Guide already, such as one in line with an object's center, stays where the pointer is when no anchor is within 8 pixels and no segment is within the Smart Guides snapping tolerance, instead of moving onto a segment farther than that tolerance and within 8 pixels; with Snap to Grid or Snap to Pixel on, a point stays on the grid or the whole pixel those options give. `a_point_on_a_guide_stays_on_the_guide` covers it. **Drawing tools, Dimension tool second point without construction guides through a first point off the anchors:** By VectorCraft's own rule, with Smart Guides on, the second Linear point does not snap to the construction guides through a first point that is not on an anchor, so a click beside a segment straight below such a first point lands on the segment; after a first point picked on an anchor, the construction guides through it still apply. The second point still snaps to anchors, centers and alignment lines, and with Snap to Perpendicular or Snap to Tangent on, it lands where the line from the first point meets a segment square or grazes a curve. `a_point_on_a_guide_stays_on_the_guide`, `the_second_point_after_an_anchor_lands_on_construction_guides`, `the_second_point_lands_square_to_a_segment_or_grazing_a_curve` and `linear_picks_show_and_snap_to_smart_guides` cover it.