Merge pull request #9855 from dotCooCoo/fix/dimension-preview-bounds-group-edges

Dimension: Linear points snap onto preview bounds edges, groups and stroked type
This commit is contained in:
.CooCoo authored and GitHub committed 2026-11-27 21:36:07 -08:00
commit 8529caaba7
3 files changed
+353 -93

No files matched your search

+18 -12
View File
@@ -36,19 +36,25 @@ The **Dimension Tool** is in the Modify section of the toolbar. Its strip offers
before the second click: the rubber band, Shift and the dimension start from where the art puts
the point then. When that art is deleted before the second click, the point goes back to where
it was picked.
With Use Preview Bounds on (Preferences › General), a Linear point can land on a corner of the
preview bounds of a path or compound path whose strokes or effects reach past its anchors. The
With Use Preview Bounds on (Preferences › General), a Linear point can land on the preview
bounds of a path, a compound path, stroked type, or a group or layer with fills, strokes or
effects of its own, wherever those bounds reach past the object's geometric bounds. The
[linear dimensions help](https://helpx.adobe.com/illustrator/desktop/measure-and-align/plot-and-measure/plot-linear-dimensions-of-objects.html)
describes measuring a stroked segment by snapping onto its preview bounds. VectorCraft snaps to
the four corners of those bounds only, not to their edges, by its own rules: a click within 8
pixels of a corner lands on it instead of on the anchor at the same corner of the object's
geometric bounds, and any other anchor, of that object or of other art, that is nearer the
pointer than the corner takes the point instead. A corner that is also an anchor, as on a path
without a stroke, takes the anchor, and so does another path's anchor right on the corner. The
corners of a group's own strokes or effects, of type, of paths made into guides and of the
members of a compound path on their own are not snapped to. The point is linked to the path (in a compound path, to the member
whose own bounds reach nearest to the corner), is held against its anchors and shows the
"anchor" label. It does not start construction guides for the second point. For an object that
describes measuring a stroked segment by snapping onto its preview bounds. VectorCraft's own
rules decide where the point lands on them: a click within 8 pixels of a corner lands on it
instead of on the anchor at the same corner of the object's geometric bounds, and any other
anchor, of that object or of other art, that is nearer the pointer than the corner takes the
point instead. A corner that is also an anchor, as on a path without a stroke, takes the anchor,
and so does another path's anchor right on the corner. A click that no anchor, corner, line end,
guide, grid or pixel snapping places lands on the nearest point of an edge of the preview bounds
within 8 pixels when that edge is nearer the pointer than any segment or dimension line, and
shows the "path" label. The corners and edges of paths made into guides and of the members of a
compound path on their own are not snapped to. A point on a corner or an edge is linked to the
path (in a compound path, group or layer, to the member path whose own bounds reach nearest to
the corner, and for an edge to the member holding its nearer corner) and is held against its
anchors. A point on the preview bounds of type, or held by type in a group, has no link and
stays where it was picked. A point on a corner shows the "anchor" label. Neither kind of point
starts construction guides for the second point. For an object that
is not rotated, a horizontal or vertical dimension between two such corners measures, when it
is drawn, the outside of the stroke, the width or height that W and H show in the Transform and
Properties panels. The point then moves with the path's anchors, so a later change to the
+1 -1
View File
@@ -741,7 +741,7 @@ since 2026-10-01.
**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.
**Drawing tools, Dimension tool points land on dimensions already drawn (#8063):** By VectorCraft's own rule, with Smart Guides or Snap to Point on, a Linear point that no anchor of the art within 8 pixels takes lands on the end of a visible, unlocked dimension's dimension line, or on the far end of its extension line, within 8 pixels, and a point that nothing else places lands on the closest point of such a line within 8 pixels, so at any zoom a dimension can start where another one ends. The end of an extension line next to the point it measures does not pull points away from that anchor. With Smart Guides and Anchor/Path Labels on, a point on an anchor or line end shows the "anchor" label and a point on a segment or line shows the "path" label. `linear_picks_land_on_anchors_paths_and_drawn_dimensions` and `an_anchor_beside_a_drawn_dimension_takes_the_point` cover it.
**Drawing tools, Dimension tool points on preview bounds corners (#8537):** With Use Preview Bounds on, a Linear point can land on a corner of the preview bounds of a path or compound path with a stroke or effects; the [linear dimensions help](https://helpx.adobe.com/illustrator/desktop/measure-and-align/plot-and-measure/plot-linear-dimensions-of-objects.html) describes measuring a stroked segment by snapping onto its preview bounds. By VectorCraft's own rule, only the four corners are snapped to: a click within 8 pixels of a corner lands on it instead of on the anchor at the same corner of the object's geometric bounds, and any other anchor nearer the pointer takes the point; for an object that is not rotated, a horizontal or vertical dimension between two such corners measures, when it is drawn, the size that W and H show. The edges of the preview bounds, a group's own strokes or effects, type and paths made into guides are not snapped to. `with_preview_bounds_points_land_on_the_corners_of_the_stroke`, `preview_bounds_corners_take_picks_as_anchors_do`, `a_corner_takes_only_the_anchor_it_stands_for`, `a_point_is_held_for_a_corner_only_when_picked_on_it` and `hovering_a_corner_of_the_preview_bounds_shows_the_anchor_ring` cover it.
**Drawing tools, Dimension tool points on preview bounds corners (#8537):** With Use Preview Bounds on, a Linear point can land on a corner of the preview bounds of a path or compound path with a stroke or effects; the [linear dimensions help](https://helpx.adobe.com/illustrator/desktop/measure-and-align/plot-and-measure/plot-linear-dimensions-of-objects.html) describes measuring a stroked segment by snapping onto its preview bounds. By VectorCraft's own rules, a click within 8 pixels of a corner lands on it instead of on the anchor at the same corner of the object's geometric bounds, and any other anchor nearer the pointer takes the point; for an object that is not rotated, a horizontal or vertical dimension between two such corners measures, when it is drawn, the size that W and H show. The corners of stroked type and of a group or layer with fills, strokes or effects of its own are snapped to as well (a group's corner held against the member path that reaches it, a point on type without a link), and a click off any anchor or segment lands on the nearest point of an edge of the preview bounds within 8 pixels when no segment is nearer. Paths made into guides are not snapped to. `with_preview_bounds_points_land_on_the_corners_of_the_stroke`, `preview_bounds_corners_take_picks_as_anchors_do`, `a_corner_takes_only_the_anchor_it_stands_for`, `a_point_is_held_for_a_corner_only_when_picked_on_it`, `hovering_a_corner_of_the_preview_bounds_shows_the_anchor_ring`, `a_groups_own_stroke_and_stroked_type_give_preview_corners`, `a_group_past_the_member_work_gives_no_corner` and `with_preview_bounds_points_land_on_the_edges_of_the_stroke` cover it.
**Drawing tools, Dimension tool lines line up with dimensions already drawn (#8063, #5590):** By VectorCraft's own rule, with Smart Guides on, a linear dimension placed with its line within the Smart Guides snapping tolerance of the level of a parallel line of a visible, unlocked linear dimension already drawn has its line on that level, and with Alignment Guides on a guide runs along the level across both lines while it is placed. `a_dimension_line_placed_beside_another_lands_on_its_level`, `a_dimension_line_on_another_level_shows_one_guide_across_both`, `a_dimension_of_the_same_points_lines_up_and_the_line_follows_the_pointer`, `a_dimension_dragged_out_beside_another_lands_on_its_level` and `a_line_the_pointer_lies_across_wins_on_one_level` cover it.
**Drawing tools, Dimension tool moves a dimension already drawn:** As the [linear dimensions help](https://helpx.adobe.com/illustrator/desktop/measure-and-align/plot-and-measure/plot-linear-dimensions-of-objects.html) describes, a drag with the Dimension tool from a dimension already drawn repositions it, as one undo step, keeping what it measures and its link to the art. By VectorCraft's own rule, the part grabbed follows the pointer: a linear dimension's line moves as far across as the pointer moves, an angular arc moves as far as the pointer moves away from or toward the vertex, and a radius or diameter line turns about the center; the press must be where the canvas hits the dimension, within 8 pixels; with Smart Guides on, a linear dimension's line lands on the level of a parallel dimension line. `dimension.update` takes `at`. `dragging_a_placed_dimension_with_the_dimension_tool_moves_its_line`, `a_dimension_moved_beside_another_lands_on_its_level`, `a_dragged_dimension_follows_the_part_grabbed`, `a_dimension_is_dragged_only_where_the_canvas_hits_it` and `dimension_update_at_moves_the_line_through_the_point` cover it.
**Drawing tools, Dimension tool dimensions selected with their art keep their lines and label:** Object › Expand, Object › Expand Appearance and Object › Path › Outline Stroke leave a dimension selected with art it measures, directly or in selected groups without fills, strokes or effects of their own, as it is and change only the other art; when the new art no longer fits its link, the dimension stays where it was, no longer linked, and undo links it again. `expand_leaves_a_dimension_selected_with_its_art_as_it_is`, `expand_appearance_leaves_a_dimension_selected_with_its_art_as_it_is`, `outline_stroke_leaves_a_dimension_selected_with_its_art_as_it_is`, `a_dimension_selected_with_art_that_has_nothing_to_expand_changes_nothing`, `a_group_effect_expanded_reaches_the_dimension_it_holds`, `expand_keeps_a_dimension_in_its_asset_and_its_variable_binding`, `a_dimension_keeps_no_link_to_the_art_expand_replaced`, `a_dimension_outlasts_the_art_outline_stroke_or_expand_appearance_replaced`, `a_dimension_outlasts_the_stroke_expand_outlined` and `expand_appearance_in_safe_mode_leaves_a_dimension_selected_with_its_art` cover it.