Commit Graph
3261 Commits
Author SHA1 Message Date
DievartisandFredApps 8e329e42b9 Hatch dialog: create custom patterns and capture a repeating tile from a drawing (#3631)
* Hatch dialog: author custom PAT families and capture a repeating tile

* Handle Escape through CADCraft's window cancel intent in the hatch dialog

* Keep custom hatches in the pattern gallery and fix repeating tile capture

* Exercise keyboard input in the hatch gallery filter

* Use the active drawing’s hatch geometry and finish tile picks only after two corners

Resolve embedded pattern lines for the gallery, HATCH, HATCHEDIT and Properties. Retry an empty compact swatch at full-period scale. Add coverage for two reopened drawings with the same pattern name, incomplete picks and aligned sparse marks.

The earlier shallow-slope fix skips empty scanlines before clipping. Its regression counts 10,000 full-length marks in a 100 by 100 tile area.

* Expose hatch tile capture as a headless engine command and reuse it in the dialog

* Respect drawing visibility and localize hatch capture errors in the dialog

* Use the public UI state constructor in workspace tests and route hatch capture through CadApp::run

* Classify in-memory hatch tile capture as requiring no files

* Check the saved hatch by handle independently of entity iteration order

* Reserve the native user-defined hatch name across custom pattern entry points

* Add the Chinese command label for Capture hatch tile

chinese_menus_and_commands_are_fully_translated requires every command
label in the Simplified Chinese catalog. The Ubuntu gate failed with this
one key still in English.

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-12-02 16:18:48 +01:00
FredApps 46ebd11c11 fix(ci): give each plotter test its own device name (#3758)
The in-memory plotter store is shared by the whole test process. On
FreeBSD the tests run as threads of one process (cargo test), so the
three tests that each create a "Banner Printer" collide and the later
one fails with "plotter `Banner Printer` already exists". Each test now
creates a device with its own name.
2026-12-02 11:54:15 +01:00
FredApps e064c97a3d io: take the test-only acadrust from the storytold/acadrust fork (#3761)
* io: take the test-only acadrust from the storytold/acadrust fork at storytold/v0.6.6

* io: say the test-only acadrust matches craft-dwg's crates.io 0.6.6 until the craft-libs repin
2026-12-02 10:49:50 +01:00
ALDREY, ALEJO EZEQUIEL 5ef8b342de Web: optional external file providers, disabled by default (#2593)
Adds an optional file-provider bridge for a trusted same-origin CADCraft web host. It is off until the host calls registerProvider. Provider Save and Open transfer single DXF files in memory and refuse drawings with external images or xrefs. Contributed by @alejocapo04.
2026-12-02 09:20:05 +01:00
code-compliantandClaude Fable 5.2 5f751ee30d AutoLISP: entnext reaches an INSERT's ATTRIBs and SEQEND (#1660) (#3396)
* AutoLISP: entnext reaches an INSERT's ATTRIBs and SEQEND (#1660)

- lisp: name an INSERT's ATTRIB and SEQEND records; entnext walks them, then the next main
  entity, and entget lists a record with its owner in group -2 (#1660)
- lisp: entmod of an ATTRIB takes its value (group 1) only, as one undo step; another property,
  a SEQEND, entdel and entmake of one return nil and change nothing (#1660)
- doc: the handles LISP named, shared with the drawing's snapshots and never given out by
  new_handle; 65,536 names, 1,024 probes past taken handles (#1660)
- io: entity_sub_record, one record of an INSERT at a time, never its other records (#1660)
- engine: an optional host hook for that record, so EntityCodec is unchanged (#1660)
- cli, web, app: install the hook; CLI tests for the walk, the value edit, the name bounds and
  the refusals (#1660)
- docs: autolisp.md on the records, their names, when a name ends, and the value-only edit (#1660)
- reused from #1753 (closed), with thanks: the entity_list extraction with the -2 owner, the
  writer's record splitting, and the entnext_walks_an_inserts_attribs test skeleton

* Keep AutoLISP's attribute names within their drawing

- Hold an INSERT's attribute names in the session's LISP state, not in
  cadcraft_doc::Drawing: comparing drawings is plain data again and takes no
  lock. The session reserves the handles in the drawing before any change, so
  new_handle still never gives one out, also after a drawing swap.
- End the names when the Block Editor closes: its drawing starts from the
  host's handles, so a name given there must never resolve to a host record.
- End only the erased reference's names on ERASE. Erasing another object
  leaves an attribute name holding, and OOPS still revives none.
- Go on to the next entity when an INSERT has no record provider installed.
- Refuse an ATTRIB edit whose outer list ends in an atom.

* Keep issued attribute names out of the drawing.

A copied drawing could reuse a name, and storing the names in the drawing marked a saved drawing changed.

* Name an INSERT's ATTRIBs and SEQEND apart from drawing handles

An ATTRIB or SEQEND has no handle of its own in the drawing, so the
name AutoLISP gives it is now a value of its own (an entity name for
`type`), numbered from one count for the whole process that never
gives a number twice. No handle of any drawing, of a copy of one, of
another session or of another thread can be such a name, so nothing
is reserved in the handle space any more: cadcraft-doc, `new_handle`
and the copy-then-install paths are as on main, and naming or reading
a record changes neither the drawing nor its saved state.

What a name stands for (reference, place, tag) stays in the engine's
LISP state, by document. Names end on Undo, Redo, ATTSYNC,
-BLOCKREPLACE, on opening and closing the Block Editor, and when a
change is taken back; erasing a reference ends only its names, and
OOPS or `entdel` bringing it back revives none. `entupd` of a record
answers its name; selection sets and `command` take no record.

Tests cover other sessions, documents and threads giving out handles
in a drawing copy, the copy paths (INSERT from a file, XATTACH, AUDIT,
REFCLOSE), and the AutoLISP behaviour of the names.

* Keep one ATTDEF index per state of a block's entities

EntityStore gets a content token: a clone has its store's, and every
edit gives the store one that no store has had. The DXF writer keys
its ATTDEF index on that token and keeps the indexes of several
blocks, up to a fixed number of tags in all. Two copies edited apart,
or a different edit after Undo, never read each other's definition
properties, in AutoLISP reads or in a saved file, and reads that
alternate between references of different blocks examine each
definition once.

* End record names when a command puts an earlier drawing back.

MOCORO Undo restored its history drawing, handle seed included, so the next Copy could reuse the removed reference's handle. That restore now advances the name epoch. An ATTDEF index that would pass the tag budget is not stored.

* Match an oversized ATTDEF definition in full and remember it is too large to index

* Count record names with try_update, not the deprecated fetch_update

Rust 1.100 deprecates fetch_update and names try_update in its place, so
clippy with -D warnings stopped the gate at RecordName::fresh. It is the
same operation: the checked increment and the None once the count runs
out are unchanged. try_update compiles on Rust 1.95, the workspace's
minimum.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Record tests check the objects they rely on

Five tests could pass without the state they are about.

The two ATTDEF index tests changed only a layer, so both states of the
block gave T the same handle, and an index kept for the wrong state
still read the right layer. One state now keeps T on the first ATTDEF
and the other passes T to the second, on another layer. With one index
shared by every store, the old tests passed and these fail.

The MOCORO and grip Copy tests did not check that a copy was made, or
that the copy after the Undo took the removed copy's handle. They now
check both, and that the name read the first copy before the Undo.

The walk at the top of the handle range compared two values that are
both nil when the line at FFFFFFFFFFFFFFFF is not in the drawing. It
now reads that line first.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Test that entdel preserves unrelated ATTRIB names

* Fix AutoLISP record lifetime and REFEDIT edits

* Run attribute name cases in engine integration suite

* Fix text fixtures after main merge

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
v0.21.0-nightly.20261202.46783602376.1.g5f751ee30d04
2026-12-02 00:34:42 +01:00
FredApps 0f7940a986 test: count attribute tag matching work instead of timing it (#3723) 2026-12-01 17:37:27 +01:00
a79b9feca9 feat(doc,io,render): support MTEXT background mask (DXF 90/63/421/45) (#3240)
* feat(mtext): support MTEXT background mask (DXF 90/63/421/45) in doc, io, and render

* fix(mtext): write background mask before column tags and use Autodesk border offset factor

* fix(render): resolve ByLayer/ByBlock for MTEXT background mask and guard non-finite rotation

* fix(render/mtext): cover overflowing glyphs, MLeader text opt, and attrib ByBlock bg

* fix(io/dxf): omit inactive MTEXT background mask conditional tags

* Fix MTEXT background test for current Text fields

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>

---------

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: vantruong-dang <vantruong-dang@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-12-01 12:50:47 +01:00
b778851b48 Viewports keep their own UCS and their other settings through save and copy (part of #1316) (#1484)
* Viewports keep their own UCS and their other settings through save and copy (part of #1316)

A layout viewport's own UCS and every setting CADCraft doesn't model
were dropped on read, so saving a sheet set lost them for good.

- Viewport::ucs (origin, X/Y axes, elevation, orthographic type, named
  and base UCS by name) and ucs_per_viewport (UCSVP), read from and
  written as VIEWPORT groups 110-112, 146, 79, 345/346 and 71.
- Viewport::extra: the viewport's other groups as read (snap, grid,
  lens and clipping, render mode, plot style sheet, shade plot, visual
  style, background, lighting). They belong to the entity, so COPY and
  MIRROR carry them; dxf_raw::finish writes them before the xdata and
  points their references at what they named (ForeignExtra::tail).
- Not carried raw: the view twist, direction and target (51, 16, 17),
  which say where the view centre is measured from; writing them back
  while the centre is in drawing coordinates would move the view.
- DWG: the bridge drops 345/346, the plot style sheet, shade plot and
  lighting groups, so CADCraft xdata keeps a copy (VPUCS, VPEXTRA) that
  the reader falls back on. The visual style, background and shade plot
  references are still lost through DWG (file-format-parity.md).
- A UCS with unreadable or zero-length axes is no UCS; a named UCS
  that's no longer in the table isn't pointed at.

Tests: another program's viewport read; DXF save and reread; two DWG
round trips; a copied viewport; a deleted named UCS; a viewport without
a UCS written as before; hostile groups (5000 extras, NaN axes, bad
handles); COPY and MIRROR through the engine.

* Viewports: VPEXTRA keeps only a viewport's own groups; a base UCS handle alone is kept

- CADCraft's VPEXTRA xdata copy of a viewport's unmodelled groups is
  merged only for groups that can stand inside the AcDbViewport subclass:
  a record start (0), handles (5, 105), a subclass (100), a group brace
  (102) or xdata (1000 on) from a crafted file are dropped, so a save
  can't write records or handles the user didn't draw.
- A VIEWPORT whose only UCS group is its base UCS handle (346) now reads a
  UCS, so the base UCS is resolved and written back.

* Viewports: drop structural groups from a record's own extras; index UCS names for the xdata fallback

- A VIEWPORT's own AcDbViewport groups are kept raw only when they can
  stand in the subclass, as CADCraft's VPEXTRA copy already was: a second
  handle (5, 105) or a group brace (102) written back would give the
  record two handles. The record's own pointer groups stay, to be
  remapped with it.
- The named and base UCS that CADCraft's xdata names are looked up in a
  case-insensitive index built once with the UCS table, not by scanning
  every UCS for each viewport.

* Parity checklist: regenerated after merging main

* Parity checklist: regenerated after merging main

* Parity checklist: regenerated after merging main

* xtask: take main's stats.rs (the merge kept a test import Linux clippy rejects)

* Viewport tests built on main set the UCS fields

* WIP row 74: Codex's test edits kept; production normalisation (identity UCS -> None, default-valued extras dropped in dxf_read viewport_ucs/viewport_extra) still to do

* Viewports: a default viewport reads back with no UCS or extra groups (#1484)

A DWG save writes an identity UCS and the default snap, grid, lens, clip,
render and shade groups for every viewport, so a viewport nobody gave a UCS
came back with one and a dozen extras. The DXF reader now reads an unnamed
identity UCS (UCSVP 0) as none, and keeps a group in extra only when it
differs from the defaults, listed in one table. Tests: a_default_viewport_reads_back_without_ucs_or_extras,
a_viewport_with_non_default_snap_keeps_it; layouts_and_paperspace passes.

* Viewports: clippy range patterns; raster_image test builds with the viewport's UCS fields

* Tests: move the viewport UCS suites into the it entry points (#1316)

viewport_ucs_roundtrip.rs and viewport_ucs_copy.rs were separate test
binaries; AGENTS section 30 wants the existing entry points. All 12 DXF/DWG
persistence tests and the COPY/MIRROR tests are kept.

* Tests: move the viewport UCS suites into the it entry points (#1316)

viewport_ucs_roundtrip.rs and viewport_ucs_copy.rs were separate test
binaries; AGENTS section 30 wants the existing entry points. All 12 DXF/DWG
persistence tests and the COPY/MIRROR tests are kept.

---------

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: SBaksa <18648812+SBaksa@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-12-01 12:16:30 +01:00
e6bbf59c31 Expose xdata through entities, properties.set and AutoLISP's -3 group (#2469)
* Expose xdata through entities, properties.set and AutoLISP's -3 group

An entity's extended data was read, kept and written back (#528) but
invisible to the API: `entities` left it out, `properties.set` had no
field for it, `entget` never returned the -3 group and `entmod` dropped
it. Now `entities {xdata: true | "APP"}` and `properties` list it per
application with values typed by group code, `properties.set {xdata}`
replaces or removes one application's data after checking codes,
values, braces and sizes, and AutoLISP's entget/entmod/entmake carry
the -3 group, with `regapp` and the APPID table. The applications
CADCraft writes from its own model are reserved (one list, now in
cadcraft_doc, shared with the DXF reader).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Check xdata before any change in properties.set; cap entmake's xdata across applications

Review follow-ups on #2469:
- properties.set validated xdata after ensure_layer, so a request naming a new
  layer and carrying bad or oversized xdata left the layer behind on failure.
  The xdata checks now run first.
- entmake capped each application's groups but not their sum; an entity could
  exceed MAX_XDATA_GROUPS across applications. The total is checked as entmod
  already does, with a test.
- docs: the control-protocol xdata section is an h2 like its neighbours; the
  file-format-parity revision row no longer has a pipe inside a code span.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* properties.set checks every handle first; a dotted -3 group is a bad list

Review follow-ups on #2469:
- properties.set edited the objects before a handle that names nothing and
  then failed, keeping those edits (and a new layer). Every handle is checked
  before anything changes; a missing one is refused with its hex.
- xdata_from_list read `(-3 . 7)` as "no applications" and let entmake/entmod
  succeed with nothing set. A -3 whose cdr is not a list is refused (listp),
  so both return nil as for any bad list.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* An xdata application's groups must be a proper list

Review follow-up on #2469: `("ACME" . 7)` in a -3 group read as "no groups",
which `entmod` takes as "remove ACME's data", and a dotted tail after real
groups was dropped. The application's tail is checked as a list (listp) like
the -3 group itself, so entmake/entmod answer nil and change nothing; test
covers both shapes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Runs of one xdata application in any case are one application in the API

Review follow-up on #2469: a file can carry `ACME` and `acme` runs on one
entity. `entities` showed them as two JSON keys and `entget` as two lists, and
writing either back through properties.set or entmod replaced the application
twice, keeping only the last run's groups. Both projections now merge runs
case-insensitively (first spelling, all the groups), as set_xdata_app already
treats them; tests round-trip such an entity through both APIs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Refuse raw ACAD xdata on a dimension, whose ACAD run is written from its overrides

Review follow-up on #2469 (austin62jake): properties.set accepted
`xdata: {"ACAD": …}` on a dimension and `entities` showed it, but the DXF
writer emits the dimension's ACAD run (DSTYLE) from its overrides and the
reader models it back, so the raw groups vanished on save. ACAD can't join
RESERVED_XDATA_APPS (files carry ACAD data on other entities that CADCraft
keeps raw), so the rule is per entity: `is_model_xdata_app(name, kind)` is
the reserved list on any entity plus ACAD on a dimension. properties.set
refuses it before anything changes, entmake/entmod answer nil. Tests cover
both paths, including that ACAD on a line survives a DXF round trip and the
dimension's own override does too. control-protocol.md says so.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(lisp): return and accept REAL for xdata group 1071

---------

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: FredApps <fredapps@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-12-01 11:38:34 +01:00
20524853c1 Options: preview and selection effects in Visual Effect Settings (#964)
* Options: preview and selection effects in Visual Effect Settings

Selection Preview Effect (Dash / Thicken / Both, PREVIEWEFFECT) as AutoCAD
offers it, and Selected Objects Effect (Dashed / Selection color,
SELECTIONEFFECT), so neither has to be typed. They stay off the Selection tab
itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Options test: each Visual Effect Settings choice sets its variable

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Tests: the visual effect test sets up the app's headless runtime, as main's UI tests now do

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Translations to craft-i18n (AGENTS.md rule 16)

The Greek and Ukrainian rows this PR added to the app catalogs are removed; the
English keys stay, and show until craft-i18n has them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Cody Vogt <18035288+codyvogt@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:55:01 +01:00
vantruong-dangandvantruong-dang 0590499adc fix(io): apply SPATIAL_FILTER boundary transform to preserve pasted XCLIPs (#2922)
* test(io): cover non-identity XCLIP filter transform

* fix(io): apply SPATIAL_FILTER boundary transform to clip vertices

* test(io): add DXF and DWG round-trip coverage for transformed XCLIP boundaries

* docs(io): document SPATIAL_FILTER matrix semantics and cover rotation/scale

* fix(io): invert boundary transform matrix per Autodesk DXF spec

* docs(io): annotate SPATIAL_FILTER group 40 translation indices in integration test

* fix(io): reject sheared boundary transforms to preserve foreign data

* fix(io): use scale-independent orthogonality check for boundary transforms

* fix(io): expand rotated 2-corner boundary_xf clips and add docstrings

* test(io): verify rotated 2-corner boundary expansion across 30/45/60/90 degrees

* fix(io): expand 2-corner clips on any rotated net transform and align rotated writer

* test(io): cover rotated+inverted 2-point XCLIP round-trip

* fix(io): use pure rotation boundary_xf for rotated 2-point clips to support non-uniform scale

* fix(io): canonicalize 2-point SPATIAL_FILTER corners in boundary space

* fix(io): read DWG through the shared DXF bridge in the XCLIP test

---------

Co-authored-by: vantruong-dang <vantruong-dang@users.noreply.github.com>
2026-12-01 10:52:55 +01:00
Moritz BoellingandClaude Opus 5.5 02461788e6 PDF plots write a filled primitive as the outline of its triangles, not one subpath per triangle (#3459) (#3614)
A solid hatch, wide polyline, wipeout mask or filled glyph reached the PDF
writer as a triangle list, and each triangle became its own closed subpath.
The writer now cancels edges that two triangles share in opposite
directions and chains what is left into closed loops, written as one
nonzero fill. The winding number at every point depends only on the net
directed edges, so the filled area is the same for overlapping, mixed-
orientation, zero-area and T-junction triangles; vertices are matched by
the exact bits of the f32 coordinates written. O(n log n) time, O(n) memory,
no recursion.

For a 400-vertex solid hatch with a square island the page content stream
goes from 30,086 to 9,922 bytes (457 to 3 subpaths) and the compressed file
from 5,874 to 4,223 bytes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:51:34 +01:00
FredApps fe6530dec5 Merge pull request #1370 from codyvogt/fix/annotative-mleader-contexts
DXF/DWG: annotative multileaders keep their scales, and drawings open at their current annotation scale (stacked on #1362)
2026-12-01 10:49:57 +01:00
FredApps d7eb43d2dc Merge pull request #1362 from codyvogt/fix/annotative-text-contexts
DXF/DWG: annotative text, MText and dimensions keep their annotation scales on save (stacked on #1244)
2026-12-01 10:48:28 +01:00
FredApps 452a3b22eb Merge pull request #1244 from codyvogt/fix/block-record-annotative
DXF: annotative blocks keep their flag, uniform scaling, and their references' and attributes' annotation scale contexts on save
2026-12-01 10:45:14 +01:00
FredApps 5ffd5e858e Sync updated annotative text prerequisite into multileader contexts 2026-12-01 09:39:28 +01:00
FredApps dc5192180c Sync annotative block prerequisite and refresh the text fixture defaults 2026-12-01 09:39:26 +01:00
FredApps e928d57182 Sync current main into annotative block contexts 2026-12-01 09:39:20 +01:00
Tanish Manku 8bece25483 Merge pull request #3703 from storytold/stack/e4
Land #3695, #3658, #3039, #3404: Aligned text extents, fill-cap truncation, INSERT with EXPERT, Attribute Editor dialog
2026-11-30 21:28:02 -07:00
Tanish Manku 0d17d4cc50 Landing fix: #3404's TEXT fixture takes #3679's new fields 2026-11-30 20:46:29 -07:00
Tanish Manku 34d52cd336 Merge #3404: Block attributes: Attribute Editor and Properties attributes (repair of #1213) 2026-11-30 20:46:21 -07:00
Tanish Manku f2733ade72 Merge #3039: INSERT of a drawing file does not ask to redefine its block when EXPERT is 2 or more 2026-11-30 20:46:19 -07:00
Tanish Manku 3dc0e581c6 Merge #3658: render: mark the display list truncated when a fill stops at the fill cap (#3636) 2026-11-30 20:46:17 -07:00
Tanish Manku c49a815b1d Merge #3695: Aligned text extents hold narrow letters; unfitted text keeps a box of its own size (follow-up to #3506) 2026-11-30 20:46:15 -07:00
Tanish Manku c9471b09dc Merge pull request #3702 from storytold/land/3699
Land #3699: Update and Restart asks about unsaved drawings
2026-11-30 20:40:51 -07:00
moandClaude Fable 5.2 56388075ae Text that draws nothing has an empty box
A value of nothing but underline and overline toggles (%%u%%u) has no drawn
character, and the box floored the count at one: Aligned over a span of 20
that was a box of 20 by 120 for text that draws nothing. The box is empty
when no character is drawn, for an empty value too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 03:29:28 +00:00
2ez4gcxandClaude Opus 5.5 f4edfee60c Merge origin/main into fix/fill-cap-truncated
main now carries #3594 and #3622 (landed through #3692), which rewrote
clip_prim around Limits and the pieces/fill closures. The only conflict is
that block in crates/render/src/viewports.rs: main's clip_prim is kept and
its Clip::Poly fill arm gets this branch's one line, so both truncation
signals stay:

- #3594's whole() in the fill closure marks the list when the clip stops
  at the room left or at its own 6,000,000-point stop;
- may_leave_out marks it when the clip region's own triangles stopped at
  the fill cap (#3636).

truncated is only ever OR-ed, so neither signal clears or doubles the
other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:29:01 +07:00
moandClaude Fable 5.2 165287474e Merge main: the text box keeps its four corner points, mirrored as on main
Main (PR 3679) mirrors the box of Backwards and Upside-down text about the
point the text is placed by. This branch builds the box from a bottom and a
top instead of an offset and a height, so the mirror is applied to those
corner points.

Tests: the two helpers (ours with a vertical justification, main's with the
mirror flags) are one that takes both, and the test of the vertical
justifications also runs with each mirror.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 03:23:49 +00:00
code-compliant 4e9a5058cb Address attribute editor review 2026-12-01 11:15:31 +08:00
Tanish Manku d0872cc118 Merge #3699: Update and Restart asks about unsaved drawings 2026-11-30 20:03:50 -07:00
Tanish Manku 7f2e4544dc Merge pull request #3701 from storytold/docs/parity-batch-1201
Parity docs: rows updated for what merged from 2026-11-25 to 2026-12-01
2026-11-30 19:56:56 -07:00
Tanish Manku 5b145ab603 Merge pull request #3700 from storytold/stack/e3
Land #3628, #3583, #3625, #3617, #3248, #3221, #3287, #3259, #3232, #3291, #3679: Drawing Units dialog, SCALE and MOVE base points, TRIM/EXTEND Shift, mirrored hatch patterns, layout framing, deep zoom, RECTANG X/Y, Save As version, Turkish, TEXT backwards
2026-11-30 19:34:54 -07:00
Tanish Manku 4d0f4dc5b6 Parity docs: F2's impact names what is left; Tamil needs a Tamil font 2026-11-30 19:34:40 -07:00
moandClaude Fable 5.2 86063426de Text boxes count the characters a value draws, not the ones it is written with
The box took the length of the stored value, control codes included: the
%%u and %%o toggles draw nothing, %%d, %%c, %%p, %%% and %%nnn draw one
character, \U+XXXX draws one, and invisible formatting characters take no
room. So the width was over-estimated again for such text: Aligned
"%%uAB%%u" at height 1 over a span of 20 is drawn 12.5 high in a box of
6.25. The callers now pass the number of drawn characters.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 02:22:06 +00:00
Tanish Manku a62956e1e9 Parity docs: rows updated for what merged from 2026-11-25 to 2026-12-01 2026-11-30 19:11:13 -07:00
Tanish Manku 4f2800a0dc Landing fix: the two TEXT literals #3214 added take #3679's new fields 2026-11-30 18:52:32 -07:00
Tanish Manku 69e7b40762 Merge #3679: TEXT's own Backwards and Upside down (DXF 71 generation flags) 2026-11-30 18:44:56 -07:00
Tanish Manku 60de483a5e Turkish: translate the unsaved-changes warning that #3291 left in English 2026-11-30 18:44:11 -07:00
Tanish Manku dec1b14c22 Merge #3291: i18n(tr): complete Turkish UI catalog 2026-11-30 18:43:56 -07:00
Tanish Manku 9cf855c55e Merge #3232: Save As and Export: write DXF and DWG at the chosen version (#3213) 2026-11-30 18:43:54 -07:00
Tanish Manku 5d7f8b62d9 Merge #3259: RECTANG: Dynamic Input asks for the other corner as X and Y (#3258) 2026-11-30 18:43:52 -07:00
Tanish Manku e16c39825a Merge #3287: perf(gpu): stabilize deep-zoom vertex origin with power-of-two grid and hysteresis 2026-11-30 18:43:50 -07:00
Tanish Manku fe83a26af5 Merge #3221: fix(engine): frame layout extents on initial tab switch (#3219) 2026-11-30 18:43:48 -07:00
Tanish Manku d99b20a46a Merge #3248: DXF: mirror a mirrored HATCH's pattern lines with its boundary (#3120) 2026-11-30 18:43:46 -07:00
Tanish Manku 3b4ee98570 Merge #3617: trim/extend: Shift toggles mode with live preview (partial #3569) 2026-11-30 18:43:44 -07:00
Tanish Manku ace5d48da1 Merge #3625: MOVE and COPY: a perpendicular or tangent base point resolves from the second point (#3481) 2026-11-30 18:43:43 -07:00
Tanish Manku 719bdee804 Merge #3583: SCALE: a factor point on the base point re-prompts instead of ending the command (fixes #3475) 2026-11-30 18:43:41 -07:00
Tanish Manku 67fbc4f850 Merge #3628: Translate the Drawing Units dialog; Italian labels 2026-11-30 18:43:37 -07:00
cdwilson127andClaude Opus 5.5 fc1bf5e2ef Updates: Update and Restart asks about unsaved drawings instead of refusing (#3698)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:58:11 +13:00
Tanish Manku a1927ea897 Merge pull request #3692 from storytold/stack/e2
Land #3630, #3659, #3660, #3661, #3646, #3651, #3642, #3519, #3288, #3685, #3609, #3214, #3540, #3594, #3622: LISP and script fixes, graphics start-up fallback, render budgets, solver speed, viewport selection
v0.21.0-nightly.20261201.46550361959.1.ga1927ea8974c
2026-11-30 17:12:22 -07:00