cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven cd7306f530 feat(text): MTEXT background fill / mask + text frame, editable in Properties
Render the MTEXT background (never drawn before — the flags were only shown
read-only in the panel) and make it editable.

- Text arm emits an opaque fill_tris rect behind the glyphs: flag 0x01 uses
  the entity background colour, 0x02 uses the canvas colour (a wipeout-style
  mask). Box = glyph bounds padded by (background_scale - 1) × text height.
- Text frame (flag 0x10) draws a closed rectangle in the text colour around
  the same box.
- Threaded `bg_color` into `tessellate()` (+ all callers and the
  MultiLeaderTess trait) so the mask can use the drawing-window colour.
- Properties: "Background mask" is a Off / Fill / Mask dropdown, "Background
  color" is its own colour picker (independent of the entity colour — new
  PropBgColor* messages; picking a colour switches to Fill mode), and "Text
  frame" is a checkbox toggle. Edits re-tessellate so the change shows live.

Renders via the face3d fill path, so the fill shows with FILLMODE on (same as
MLEADER background fill); the frame is a stroke and always shows.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-07 17:41:16 +03:00
..
app feat(text): MTEXT background fill / mask + text frame, editable in Properties 2026-07-07 17:41:16 +03:00
entities feat(text): MTEXT background fill / mask + text frame, editable in Properties 2026-07-07 17:41:16 +03:00
io fix(plot): correct hatch rendering in PDF / plot export 2026-07-06 12:24:10 +02:00
modules refactor(text): per-entity SDF text — all text kinds, selection/hover highlight 2026-07-07 17:01:36 +03:00
plugin feat(plugin): surface loaded plugin commands in command-line autocomplete 2026-07-04 23:01:53 +03:00
scene feat(text): MTEXT background fill / mask + text frame, editable in Properties 2026-07-07 17:41:16 +03:00
shaders feat(text): SDF glyph-atlas foundation for shader text rendering 2026-07-06 22:03:36 +03:00
ui feat(text): MTEXT background fill / mask + text frame, editable in Properties 2026-07-07 17:41:16 +03:00
cli.rs Initial commit 2026-06-25 00:01:36 +03:00
command.rs revert: drop PLOTWINDOW forced endpoint snap (#293) 2026-07-06 20:35:50 +03:00
config.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
lib.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
main.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
par.rs feat(wasm): sequential rayon shim for the web build 2026-06-16 17:11:20 +03:00
patreon.rs feat(web): show Patreon supporters on the web build too 2026-07-02 01:25:24 +03:00
snap.rs refactor(text): per-entity SDF text — all text kinds, selection/hover highlight 2026-07-07 17:01:36 +03:00
sys.rs fix(web): paste clipboard text into the TEXT / MText editors 2026-06-20 17:05:02 +03:00