cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven f12e864aa6 feat(mtext): integrate every inline format code in MTEXT renderer
Replace the line-based MTEXT pipeline with a run-aware parser + renderer.
Every DXF MTEXT inline code now reaches the stroke output: \H \W \Q \T \A
\C \c \f \F \M \X, the \p block (q/i/l/r/t/s), brace-scoped state, and
the \L\l \O\o \K\k decoration toggles.

Parser ([text_support]): emits Vec<MTextLine{ runs, align, indent_*,
tab_stops }> with per-run RunState; braces scope character state, paragraph
props persist across them.

Renderer ([mtext]): atomise → wrap → render. Per-run height/width/oblique/
tracking/font/colour/decorations/valign; paragraph indents and tab stops
honoured; default 4-em tab fallback.

Plumbing: tessellate() now returns Vec<WireModel>; TextStroke gains an
optional inline-colour override so per-run \C/\c emits one wire per colour.
cxf::tessellate_text_run adds a tracking multiplier. block_cache folds
multi-wire results into a single LocalWire (colour split preserved at
top-level, flattened inside cached defns).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 23:42:22 +03:00
..
app feat(app): add fixed Start tab with welcome page and recent documents 2026-05-21 16:19:31 +03:00
command cargo fmt 2026-05-12 10:36:15 +03:00
entities feat(mtext): integrate every inline format code in MTEXT renderer 2026-05-21 23:42:22 +03:00
io fix(io): drop more parser-garbage entities to prevent OOM on open 2026-05-21 10:39:39 +03:00
modules feat(app): add fixed Start tab with welcome page and recent documents 2026-05-21 16:19:31 +03:00
scene feat(mtext): integrate every inline format code in MTEXT renderer 2026-05-21 23:42:22 +03:00
shaders feat(pipeline): per-instance visibility for batched hatches (Phase 4-B, step 4) 2026-05-17 20:11:28 +03:00
snap cargo fmt 2026-05-12 10:36:15 +03:00
ui feat(app): add fixed Start tab with welcome page and recent documents 2026-05-21 16:19:31 +03:00
lib.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00
linetypes.rs chore: remove dead UI helpers and orphan toolbar stubs 2026-05-16 00:04:44 +03:00
main.rs chore(release): drop flatpak, add macOS .dmg, hide Windows console 2026-05-20 21:13:02 +03:00
patterns.rs first commit 2026-03-22 14:56:27 +03:00
update_check.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00