Repository navigation
DraftCraft 2.1.0: text picking, PDF curves, PDFIMPORT arcs and circles - #9
Merged
Merged
Conversation
- Picking: TEXT, MTEXT and ATTDEF are hit inside the box around their letters, turned with the text, not inside their axis-aligned bounds. Turned text took clicks and hover meant for a line beside it at any pickbox size. Also for crossing windows and TRIM/EXTEND edges. - PLOT / EXPORTPDF write arcs, circles, ellipses, splines and bulged polylines as exact Bezier curves instead of short lines (draftcraft-geom bezier module; DisplayList::curves for plots). Dashed, clipped or pen-filled strokes keep their polylines. - PDFIMPORT reads circular Bezier curves back as ARC, CIRCLE and polylines with arc segments, and single straight segments as LINE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's new in DraftCraft 2.1.0
Fixed: picking near text
Turned text used to be picked anywhere inside its axis-aligned bounding box. For text at an angle,
that box is much larger than the words, so the text took clicks and hover meant for a line next to
it, at any pickbox size. Text is now hit inside its own box: around the letters, turned with the
text, as in AutoCAD. This applies to clicks, hover highlighting, crossing windows, TRIM/EXTEND edges
and selection cycling.
PDFs keep their curves
PLOT and EXPORTPDF now write arcs, circles, ellipses, splines and polylines with arc segments as
true Bézier curves, not hundreds of short line segments. The files are smaller, print smoother, and
can be edited properly in other programs. Dashed linetypes are still drawn dash by dash.
PDFIMPORT recognises geometry
PDFIMPORT (Insert › PDF Import) turns a PDF page's vectors into editable DraftCraft objects, and you
can save the result as DWG or DXF. It now recognises:
A PDF written by DraftCraft (or by any CAD program that writes arcs as Bézier curves) comes back as
the arcs, circles and polylines it was drawn with.
Downloads
draftcraft-macos-arm64.dmgdraftcraft-windows-x64.zipdraftcraft-windows-arm64.zipdraftcraft-linux-x86_64.AppImagedraftcraft-cli-macos-arm64.zipAlready on 2.0.2? Use Update Now in the app's update window.
Testing
cargo xtask cisteps all pass locally except the three macOS-only tests AGENTS.md lists (APFS file names, Thai font).pick_text(turned text vs. a line, letters-only box),bezier(geom),pdf_curves(writer emitscoperators; dashed curves stay dashes; PDFIMPORT round trip gives CIRCLE/ARC/bulged polyline).🤖 Generated with Claude Code