Commit Graph
2632 Commits
Author SHA1 Message Date
okereke-dev a0ab5c64c4 EXTRIM: delete only pieces with no length at all, leave the too-short stretch out of the preview, rebuild the preview when the frozen layers change (CodeRabbit on #3526) 2026-11-28 15:22:14 -05:00
okereke-dev 9766e4dbe8 EXTRIM: name skipped.partly in the command's parameters 2026-11-25 07:09:58 -05:00
okereke-dev 79f0f000b0 EXTRIM: leave a stretch too short for TRIM to cut alone, keep short pieces that have length, count a partly cut object once (landing review of #2808)
A stretch whose end is within TRIM's on-cut tolerance of its pick made TRIM run on to the next
cut and take more than planned; it is now left and the object counted as uncut. Only pieces of
no length are deleted, as TRIM leaves short ones. An object cut in part is counted with those
not cut everywhere (skipped.partly), not also as trimmed.
2026-11-25 07:09:53 -05:00
okereke-dev 4746a3192d EXTRIM: leave layers frozen in the active viewport, cap the preview by drawn parts (landing review of #2808) 2026-11-25 07:06:57 -05:00
okereke-dev f37f36d39c TRIM/EXTEND: gather only the given cutting edges instead of scanning the space (landing review of #2808) 2026-11-25 07:04:05 -05:00
okereke-dev ad4a53a324 TRIM preview: cuts far from the origin stay apart (landing review of #3382)
The highlight merged cut points within 1e-9 of the distance from the origin, a whole unit near
x = 1e9, so a visible 0.5-unit trim there was merged away and the whole object highlighted. Cuts
now merge only when f64 can't tell them apart.
2026-11-25 07:03:14 -05:00
Tanish Manku 0d4b100209 Merge pull request #3471 from storytold/stack/n4
Land #3235, #3382, #2808: dynamic block stretch of wipeouts, arcs and hatches; TRIM/EXTEND part highlight; EXTRIM
2026-11-24 22:01:30 -07:00
Tanish Manku 33d46f3a00 Merge #2808: EXTRIM: trim everything crossing one cutting edge on the side picked 2026-11-24 21:16:52 -07:00
Tanish Manku a992e3198b Merge #3382: TRIM highlights only the piece a click removes, EXTEND what it adds (fixes #1118) 2026-11-24 21:16:32 -07:00
Tanish Manku 993388ca8c Merge #3235: Dynamic blocks: a stretch moves wipeouts, arcs and associative hatches as AutoCAD does 2026-11-24 21:16:30 -07:00
Tanish Manku 966d12819b Merge pull request #3470 from storytold/stack/n3
Land #3373, #3290, #3105: download docs, paste spreadsheet text as a TABLE, Tamil
2026-11-24 21:12:49 -07:00
Tanish Manku b11e2a94ac Merge pull request #3469 from storytold/docs/parity-batch-1125
Parity docs: rows updated for what merged from 2026-11-21 to 2026-11-25
2026-11-24 21:12:44 -07:00
Tanish Manku 510b7da798 Parity docs: qualify the plot-settings and existing-tab claims 2026-11-24 20:53:03 -07:00
okereke-dev 49ac1b1d30 EXTRIM: keep the Chinese menu row, which chinese_menus_and_commands_are_fully_translated requires 2026-11-24 22:47:35 -05:00
2ez4gcxandClaude Opus 5.5 3f805561d6 Dynamic blocks: a stretch moves the right end of a flipped arc
A stretch picks which ends of an arc move by testing the dynamic
block's arc ends against its frame (0 its start, 1 its end), but a
mirror swaps an arc's start and end (Arc::transform). In a reference
flipped by a flip action, the copy's start is the block's end, so a
later stretch moved the wrong end and distorted the arc.

The stretch now maps the indices to the copy's when the copy is
mirrored from the block: by the flips the reference already has (an
odd number of flipped flip actions holding the object; a repeated
selection counts once and a reflection line of no length mirrors
nothing, as the flip action itself does) and by mirrors queued for it
earlier in the same change. Unmirrored arcs keep their indices.

Tests: a flipped door arc stretched by Width (flipped, not flipped,
held twice, two flip actions, a reflection line of no length), and a
lookup that flips and stretches in one change, with the flip action
before or after the stretch, and back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:46:10 +07:00
okereke-dev c7e6b10f42 EXTRIM: find each stretch on the object itself, report one it can't find (review on #2808)
A large arc's flattened outline strays from the arc by up to a millionth of its radius, more
than the tolerance next to a short edge, so a stretch's pick could miss every piece and the
object was still counted as trimmed through. The pick is now brought onto the object's exact
lines and arcs and the pieces are measured exactly; a stretch still not found counts the object
as uncut. The menu entry moves to Additional Tools, and the es/zh rows go (feature PRs add
English only).
2026-11-24 22:38:00 -05:00
Tanish Manku 408927c8a8 Merge #3105: Add Tamil (ta) to the interface languages; pasted table cells keep backslashes and braces as text 2026-11-24 20:32:18 -07:00
Tanish Manku feec896112 Merge #3290: feat(table): paste Excel TSV as native TABLE using craft-csv 2026-11-24 20:31:30 -07:00
Tanish Manku 52bb384e13 Merge #3373: docs: align CADCraft downloads with published packages 2026-11-24 20:31:29 -07:00
Tanish Manku abacc4c360 Parity docs: rows updated for what merged from 2026-11-21 to 2026-11-25 2026-11-24 20:29:53 -07:00
okereke-dev e1766b2191 Merge remote-tracking branch 'upstream/main' into feat/extrim 2026-11-24 22:28:22 -05:00
okereke-dev 3c7427d2bb TRIM preview: refresh after a fence point is taken back, and cap the Fence preview
The rollover highlight's cache key now counts the running command's answers, so Undo at the
fence prompt redraws the preview without the cursor moving. A Fence or Crossing preview works
out at most 64 picks; past that it shows no part highlight, and the fence still trims them all.
2026-11-24 22:27:54 -05:00
Tanish Manku 6e48d4b250 Merge pull request #3467 from storytold/stack/u11
Land #3231, #3394, #3457: Dynamic Input Tab cycle, Array window, lone user alias opens its dialog
2026-11-24 20:24:01 -07:00
okereke-dev f8fe736221 Merge remote-tracking branch 'upstream/main' into feat/trim-preview
# Conflicts:
#	crates/engine/src/cmd/modify.rs
#	crates/engine/src/guard.rs
#	crates/engine/src/prompt.rs
#	crates/engine/src/session/interactive.rs
2026-11-24 22:20:54 -05:00
vantruong-dang b8818c78b1 Merge remote-tracking branch 'origin/main' into feat/paste-table-tsv
# Conflicts:
#	crates/engine/src/session/interactive.rs
#	crates/ui-egui/src/clipboard.rs
#	crates/ui-egui/src/menus.rs
2026-11-25 10:14:06 +07:00
Tanish Manku 51b07ec42a Merge pull request #3419 from storytold/land/3375
Land #3375: PDFIMPORT imports a PDF page as editable lines, polylines, solid hatches and text
2026-11-24 20:05:00 -07:00
Tanish Manku 4e1ebc79c2 User alias lookup: a key stored with a capital outside ASCII matches a name typed in lower case 2026-11-24 20:04:41 -07:00
Tanish Manku c973274a23 Merge pull request #3466 from storytold/stack/n2
Land #3460, #3461, #3462, #3453: held paste follow-ups, constant attribute values, tapered-corner test
2026-11-24 19:59:59 -07:00
Tanish Manku 2a4dc14672 Merge #3457: a lone user alias of a UI command opens its dialog; landing fixes (alias lookup past ASCII capitals, Array window id without a lint allow) 2026-11-24 19:29:40 -07:00
Tanish Manku a254ed5bd5 Merge #3394: feat(ui): live Array dialog for ARRAYRECT and ARRAYPOLAR 2026-11-24 19:29:17 -07:00
Tanish Manku 9b8e4f257c Merge #3231: Dynamic Input: Tab cycles back to the first box and keeps the second value (#3201) 2026-11-24 19:29:15 -07:00
Tanish Manku 91ba1b8cc5 Merge #3453: Wide polylines: mitre the corners instead of leaving notches (#3443) 2026-11-24 19:27:39 -07:00
Tanish Manku 138acd3149 Merge #3462: A block reference draws its constant attribute values (#3413) 2026-11-24 19:27:37 -07:00
Tanish Manku 839036bcff Merge #3461: Input to the running command drops a held paste (follow-up to #3366, builds on #3460) 2026-11-24 19:27:35 -07:00
Tanish Manku c048120a0f Merge #3460: A held paste stays with the drawing that asked for it (follow-up to #3366) 2026-11-24 19:27:33 -07:00
Tanish Manku fc1b63a792 PDF import: fill-only text before fill-and-stroke text no longer doubles the stroked text 2026-11-24 19:27:21 -07:00
Tanish Manku bd520db235 Merge #3375 again: the eight review fixes, and main 2026-11-24 19:27:03 -07:00
moandClaude Fable 5.2 7ee382fb06 fix(doc): the extents of constant values follow ATTMODE, as their drawing does
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 21:23:55 -05:00
C00kieMonsta 2236c14802 PDF import: give hatch loops main's new boundary_flags field
A loop the importer builds has no DXF boundary path flags of its own,
so it takes None, as the proxy-graphics loops on main do.
2026-11-25 01:49:03 +00:00
C00kieMonsta d7088aab34 Merge main into feat/pdf-import
main gave HatchLoop a boundary_flags field, so the gate's merge build
no longer compiles the PDF importer's loops.
2026-11-25 01:48:22 +00:00
C00kieMonsta 6a98857ffa PDF import: compute a contour's signed area relative to its first vertex
At coordinates near 2^29 the cross products of absolute coordinates
round away a unit of area, so a unit square there had zero area and its
nonzero fill was dropped. The products are now taken relative to the
contour's first vertex.
2026-11-25 01:33:22 +00:00
C00kieMonsta 2873092eae PDF import: place even-odd contours that don't meet by their own boundary
An even-odd loop's depth was counted at a point nudged just inside its
longest edge. A hole drawn closer to that edge than the nudge held the
point, so the outer loop counted as nested and neither loop was saved
with the outer flag. When no two contours meet, each is now placed by
the middle of its longest edge, as nonzero fills already are; crossing
contours keep the nudged point.
2026-11-25 01:32:44 +00:00
C00kieMonsta 3655ded652 PDF import: read a clip as a rectangle only from one subpath
rect_of joined the points of every subpath, so two open segments that
reached the four corners of a box were read as that box, and a stroke
through it was kept. A rectangle must now be one subpath. A clip whose
subpaths each lie on one line encloses no area and clips everything;
any other clip of several subpaths is still reported as not applied.
2026-11-25 01:31:45 +00:00
C00kieMonsta 958ce153d2 PDF import: measure a text run's baseline from its first glyph
A glyph joined a run when it lay within 0.1 em of the previous glyph's
baseline, so text that climbed a little each glyph stayed one run and
was placed on the first glyph's baseline. The offset across the baseline
is now measured from where the run starts; the gap along it is still
measured from the previous glyph.
2026-11-25 01:30:32 +00:00
C00kieMonsta a248c59fa4 PDF import: leave out text inside a clip with no area
Two clips that only touch intersect in a rectangle with no area. Shapes
under it were already left out, but a glyph whose middle lay on the
shared edge passed the inclusive range test and was imported. Text now
needs a clip with area as well.
2026-11-25 01:29:48 +00:00
C00kieMonsta 2aa669fad9 PDF import: match a text's stroke replay glyph by glyph, not by its last run
Render mode 2 fills a whole Tj or TJ and then draws it again for its
stroke. A TJ that split into two runs arrived as fill A, fill B, stroke
A, stroke B, and the one remembered text matched neither stroke, so both
words were imported twice. The same record also dropped a later fill of
the same text in another colour.

The glyphs filled since the last shape, image or stroke are now queued,
and only a stroke glyph that repeats the next queued one is skipped.
Fills are never matched against each other.
2026-11-25 01:28:51 +00:00
2ez4gcxandClaude Opus 5.5 e49207546c Merge main into fix/dynblock-stretch-wipeout
Main moved the action loop into ActionRun (#3424). The frame test for
wipeouts and arcs moves into ActionRun::stretch; a polar stretch still
moves a wipeout or an arc whole, as it did, now that move_entity reads a
stored list for them (tested). Main's array helpers and the hatch outline
code sit side by side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 08:27:50 +07:00
C00kieMonsta 13b956c166 PDF import: convert to US survey units (INSUNITS 21 to 24)
Survey feet, inches, yards and miles fell through to the millimetre
case, so a page imported into a drawing in survey feet came in 304.8
times too large. A survey foot is 1200/3937 m.
2026-11-25 01:26:59 +00:00
moandClaude Fable 5.2 4be3a25b42 fix(doc): a constant value the reference has an attribute for does not count in its extents
Such a reference draws its attribute and not the definition's value, but
the extents still added the value's box. The cache of block bounds now
keeps each constant value by tag, and a reference leaves out the ones it
carries an attribute for.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 19:51:26 -05:00
Dylan M. Taylor 7e95cfc864 packaging(linux): support co-installable nightly packages (#3450)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-24 18:38:19 -06:00