mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-02 02:38:30 -06:00
* Dimension text below the line (\X) and leader text at DIMSCALE (#1055, #1056) - #1055: in dimension text, `\X` starts the text below the dimension line (DXF Reference). CADCraft drew only the part before it, and its *D block held only that part. The part after `\X` is now drawn below the line, on the other side of it at the same distance (text centred on the line moves above it), on screen, in plots and in the *D block as a second MTEXT; text width for the fit is the wider part's. - #1056: LEADER's annotation was DIMTXT high whatever DIMSCALE said (0.25 instead of 6.25 beside dimensions at DIMSCALE 25). It is now DIMTXT × DIMSCALE (the style's, else the drawing's; 1 for annotative styles), in the style's text style, as AutoCAD's LEADER makes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Dimension `\X`: measure from the dimension line, not DIMTMOVE 1's leader The part after `\X` is placed from the dimension line's longest segment, and DIMTMOVE 1's leader (added by #2015) is drawn as a dimension line too: with the text moved far away, the leader won and the part below went next to the text. The leader's ends are now kept (`text_leader`) and its segments skipped. Text moved off its place also leaves the part below at the usual clearance under the line, instead of as far below as the text is above. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * LEADER text of an annotative dimension style: DIMSCALE, and annotative With an annotative dimension style the leader's text left DIMSCALE out and was not annotative, so at an annotation scale it stayed small beside the dimensions. It now takes DIMTXT × DIMSCALE as a dimension of the style does, and is annotative at the current annotation scale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * LEADER text of an annotative style: the annotation scale replaces DIMSCALE An annotative dimension takes the annotation scale in DIMSCALE's place (anno_scaled sets its scale override), so its text is DIMTXT × the annotation scale. The annotative leader text took DIMTXT × DIMSCALE and then the annotation scale again: twice the dimension text with DIMSCALE 2. It is now DIMTXT high and annotative; a non-annotative style still takes DIMTXT × DIMSCALE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * DIMTMOVE 1 leader is kept as the text leader again The merge of main moved the leader into dim/linear.rs without the text_leader record, so the text below the line was placed over the leader. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep `\X` text below a suppressed or extension-line dimension line With DIMSD1 and DIMSD2 both on, no dimension line segment is drawn, so the part after `\X` was dropped. The linear dimension now records its whole dimension line (`dim_axis`) and the `\X` layout falls back to it. With DIMJUST 3 or 4 the text runs along an extension line, so its normal is across the dimension line's: the text no longer moves onto the dimension line at the arrow, and the part below stacks under it in the text's own frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>