Files
OneCAD-Draft/src/entities
HakanandClaude Opus 4.7 f4ae0e7773 fix(scene): per-line text greek honors word-wrap subline count
`text_obb_corners_native` derived MText line count from explicit `\n`
matches in `m.value`, so any MText that relied on `\P`/`\N` breaks or
word-wrap (rectangle_width-driven) reported a single line. The greek
emitter then split the OBB into one row and the user saw a single box
on top of a 5-line wrapped paragraph.

  - text_support: new `mtext_line_count` — strip codes, split on
    \n/\P/\N, word-wrap each paragraph against `rectangle_width`,
    sum. Same line splitting the MText/MultiLeader renderers already
    perform; centralized for reuse.
  - text_obb_corners_native: takes `mtext_lines_override: Option<usize>`.
    When supplied, OBB height = h_world × n × line_spacing_factor; this
    also overrides a possibly stale `rectangle_height` on resaved DWGs.
  - Top-level greek paths (scene/mod.rs) compute the line count via
    `mtext_line_count` and pass it through to baseline / rect emission.
  - block_cache: tessellate_sub_local computes the count at defn build
    so the stored `text_obb_local` is wrap-aware; emit_text_baseline
    and emit_greeked_text recover n_lines from `ulen / h_local` as
    before and now produce the correct per-row split inside Inserts.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-15 17:41:56 +03:00
..
2026-05-12 10:36:15 +03:00
2026-03-22 14:56:27 +03:00
2026-05-12 10:36:15 +03:00
2026-05-12 10:36:15 +03:00
2026-05-12 10:36:15 +03:00
2026-05-12 10:36:15 +03:00
2026-05-12 10:36:15 +03:00
2026-05-12 10:36:15 +03:00
2026-05-12 10:36:15 +03:00
2026-05-12 10:36:15 +03:00
2026-05-12 10:36:15 +03:00