cad-editor/src/modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 8e09a312aa fix(dim): let the dimension line say which distance is measured
DIMLINEAR chose its measurement axis from the two extension line origins
alone, taking the longer of their x and y differences. Every line tilted
less than 45° therefore came out horizontal and stayed horizontal, no
matter where the dimension line was dragged.

The third pick is what answers the question. A linear dimension reports
the run or the rise; pulling the dimension line clear of the points above
or below asks for the horizontal distance, pulling it out to the side
asks for the vertical one.

"Clear of the points" is measured against their extent, not their
midpoint. A dimension line dragged straight up from near one end of a
long pair is still above them even though it is a long way from the
middle, and a midpoint test would call that sideways. When the location
is inside the pair on both axes it has not said anything yet, so the
longer side still decides.

Nothing else needed changing: the measurement already projects onto the
rotation axis, and the block builder already derives the dimension line
and both extension lines from it.

Closes #669

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-08 00:34:03 +03:00
..
annotate fix(dim): let the dimension line say which distance is measured 2026-08-08 00:34:03 +03:00
draw feat(units): read back every form the drawing writes 2026-08-07 23:46:49 +03:00
insert feat(units): read back every form the drawing writes 2026-08-07 23:46:49 +03:00
layout feat(plot): add Print All workflow 2026-08-04 11:29:11 +03:00
manage chore: remove orphaned manage/mview.rs dead code 2026-07-12 00:37:49 +03:00
model feat(ucs): integrate coordinate systems 2026-08-04 23:17:54 +03:00
view feat(view): one list of visual styles behind every way of choosing one 2026-08-07 14:15:59 +03:00
mod.rs refactor: replace build.rs module codegen with a static registry 2026-06-26 23:19:20 +03:00
registry.rs refactor: replace build.rs module codegen with a static registry 2026-06-26 23:19:20 +03:00