mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-04 22:50:44 +00:00
From CodeRabbit's second to fourth reviews of #954, and codyvogt (from #1371's): - The Properties pattern edit and HATCHEDIT share one helper (hatch::set_pattern) and one rule for the names a hatch takes: SOLID drops a gradient fill too, a blank name changes nothing (it's reported as ignored), and a name no pattern has is refused, as HATCHEDIT refuses it (a hatch's own name matches in any case). - properties.set refuses a call that names an object that isn't there before it edits any, so a bad handle late in the list no longer leaves the earlier objects edited. - A prefix or suffix edit goes into the DIMPOST/DIMAPOST the dimension has after the call's other edits (its new style, cleared overrides), not the ones it had before. - The prefix and suffix rows are marked overridden when DIMPOST or DIMAPOST is, and their "Use the style's value" clears that variable. - Rotating aligned or fit TEXT turns its baseline's second point with it (the renderer takes their direction from the two points). - Justify Align or Fit measures the baseline from the text as the call leaves it (its new contents, style, height, width factor and rotation). - `scale` is an insert's or hatch's scale only; it no longer also becomes a DIMSCALE override of a dimension in the selection (that's `dimScale`). - A text style that only a dimension's text style override names is in use, so style.delete refuses it (a rename follows those overrides already). - Editing a text or dimension style redraws the dimensions read from a file only when the style changed: making it current keeps their geometry. - docs/mcp.md's example finds the dimension's handle with query_entities before it describes and sets it. Co-Authored-By: Claude Opus 5.5 <[email protected]>