Pathfinder: Shape Mode buttons warn when a line encloses no area

Unite, Minus Front, Intersect, Exclude and Minus Back close open paths,
so a straight line encloses no area and does not change the result.
Until now the line was dropped with no message. Reported in #7849.

- The reply of object.pathfinder.unite, minusFront, intersect, exclude
  and minusBack now carries a warning, which the status bar shows, when
  a selected object is or holds an open path that encloses no area once
  closed (a line in a group or compound path included). The message
  names Object › Path › Outline Stroke. The area is measured with the
  path's fill rule, as Make Compound Shape's check in #7894 does.
- When such a path is what leaves the result empty (Intersect, or a
  line at the back in Minus Front), the error says so. Objects that
  leave nothing without the line keep the plain error.
- Both messages have rows in each complete-message catalog. The params
  text and docs/mcp.md describe the reply field.
This commit is contained in:
dotCooCoo
2026-11-16 07:37:40 -08:00
parent b352745d44
commit 9b1823c54c
29 changed files with 233 additions and 9 deletions
+4 -1
View File
@@ -5250,7 +5250,10 @@ anchors that don't change a result's shape off it, and `removeUnpainted` makes D
of objects with no fill (or only hidden fills). Both default to false; `{}` reads the options. Each Shape Mode and
Pathfinder command (`object.pathfinder.unite` … `minusBack`) also takes `precision`, `removeRedundantPoints` and
`removeUnpainted` for one run; the values it used join its journal entry, so a replay or an action gives the same art
whatever the options are then.
whatever the options are then. Unite, Minus Front, Intersect, Exclude and Minus Back close open paths, so a straight
line encloses no area and does not change the result. When a selected object is or holds such a path, the reply's
`warning` says so and names Object › Path › Outline Stroke. When such a path leaves the result empty (Intersect, or a
line at the back in Minus Front), the error says so too.
```json
{"name":"run_command","arguments":{"command":"object.pathfinder.options","params":{"precision":0.1,"removeUnpainted":true}}}