2251 Commits
Author SHA1 Message Date
FredApps a70b9b02e4 Merge pull request #1673 from ohagmann/feat/osnap-tab-every-candidate
Object snaps: Tab cycles every candidate snap under the cursor, not one per mode
2026-11-21 17:27:26 +07:00
FredApps b206eab39b Merge branch 'main' into feat/osnap-tab-every-candidate 2026-11-21 17:07:38 +07:00
Tanish Manku 8d3236c5a3 Merge pull request #3350 from storytold/stack/r2
Land #2763, #2905, #2918, #3233, #2804: tilted 2D polylines, mirrored heights on save, kept APPIDs, plot layout flags, Generate Boundary
2026-11-20 17:48:52 -07:00
Tanish Manku f4d4a6e4e1 DXF read: a thick polyline drawn as seen from above keeps the side of Z it extruded toward 2026-11-20 17:37:24 -07:00
Tanish Manku 80e9a97164 Merge main 2026-11-20 17:20:59 -07:00
Tanish Manku 97dccaf9e7 Merge pull request #3348 from storytold/docs/parity-batch-1120
Parity docs: batch for 2026-11-19 and 2026-11-20, alpha-blocker marks follow the six-row gate
2026-11-20 16:54:58 -07:00
Tanish Manku b39170aded HATCHGENERATEBOUNDARY: a mirrored hatch's boundary goes to its world height; the command is classified as using no files 2026-11-20 16:45:17 -07:00
Tanish Manku 20d489f059 ROADMAP: TRIM/EXTEND depth landed, drop it from Upcoming 2026-11-20 16:43:29 -07:00
Tanish Manku 318d8d9de1 Plot layout flag tests that save DWG opt in to the in-process bridge 2026-11-20 16:40:30 -07:00
Tanish Manku 4076a71dee Registered applications alone note no file version; the APPID tests that save DWG opt in to the in-process bridge 2026-11-20 16:40:26 -07:00
Tanish Manku e5a7d38a67 Merge #2804: Generate Boundary in a hatch's right-click menu (#2801) 2026-11-20 16:37:35 -07:00
Tanish Manku 46053d43c1 Merge #3233: save the plot layout flags as read (#3227) 2026-11-20 16:37:17 -07:00
Tanish Manku 6aa64fb5ae Merge #2918: a file's registered applications are kept when no xdata names them 2026-11-20 16:34:22 -07:00
Tanish Manku 543285778b Merge #2905: mirrored objects keep their world height and extrusion side 2026-11-20 16:34:00 -07:00
Tanish Manku fed8b0f4e4 Merge #2763: draw a tilted 2D POLYLINE as seen from above, like LWPOLYLINE 2026-11-20 16:33:50 -07:00
Tanish Manku 50baa3cfae Parity docs: batch for the merges of 2026-11-19 and 2026-11-20, alpha-blocker marks follow the six-row gate 2026-11-20 16:32:11 -07:00
Tanish Manku ef6df4dffa Merge pull request #3347 from storytold/stack/u8
Land #3313, #3300, #3316, #1873: arrowheads in DIMSTYLE, single-instance tests, Thai in the MTEXT editor, DIMPOST on angular dimensions
2026-11-20 16:31:01 -07:00
Tanish Manku 97c5670a0a Merge pull request #3346 from storytold/stack/s8
Land #2904, #3302, #3341, #1728, #2882, #1687, #3234: files other CAD programs refuse, and data lost on save
2026-11-20 16:30:51 -07:00
Tanish Manku ed294b3fb3 Single-instance tests: the skip note goes straight to stderr, where a passing test still shows it 2026-11-20 16:16:59 -07:00
Tanish Manku 40ddd7baca DWG bridge: an R2000 DWG keeps constraint groups and proxies as its reader takes them
The writer told the bridge from a DXF file by comparing the declared and the
target version, which are both R2000 for an R2000 DWG. Kept constraint groups
of a 2013+ drawing were then put in the old node order although the bridge
reads them as the version they came from, and kept proxies took the pre-2007
DXF layout. The bridge says so itself now. The render settings test module is
skipped where acadrust isn't built.
2026-11-20 16:12:50 -07:00
Tanish Manku ea4a59b662 Save warning: a DXF before 2013 that leaves out solids points to 2013 and later
Since #2882 a DXF of 2010 or earlier leaves out solids whose geometry only
the data store holds, and the interactive QSAVE asks before it does. The
warning's hint still said DXF 2010 and earlier keep them, which is the
version that loses them. The hint now depends on the version the file is
saved in: 2013 and later keep such solids, and the proxies a DXF before
2007 leaves out as well. Also rustfmt of the merged finish signature.
2026-11-20 14:23:07 -07:00
Tanish Manku 9e645ba17a Merge #3234: DXF: write kept proxies in the layout of the version written (#3229)
Conflicts with #2882 resolved: a DXF's loss report counts both what #2882
leaves out (solids whose ACIS geometry the version has no place for, in
either direction of 2013) and what #3234 leaves out before 2007 (proxies
whose strings it can't hold, with what goes with them), each named with its
own reason, for SAVE/SAVEAS, document.bytes, EXPORT, -WBLOCK and the
interactive QSAVE question. dxf_raw::finish takes both flags.
2026-11-20 14:22:04 -07:00
Tanish Manku 8da04230af Merge #1687: DXF/DWG save: kept render settings take the declared version's class-version form
Conflicts with main resolved: the source form is main's Foreign::version
(#2471), recorded at read time for the same reason, instead of the PR's own
Foreign::acadver. The conversion goes to the version the text is read as,
as #1728's constraint groups do: a DXF's own version, and for the DWG
bridge the version the kept objects came from, which craft-dwg's
encode_kept_noted declares, so there they stay as read. The DWG test opts
in to in-process DWG.
2026-11-20 14:20:07 -07:00
Tanish Manku af5c658a4b Merge #2882: Solids: no empty modeler records before 2013; list ACIS 4.0 SAT a DWG can't keep (#2334)
# Conflicts:
#	crates/io/src/dxf_write/sections.rs
2026-11-20 14:19:21 -07:00
Tanish Manku 5d76e47342 io tests: the constraint group DWG test opts in to in-process DWG and skips where acadrust isn't built
nextest runs each test in its own process, and the opt-in is process-wide,
so a DWG test calls it itself. acadrust is a dev-dependency only where
craft-dwg builds its native bridge (#2526), as the other DWG test files say.
2026-11-20 14:18:55 -07:00
Tanish Manku 3caad662a4 Single-instance length test uses its own folder; the angular DIMPOST DWG test builds on main and opts into the in-process DWG path 2026-11-20 14:18:52 -07:00
Tanish Manku 615fee3e12 Merge #1728: DWG: constraint groups keep their nodes 2026-11-20 14:18:36 -07:00
Tanish Manku 92fe0a655d io: the kept-data doc comment goes back on dxf_raw, not dwg_hatch 2026-11-20 14:18:33 -07:00
Tanish Manku a62dd047a4 Merge #1873: dim: apply the style's DIMPOST to angular dimensions (#1653) 2026-11-20 14:18:24 -07:00
Tanish Manku b4c325a36b Merge #3316: MTEXT editor: show Thai (and other drawing scripts) instead of boxes 2026-11-20 14:18:22 -07:00
Tanish Manku 1ad4fc7c91 Merge #3341: DWG: read a hatch's elliptic boundary edge angles as degrees (#3332) 2026-11-20 14:18:21 -07:00
Tanish Manku 8178a68f3e Merge #3300: Windows single-instance tests: short socket paths, skip when AF_UNIX can't bind (#3283) 2026-11-20 14:18:20 -07:00
Tanish Manku 29a22f7955 Save: a kept dimension block with another name keeps its record and description
A block with a name other than *D that an unedited dimension was read with
is written with the dimension blocks (#3302). Its BLOCK_RECORD lost its
insertion units and explodability there, and the BLOCK its description.
When that block is empty, the picture is regenerated in world coordinates,
so the block now goes at the origin rather than at the read base point,
which shifted the picture.

The new DWG-saving test of #3302 opts in to in-process DWG conversion.
2026-11-20 14:18:18 -07:00
Tanish Manku 48f0a590ab Merge #3313: Preserve per-end Closed filled arrowheads in DIMSTYLE 2026-11-20 14:18:18 -07:00
Tanish Manku 80f2b6838d Merge #3302: Save: an unedited dimension keeps its read block whatever the block's name (#3299) 2026-11-20 14:14:27 -07:00
Tanish Manku 70e55f21cc Merge #2904: DXF: a solid or gradient hatch no longer makes AutoCAD refuse the file 2026-11-20 14:13:38 -07:00
Tanish Manku d3af2d5077 Merge pull request #3345 from storytold/feat/text-edit-in-place
Double-click edits TEXT, attribute definitions and dimension text in place (#842)
2026-11-20 12:07:44 -07:00
Tanish Manku afcf5d3461 Start each in-place text box with no undo history
All boxes share one text field, so Ctrl+Z in a new box could bring back
the text typed into the last one; its undo history is cleared when a box
opens.
2026-11-20 11:45:44 -07:00
Tanish Manku 7ecf836de7 Keep an in-place text draft with the drawing it was typed in
The draft was keyed by the object's handle only, and handles repeat across
drawings; it is now also bound to the drawing's id, so it is never shown
or submitted for another drawing's object.
2026-11-20 11:45:44 -07:00
Tanish Manku 4b97a1a25e Size the in-place box of annotative text and dimensions as drawn
At a non-unit annotation scale an annotative TEXT, attribute definition or
dimension is drawn scaled; the editor box now takes its height, position
and extents from that scaled object, as the renderer and EXPLODE do.
2026-11-20 11:45:43 -07:00
Tanish Manku 4683023d94 Test the command line's IME at TEXT's prompt, which has no in-place editor
TEXTEDIT on a TEXT now edits it in place, so the IME goes into that box
(tested in text_double_click.rs); the command line's own IME handling is
tested where it still collects the text: TEXT's Enter text prompt.
2026-11-20 11:45:43 -07:00
Tanish Manku 44e0e431ee Make the in-place text box cover the text as drawn
The one-line editor was narrower than the text it edits: an egui area
caps its width, and a centred or right-justified text's box started at
its insertion point. TEXTEDIT now gives the editor the drawn text's
extents (TextEditor::extents, from the renderer's text placement), and
the box starts at the drawn left edge, is at least as wide and as tall as
the drawn text, and still grows as more is typed.
2026-11-20 10:56:18 -07:00
Tanish Mankuandsimanov 0b454bb536 Test that a double-clicked MTEXT is edited in its in-place editor
Double-clicking an MTEXT opens the editor with its contents; what is typed
is kept with Ctrl+Enter. Carried from #1425.

Co-authored-by: simanov <[email protected]>
2026-11-20 10:40:08 -07:00
Tanish MankuandLuminati 9f2cd4ca78 Edit TEXT, attribute definitions and dimensions in place on a double-click
Double-clicking single-line text, an attribute definition or a dimension
(no command running) now opens a one-line text box over it on the canvas,
as AutoCAD does, instead of asking at the command line (#842). Enter or a
click outside keeps the text, Esc cancels, and an emptied box keeps the old
text. A dimension's box shows its text override, or <> for the measured
value, with the measured value beside it; emptying it or typing <> alone
gives the measurement back.

The box answers TEXTEDIT's prompt, so the edit is one undo step and
scripts, the command line and engine.execute behave as before. The engine
describes what to edit through Interactive::text_editor, TextEditor and
EditorKind (MText, Line, Dimension), following the design in #2320.

Co-authored-by: Luminati <[email protected]>
2026-11-20 10:40:07 -07:00
Tanish Manku 1d92bb275c Merge pull request #3343 from storytold/fix/open-off-ui-thread
OPEN with a typed path opens that file, read in the background
2026-11-20 10:11:17 -07:00
Tanish Manku c73b1487ea Open a typed OPEN path in the background, as File > Open does
OPEN followed by a file name, or the JSON form with only a path, typed
at the command line and entered with Enter now reads the file on the
background reader with the Opening card, instead of opening the file
picker and dropping the path (or, for the JSON form, reading it on the
UI thread). Programmatic calls (control channel, MCP, scripts, LISP)
still open synchronously and return their result.
2026-11-20 09:47:34 -07:00
Tanish Manku fafe5f128c Merge pull request #3342 from storytold/stack/r1
Stack r1: ten long-waiting fixes (#1280, #1292, #1505, #1605, #1740, #1741, #1815, #2261, #2745, #2870)
2026-11-20 09:29:53 -07:00
Tanish Manku 9c53d527f8 Stack r1: #1815: the Vietnamese interface font is looked for among the discovered fonts too, as the interface font is 2026-11-20 09:06:56 -07:00
Tanish Manku 7ec88f7e27 Stack r1: #1815: with only FONTCONFIG_PATH set, its fonts.conf is the configuration, then /etc/fonts as in fontconfig 2026-11-20 09:06:56 -07:00
Tanish Manku 7189295bc3 Stack r1: #1280: each IMAGE keeps its own IMAGEDEF when a repeated handle is reassigned 2026-11-20 09:06:55 -07:00