Dimension: leave a null arrowHead out of saved options

Saved and recorded dimension options carried "arrowHead": null even
without a stroke head, so a recorded dimension.create failed in versions
that do not know the option. The field is now left out when it is null.
dimension.create, dimension.update and Dimension Tool Options still take
it. The name is read without a copy of its own, and a name longer than
any built-in one is refused before it is parsed. Through ui.dialog.set,
an arrowStyle set in Dimension Tool Options clears arrowHead, and a
built-in arrowHead sets the arrowStyle of its Arrow Style entry, as that
menu does. The Arrow Style field reads only a built-in head's name from
a draft.

The Stroke panel and Arrow Style look up a built-in arrowhead's name in
the catalog's arrowhead rows first, then its plain row. Every complete
catalog gets an arrowhead row for Feather, so the Feather arrowhead is
named as an arrowhead in each, and the de, gu, it, ja, ko, uk, vi,
zh-hans and zh-hant catalogs no longer show it in English.

Versions that have the stroke arrowhead but do not read arrowHead keep a
dimension's saved arrows until they draw the dimension again, and then
draw arrowStyle; versions without the stroke arrowhead do not open the
file. The params text, the doc comments, docs/dimensions.md, docs/mcp.md
and docs/target-app-parity.md say so.

The French Line Arrow row moves next to the other rows of its block.
This commit is contained in:
dotCooCoo
2026-11-18 16:46:10 -08:00
parent 269e8d85fe
commit 76705afc2f
38 changed files with 164 additions and 28 deletions
+3 -1
View File
@@ -90,7 +90,9 @@ from the object) or **Between Line and Object**; **Alignment** is **Left**, **Ce
**Arrow Style** lists **Filled**, **Open**, **Tick** and **None**, then every other built-in
arrowhead of the Stroke panel, each with a drawn preview before its name. Custom arrowheads are not
listed.
listed. A version that has the arrowhead in the Stroke panel but not in Arrow Style keeps the saved
arrows of such a dimension until it draws the dimension again, and then draws **Filled** arrows. A
version without the arrowhead does not open the file.
Scale means **drawing : real size**, independent of zoom. At **1:10** a 1 in line on the page is
labelled 10 in; at **10:1**, 0.1 in. It scales lengths, not angles or the size of text and arrows.