cad-editor/src/app/view
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 4479ba8c29 fix(mtext): correct imported-text size in the editor (#394)
The editor preview mis-sized imported MTEXT badly (tiny, huge, or
collapsed). Two root causes:

- The entity's base height often isn't the visible text height: relative
  `\H…x;` codes compound, so an entity of height 1 whose body is `\H0.2x`
  renders at 0.2. Normalize the preview scale by the DOMINANT rendered run
  height (the mode of glyph-box heights, skipping zero-width caret slots),
  not `height_value()`, so the body lands at a fixed readable size and
  headings keep their proportions. EM_PX = 15.
- The bug that made it "completely wrong" was in the serializer, fixed in
  acadrust 389b31a (\H heights decayed on the parse→serialize→parse the
  editor does via folded_value); bumped here.

Also render multi-column MTEXT with its columns side by side (as the
drawing does) and let the preview scroll horizontally to reach them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 17:16:53 +03:00
..
controls.rs fix(precision): keep typed coordinates exact in f64 (#311) 2026-07-11 21:26:40 +03:00
mod.rs feat(ui): MTEXT editor in shared modal + resizable dialogs 2026-07-19 15:47:09 +03:00
modal.rs feat(ui): MTEXT editor in shared modal + resizable dialogs 2026-07-19 15:47:09 +03:00
overlay.rs fix(mtext): correct imported-text size in the editor (#394) 2026-07-19 17:16:53 +03:00
viewcube.rs refactor(viewcube): shrink cube 30%, compact controls, centre UCS picker 2026-06-27 01:56:17 +03:00