Repository navigation
Improve GUI file open, SVG import, part placement, and editing - #188
Merged
Merged
Conversation
Add a native file chooser with a typed-path fallback, keep CSS-pixel SVG scale while warning when units are ambiguous, store an optional job placement that the CLI honours, and filter properties to the active process. Tools and operations can be copied, pasted, duplicated, deleted and undone. Export stems, viewport fitting, screenshot-with-file, and cut direction auto are also corrected.
This was referenced Nov 15, 2026
Merged
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.
Improves the graphical workspace so a part can be opened, placed, and edited more clearly. CAMpanion remains primarily command-line driven; the GUI is still in development and does not talk to a machine.
What this includes
rfdwith the xdg-desktop-portal backend on Linux, so the release binary does not need an extra GTK install). When no chooser is available, a typed-path box shows the current directory and accepts relative paths and~. File → Enter path… opens that fallback on demand.pxor unitless page size, hidden elements skipped). When page units are ambiguous, a warning is shown and the existing CSS-pixel scale (96px=1in) is kept; the importer does not silently treat user units as millimetres. Import failures are shown clearly in the GUI.campanion-job/1file may set optionalplacement(x,y,rotate_deg) for a DXF, SVG or STEP source. Rotation is counterclockwise about the drawing bounds centre, then the translation is applied. Omitted placement is the identity (backward compatible). An STL source may not set placement. The GUI can drag the part or type the same offsets;campanion runapplies the transform when planning.autois preserved and shown asauto, not as climb.*.job.jsonand*.ir.jsonno longer keep a leftover.jobor.irstem. The 2D viewport waits for a usable pane size before fitting, and refits if the pane is resized unless the user has zoomed or panned.campanion-gui --screenshot DIR FILEplans and posts the opened job. Screenshot completion is printed once.scripts/check.sh(fmt, clippy, tests, wasm, cargo-deny) was run locally and passed (1317 tests passed, 0 failed).Refs: GUI file open, SVG import, placement, and editing.