Commit Graph
25654 Commits
Author SHA1 Message Date
dotCooCoo c3cbe1983c File formats: pass the path check to is_some_and directly
Clippy 1.100 denies the closure around `same` in the converting-file
check of `open.rs` as `redundant_closure`, which stopped the clippy step
of `cargo xtask ci`. The check now passes `&same`; behavior is unchanged.
2026-12-03 23:31:45 -08:00
dotCooCoo 216dfb83ec Merge main into fix/open-dwg-files 2026-12-03 23:07:43 -08:00
yoriswindandFredApps 4070779f88 View: keep Cmd+0 on Fit Artboard in Window (#10396)
Co-authored-by: FredApps <[email protected]>
2026-12-04 07:52:39 +01:00
yoriswindandFredApps b2f59ace07 Docs: add a script for editable numbered grids (#10417)
* Docs: add a script for editable numbered grids

* Docs: bound the numbered-grid example and validate label numbers

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 07:36:50 +01:00
.CooCoo babeae8c65 Merge pull request #10801 from dotCooCoo/fix/color-panel-idle-replay-flake
Tests: dock panel tests wait for the font scan before counting idle frames
2026-12-03 21:35:04 -08:00
dotCooCoo b859f27c11 Merge main into fix/open-dwg-files 2026-12-03 21:29:15 -08:00
dotCooCoo 5c630500b3 File formats: DWG converts off the UI thread, and a thumbnail's worker stops in time
Opening or placing a DWG drawing from the desktop UI converted it on the
UI thread before DXF Import Options opened, so the window stopped
responding until a large drawing was converted. File > Open, Open Recent,
the Home screen, a drop and Place now convert it on a job of their own;
the status bar says "Converting <name>..." and the dialog opens once the
conversion is done. A drawing that can't be converted is reported and
does not go on the recent files. Commands run at once (MCP, scripts)
still convert before they return.

`thumbnail` exits after 20 seconds, but a DWG worker it started kept
running after that. The CLI now starts the worker with
`--dwg-worker-seconds 20`, and a worker started that way exits with code
1 once its time is up.

The CLI `info` test requires the drawing cut to a third and the one cut
to its header to be refused. The File formats row and the DWG entry in
docs/target-app-parity.md name the remaining limits: the web build and
R1.x and R2.x drawings return an error that says to save as DXF.
2026-12-03 21:28:54 -08:00
dotCooCoo 094f60b2fb Tests: DWG opens through the DXF Import Options dialog and the CLI worker
- The DXF Import Options dialog test opens a DWG, confirms it at 1:1
  in model space and places it.
- `vectorcraft-cli info` reads a DWG as the DXF it was written from,
  and five damaged copies (cut short, overwritten, bytes flipped) end
  in an error that names DWG or open with warnings, with the process
  exiting normally.
- The engine's DWG and DXF test modules are listed in order.
2026-12-03 20:36:08 -08:00
.CooCoo b767f2bea0 Merge pull request #10759 from dotCooCoo/fix/image-trace-draft-follows-selection
Image Trace: an unfinished slider or Divider value stays with the object it was typed for
2026-12-03 20:27:37 -08:00
dotCooCoo 1bccc76d77 Tests: dock panel tests wait for the font scan before counting idle frames
dock::tests::idle_frames_replay_the_color_panel failed now and then with
"idle frames replay the Color panel" (left: 1, right: 0). The app starts
the scan of the installed fonts on a background thread, and frames do
not wait for it. When the scan ends, the fonts' generation changes, and
a panel body's inputs hold that generation through layout_inputs. On a
loaded machine the scan can end after the helper's two settle frames,
so the first idle frame runs the body once.

The panel() helper now calls FontDb::global().family_list() after
making the app, which waits for that scan (or runs it), as the font
menu, properties and native menu tests already do. Every test in the
module goes through panel(), so all of them get the fix.
2026-12-03 20:23:55 -08:00
.CooCoo 003489cb7c Merge pull request #10730 from dotCooCoo/fix/tabs-draft-edit-target
Tabs: an unentered X, Leader or Align On value stays with its stop
2026-12-03 20:18:00 -08:00
.CooCoo 304e634880 Merge pull request #10779 from dotCooCoo/fix/selection-anchor-mesh
Canvas: selection anchors paint from one kept mesh
2026-12-03 20:10:17 -08:00
.CooCoo 9b6ee0d684 Merge pull request #10773 from dotCooCoo/fix/text-panels-empty-state-no-scroll-bar
Panels: Character and Paragraph show no scroll bar over an empty state that fits
2026-12-03 20:00:28 -08:00
.CooCoo 36df439fe9 Merge pull request #10690 from dotCooCoo/fix/doc-pathitems-removeall-clipping
Scripts: document pathItems.removeAll refuses to delete a clipping path
2026-12-03 19:53:45 -08:00
dotCooCoo 46ee88dbb9 Merge main into fix/open-dwg-files 2026-12-03 19:49:53 -08:00
BFlat 8ea0227804 Merge pull request #10533 from ruchirguitar/script-console-output-menu
Script Console: copy output lines from the row menu
2026-12-04 09:31:36 +07:00
BFlat d215702b56 Merge pull request #10593 from ruchirguitar/feat/g12-svg-interactivity-menu
SVG Interactivity: add a context menu to event rows
2026-12-04 09:31:06 +07:00
BFlat e2a9326b48 Merge pull request #10710 from ruchirguitar/fix/artboard-lock-menu-duplicate-rows
Artboards: avoid duplicate lock submenu rows
2026-12-04 09:30:09 +07:00
.CooCoo a2c28e1192 Merge pull request #10783 from dotCooCoo/fix/flyout-keeps-open-for-panel-popover
Panels: a popover opened from an auto-collapsing flyout leaves it open
2026-12-03 14:05:57 -08:00
.CooCoo 130eed51a6 Merge pull request #10774 from dotCooCoo/fix/task-bar-accent-outline
Contextual Task Bar: draw the accent outline around the bar
2026-12-03 13:45:42 -08:00
.CooCoo 381a3baa13 Merge pull request #10777 from dotCooCoo/fix/gradient-stop-popover-palette
Fix #10560: the stop popover stays open when a double click on a stop drifts
2026-12-03 13:37:38 -08:00
.CooCoo ecc5bb8673 Merge pull request #10780 from dotCooCoo/fix/hand-ends-after-missed-space-release
Canvas: the Space Hand ends when Space goes up while the canvas is away
2026-12-03 13:27:51 -08:00
.CooCoo 4f857e3115 Merge pull request #10775 from dotCooCoo/fix/test-lint-turbofish-builders
xtask: test-lint reads through turbofish arguments in constant-echo and fixture-only
2026-12-03 13:18:43 -08:00
.CooCoo a7ee8aeec4 Merge pull request #10772 from dotCooCoo/fix/font-catalog-bundled-lazy
Fonts: add the bundled fonts to the font catalog on its first read
2026-12-03 12:37:10 -08:00
dotCooCoo 5273f4547b Tests: DWG test modules use #[cfg(test)] so clippy treats them as tests
The modules were behind cfg(all(test, ...)), which clippy's
allow-unwrap-in-tests does not read as test code. The platform
condition moves into each file as an inner attribute.
2026-12-03 12:29:22 -08:00
.CooCoo dec8be341e Merge pull request #10731 from dotCooCoo/fix/blend-round-corners
Blend: steps between rounded rectangles keep round corners
2026-12-03 12:24:18 -08:00
.CooCoo 90c2216f36 Merge pull request #10768 from dotCooCoo/fix/eps-budget-test-cheaper
EPS import: test the measuring budget with 4 MiB of data instead of 300 MiB
2026-12-03 12:13:07 -08:00
dotCooCoo d163b607af Merge main into fix/flyout-keeps-open-for-panel-popover 2026-12-03 12:13:03 -08:00
dotCooCoo 8c15c135f9 Panels: a popover opened from an auto-collapsing flyout leaves it open
With Auto-Collapse Iconic Panels on, the Gradient panel's stop chip in an
icon column's flyout opened the stop popover, and the flyout closed in the
same frames. The popover is a layer of the window's dialog host, outside the
flyout's layers, so the focus moving into it and presses in it counted as
leaving the flyout.

The dock now notes the dialogs that open while a flyout is open. While one
of them is still open, the flyout is shown without auto-collapse; once they
close, a click away from the flyout closes it again.
2026-12-03 12:13:03 -08:00
dotCooCoo 244f2f29dd Merge main into fix/image-trace-draft-follows-selection 2026-12-03 12:12:26 -08:00
dotCooCoo 4fbe7364d9 Tests: read the coalesced release and press from the frame that took them
review_596866_owned_up_then_new_down_in_one_frame_keeps_the_next_click_single
checked the release and press edges in the step's last frame. The press's
Down comes in a second pass of the same frame only when another part of the
UI asks for a rerun; otherwise it comes in the next frame, whose first pass
has no events. Keying the Image Trace sliders on the selection moves the
status bar's rerun to an earlier step, so the Down came in a second frame
and the precondition failed while every behavior assertion still held.

The edges are now read with frame_event, which looks at the first pass of
each frame in the step.
2026-12-03 12:12:26 -08:00
.CooCoo 5b163436be Merge pull request #10763 from dotCooCoo/fix/drops-ignore-hidden-palettes
Panels: hidden or minimized palette windows no longer block canvas drops
2026-12-03 12:08:26 -08:00
.CooCoo 7d5f0ee29f Merge pull request #10761 from dotCooCoo/fix/pathfinder-too-many-pieces-test
Tests: Divide refuses cutting lines past the segment cap
2026-12-03 12:01:23 -08:00
dotCooCoo 1efd8f7cdc Merge main into fix/test-lint-turbofish-builders 2026-12-03 11:58:39 -08:00
dotCooCoo ebafe0b102 xtask: test-lint normalizes only the current callee path
inert() passed the whole operand before a call to without_turbofish, so an
assertion with many Box::new elements copied every earlier element again at
each call. It now tracks where the current path starts and normalizes only
that path. A test covers a builder path that follows other elements.
2026-12-03 11:58:36 -08:00
dotCooCoo e58a626b41 Merge main into fix/open-dwg-files 2026-12-03 11:57:45 -08:00
dotCooCoo bb4e3308af File formats: DWG drawings open and place through the DXF reader
File > Open, File > Place and document.dxfInfo read DWG drawings. The
craft-libs craft-dwg bridge converts the drawing to DXF bytes and the
existing DXF reader reads them, so a DWG takes the DXF Import Options
(layout, ratio or fit, lineweights, centering, merged layers) and comes
in with the same layers, blocks and units as the DXF it converts to.
What the conversion skips is listed in the warnings.

- vectorcraft-cad: dwg module. On desktop the conversion runs in a copy
  of the program started with --dwg-worker (vectorcraft and
  vectorcraft-cli call serve_if_asked and use_own_worker), so a damaged
  file ends that copy, not the app. Inputs over 512 MiB, or a DXF
  rendition over 1 GiB, are refused. The last conversion (up to 128 MiB
  of DXF), or its error, is kept, so the dialog's layout list, each
  layout preview and the open read the file once. R1.x and R2.x
  drawings are refused with a hint to save as DXF.
- Engine: a read-only dwg format (detected by content or by .dwg),
  in the open and place extension lists, not associated with the app
  by packaging. DWG leaves the unsupported list; exporting to it says
  to export DXF instead, Export As keeps it greyed out, and Save over
  the drawing is refused.
- UI: the DXF Import Options dialog opens for .dwg files on Open,
  Place and a Shift-click with the place cursor.
- NOTICE and licenses/acadrust-0.6.6/: acadrust 0.6.6 (MPL-2.0,
  unmodified) and its third-party notices.
- Docs: docs/mcp.md, docs/file-format-parity.md, docs/roadmap.md and
  the progress line in docs/target-app-parity.md.

Tests build DWG files from DXF drawings with craft-dwg's writer: a DWG
comes in as its DXF does (layers, bounds, strokes, units, blocks), with
the DXF options, through Place, and in dxfInfo; a truncated DWG is an
error; saving or exporting a DWG writes nothing.

Fixes #3450
2026-12-03 11:57:39 -08:00
.CooCoo f45c39472a Merge pull request #10753 from dotCooCoo/fix/desktop-links-open
Links: clicking a link on desktop opens it in the browser again
2026-12-03 11:45:06 -08:00
dotCooCoo fa8d7dbe1d Merge main into fix/doc-pathitems-removeall-clipping 2026-12-03 11:43:15 -08:00
.CooCoo 004910a871 Merge pull request #10755 from dotCooCoo/fix/eps-skip-test-cheaper
EPS import: test the skipping of oversized image data under a 1 MiB limit
2026-12-03 11:37:52 -08:00
dotCooCoo 5277ec20ef Tests: canvas painted points read the anchor marks as shapes
The canvas tests that look for a mark at a point read circles,
rectangles and lines from the frame. The selection's anchor marks now
paint as one mesh, so painted_points has AnchorMarks paint the shapes
the mesh is made of for its frame.
2026-12-03 11:37:22 -08:00
dotCooCoo 565912d735 Fix #10560: the stop popover stays open when a double click on a stop drifts
A double click on a stop's marker in the Gradient panel's slider opens
the stop popover on its second press. The slider also treated that press
as a drag once the pointer moved past the drag threshold before the
release, which a hand on a trackpad often does. The stop moved a few
percent, an undo step was recorded, and the popover closed in the next
frame because its stop had changed under it.

The panel now drops the slider's edits from the press that opened the
popover, including the commit that arrives after the button is up. The
next press drags the stop as before. craft-libs#5131 fixes the slider
itself; this code goes away with the pin bump that brings it in.
2026-12-03 11:36:11 -08:00
.CooCoo 64a7515fea Merge pull request #9147 from dotCooCoo/feat/scripts-scriptui-palettes
Scripts: ScriptUI palettes stay open after the run and run their handlers in line
2026-12-03 11:24:20 -08:00
dotCooCoo 08e7a03ecf Contextual Task Bar: draw the accent outline around the bar
The bar showed only the neutral border of its floating surface. It now
draws an outline in the accent border color over that border, on the
same pixel-rounded rect, with the floating surface's corners and the
bar's opacity.

This is a temporary workaround until craft-libs#4892, which adds
TaskBar::edge(BarEdge::Accent), is in the craft-libs pin. The pin bump
deletes accent_outline and sets that edge on the bar instead.
2026-12-03 11:17:14 -08:00
dotCooCoo 6a39253805 Merge main into fix/hand-ends-after-missed-space-release 2026-12-03 11:15:48 -08:00
dotCooCoo 99b97529b6 Canvas: the Space Hand ends when Space goes up while the canvas is away
When Space (or Cmd+Space, Alt+Space) was let go while the canvas did not
run, for example with a dialog or another tab in front, the shortcut
board dropped the queued release and the momentary Hand or Zoom stayed
in effect. Every tool chosen afterwards then acted as the Hand until
Space was pressed and released again (#10709).

The canvas now notes the keys that were down when a momentary hold
started, and at its next pass ends the hold once none of them is down.
A hold started with no key down, as automation does, lasts until its
release.

This is a temporary workaround for storytold/craft-libs#5056, which
ends the hold inside the tool host. The helpers and the
momentary_keys field go once the craft-libs pin includes it; the
tests stay.
2026-12-03 11:15:34 -08:00
dotCooCoo b209455e12 xtask: test-lint reads through turbofish arguments in constant-echo and fixture-only
The inert-operand check matched builder paths against the raw text, so
`Vec::<Amount>::new()` was taken for a call of code under test and
`assert_eq!(Vec::<Amount>::new(), EXPECTED)` was not reported as a
constant echo. Names inside the turbofish, such as the `_` in
`Ok::<_, String>(1)`, were also read as locals.

The check now skips `::<...>` arguments and decides whether a name is
called from the token after them. Builder paths are compared with the
turbofish removed. A generic function or method called with a turbofish
(`parse::<u8>("1")`, `s.parse::<u8>()`) now counts as a call, so it no
longer makes a test look like a constant echo or a fixture-only check.
2026-12-03 10:47:13 -08:00
.CooCoo 7fcf5f33e4 Merge pull request #10735 from dotCooCoo/feat/curvature-comb
View: Curvature Comb overlay on selected paths (Fixes #10659)
2026-12-03 10:46:43 -08:00
.CooCoo 6ec7bdd244 Merge pull request #10696 from dotCooCoo/fix/global-edit-stale-points
Scripts: path points of other Global Edit members go stale when Global Edit changes them
2026-12-03 10:46:39 -08:00
dotCooCoo 0b04113f95 Merge main into fix/doc-pathitems-removeall-clipping 2026-12-03 10:45:54 -08:00