chore: post-merge cleanup for #287/#289

- Reword the two new explanatory comments to describe the behaviour on its
  own instead of citing another product.
- window_to_sheet: drop the unused window_min parameter (the caller already
  derives its coordinate offset from the returned min-corner position) and fix
  the doc comment to match what the function returns.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-07-06 01:22:10 +03:00
commit b50921923f
4 changed files with 16 additions and 20 deletions

View file

@ -283,10 +283,9 @@ fn build_pdf(
}
// Line weight: CTB override (in pt) or screen px → points. Divided by
// `scale` in both branches so pen widths stay absolute under the
// scaled CTM above (AutoCAD keeps lineweights independent of plot
// scale) — without this a Fit plot of a large window renders
// near-invisible hairlines.
// `scale` in both branches so pen widths stay absolute under the scaled
// CTM above — lineweights are independent of plot scale, so without this
// a Fit plot of a large window renders near-invisible hairlines.
let lw_pt = lw_override
.unwrap_or_else(|| (wire.line_weight_px * LW_PX_TO_PT).max(0.1) / scale.max(1e-6));
if last_lw.map(|l| (l - lw_pt).abs() > 0.01).unwrap_or(true) {