Commit Graph
11241 Commits
Author SHA1 Message Date
dotCooCoo 4ef58e025f Docs: script and edit.clear notes match what the code does
- app.documents.add: artboardRowsOrCols sets the rows of GridByCol and
  RLGridByCol and the columns of GridByRow and RLGridByRow; Row, RLRow
  and Column do not use it.
- PageItem.duplicate runs node.move on the copy only with a relative
  object, and move and duplicate skip node.move when the object is
  already in place.
- edit.clear takes null for guides, keepEmpty and keepJoined as the key
  left out, as switch_or reads them.
- The scripts entry in docs/target-app-parity.md no longer lists type
  as missing; document.textFrames ships.
2026-11-30 14:59:21 -08:00
.CooCoo 639ce5004e Merge pull request #10304 from dotCooCoo/fix/smooth-bridge-says-why
Smooth Bridge: a refusal says why an object is not a circle
2026-11-30 14:39:43 -08:00
.CooCoo cb0a23d293 Merge pull request #9052 from dotCooCoo/feat/scripts-api-d6-save-export-open
Scripts: documents save, export and open through Document.saveAs, exportFile and app.open
2026-11-30 14:36:03 -08:00
.CooCoo 38846fcdf3 Merge pull request #10116 from dotCooCoo/feat/edit-points-only
Selection Tools: Edit Points Only narrows a Direct Selection to its anchor points
2026-11-30 14:19:49 -08:00
.CooCoo 0b55e3160a Merge pull request #10085 from dotCooCoo/fix/color-value-finite
Colors: a color with a component too large to store is refused
2026-11-30 14:19:14 -08:00
.CooCoo 462b851eb7 Merge pull request #10257 from dotCooCoo/fix/merge-duplicate-tests
Tests: merge two duplicate engine tests, keeping every assertion
2026-11-30 14:05:18 -08:00
.CooCoo f9e65c09cd Merge pull request #10242 from dotCooCoo/fix/xtask-test-lint
xtask: test-lint checks the tests a change touches for weak assertions
2026-11-30 13:51:00 -08:00
.CooCoo 5c9e3276a8 Merge pull request #10263 from dotCooCoo/fix/engine-tests-into-it
Tests: nine engine integration test files join the tests/it binary
2026-11-30 13:50:42 -08:00
.CooCoo c0b1a485cc Merge pull request #10285 from dotCooCoo/fix/dimension-alt-measure-outside-stroke
Dimension: Alt whole-path measure takes the outside of the stroke with Use Preview Bounds off too
2026-11-30 13:50:26 -08:00
dotCooCoo 8f8fa4fefa Merge main into fix/smooth-bridge-says-why 2026-11-30 13:42:22 -08:00
.CooCoo d30f24eb80 Merge pull request #10309 from dotCooCoo/fix/smooth-bridge-empty-groups
Smooth Bridge: a group the bridged circles leave empty goes
2026-11-30 13:02:35 -08:00
.CooCoo b470a4b65a Merge pull request #10130 from dotCooCoo/fix/wayland-pinch-zoom
Canvas: a touchpad pinch zooms on native Wayland
2026-11-30 12:38:20 -08:00
.CooCoo b95ea7d0ce Merge pull request #10287 from dotCooCoo/fix/xwayland-tablet-stylus
Linux: the log says why a pen's window stays on Wayland, and names the pens XWayland lists
2026-11-30 12:20:06 -08:00
dotCooCoo 96018f6d81 Merge main into fix/smooth-bridge-empty-groups 2026-11-30 12:16:57 -08:00
.CooCoo cbfeaab604 Merge pull request #10265 from dotCooCoo/fix/issue-2654
Graphics: start on Mesa's software renderer when no adapter can show the window
2026-11-30 12:01:10 -08:00
dotCooCoo 0c722fbf2a Docs: a clipping group counts as one object toward the Smooth Bridge limit
docs/mcp.md said every group counts as the objects inside it toward the 2,000-object limit. The command expands only groups other than clipping groups (bridge.rs, the clip: false arm), so a clipping group counts as one object, which is not a circle.
2026-11-30 11:53:03 -08:00
dotCooCoo 798a029bfc Smooth Bridge: a group the bridged circles leave empty goes
When outlines replace circles that sit in different groups, the circles
that go left their groups behind with nothing in them. Each group or
compound path left empty now goes in the same undo step, and so does
each group above it left empty in turn; layers and sublayers stay.
2026-11-30 11:44:20 -08:00
dotCooCoo dcf99ad998 Merge main into fix/smooth-bridge-says-why 2026-11-30 11:17:57 -08:00
dotCooCoo 9a060cfbf7 Smooth Bridge: a stretched circle is not called an ellipse of unequal width and height
A transform that stretches an ellipse keeps its stored width and height,
so a circle stretched into an oval still stores equal ones. The refusal
now names unequal width and height only when the stored values differ,
and gives the general message otherwise. docs/mcp.md notes that more
than 2,000 objects are refused by the circle limit before any object is
checked.
2026-11-30 11:17:57 -08:00
.CooCoo d794ccda0d Merge pull request #10298 from dotCooCoo/fix/smooth-bridge-circles
Smooth Bridge: a selected group of circles is bridged
2026-11-30 11:00:51 -08:00
dotCooCoo 8a5f206e3c Merge main into feat/scripts-api-d6-save-export-open 2026-11-30 10:55:42 -08:00
dotCooCoo 53ec5af6c8 Smooth Bridge: a refusal says why an object is not a circle
Smooth Bridge only joins circles. Anything else in the selection gave
"select two or more circles to bridge", the same message as for one
circle. An ellipse drawn by dragging without Shift is a few tenths of a
point off a circle and was refused with that message, which did not say
which object was at fault or why.

The refusal now names the first object that is not a circle and why:
an ellipse whose width and height differ (draw it with Shift held, or
give it equal width and height), a compound path (release it first),
an object that is hidden or locked, or another object. The message
shows on the status line while the dialog previews and after OK.
2026-11-30 10:40:37 -08:00
.CooCoo dc6beff197 Merge pull request #10281 from dotCooCoo/fix/issue-3211
Fix #3211: Text Wrap › Make wraps the area type selected with the object
2026-11-30 10:30:57 -08:00
.CooCoo 82108c11bd Merge pull request #9277 from dotCooCoo/feat/scripts-app-select-tool
Scripts: app.selectTool picks a tool
2026-11-30 09:44:47 -08:00
dotCooCoo 452281a269 Smooth Bridge: a selected group of circles is bridged
Smooth Bridge refused a selected group with "select two or more circles
to bridge", even when every object in the group was a circle, so
grouping circles first and selecting the group did nothing. The command
now takes the objects inside each selected group (at any depth; a
clipping group stays one object), so a group of circles is bridged in
place, inside the group. A group that holds anything other than a circle
is still refused, as before.

The dialog's Reach field counts a selected group's objects too, so it is
available when a selected group holds three or more circles; a circle
selected together with its group counts once.
2026-11-30 09:33:37 -08:00
.CooCoo 8c1dc6bb5d Merge pull request #10069 from dotCooCoo/fix/brush-options-unchanged-undo
Brushes: Brush Options and Apply Brush that change nothing add no undo step
2026-11-30 08:45:52 -08:00
dotCooCoo ecdbad2d33 Merge main into fix/engine-tests-into-it 2026-11-30 08:18:55 -08:00
dotCooCoo 680fd47b62 Merge main into feat/edit-points-only 2026-11-30 08:18:53 -08:00
dotCooCoo 6139fbd270 Merge main into fix/xwayland-tablet-stylus 2026-11-30 08:09:21 -08:00
dotCooCoo 3d628608c6 Docs: the Flatpak override clears fallback-x11 before it allows X11 2026-11-30 08:09:21 -08:00
dotCooCoo 4f5371fb3a Merge main into fix/dimension-alt-measure-outside-stroke 2026-11-30 08:09:18 -08:00
dotCooCoo aa3415aa5e Dimension: the Alt hover box is described as reaching the outside of the stroke
The parity doc, docs/dimensions.md and two comments said the box shown
while hovering a path with Alt held goes through the path's outermost
points. It follows the box the strokes paint, which reaches 0.5 pt past
those points for a centered 1 pt stroke.
2026-11-30 08:09:18 -08:00
.CooCoo 298b15308d Merge pull request #8797 from yoriswind/codex/8710-layers-appearance-marker
Layers: distinguish own appearance from targeting
2026-11-30 07:55:12 -08:00
.CooCoo 44e57e37d7 Merge pull request #10169 from dotCooCoo/fix/shape-builder-fill
Shape Builder: Pick Color From defaults to Color Swatches, so a picked fill fills the merge
2026-11-30 07:53:27 -08:00
dotCooCoo ed0859d0d0 Scripts: kept-default option enumerations and refusal of non-UTF-8 real paths
The enumerations whose default member an option keeps (OutputFlattening,
CompressionQuality, the PDF color, compression, mark and security enums,
and the SVG encoding, DTD, CSS and font enums) are now defined, so a
script that sets an option to its default no longer throws a
ReferenceError; another member still throws as not available yet.

saveAs, exportFile, app.open and close with SAVECHANGES refuse a path
whose real file name is not valid UTF-8 instead of writing to or opening
a file named with a lossy copy of it.
2026-11-30 07:51:17 -08:00
dotCooCoo 7310a8eb4f Dimension: Alt whole-path measure takes the outside of the stroke with Use Preview Bounds off too
With Alt held, the Dimension tool's box over a path and the dimension of
the whole path it places now reach the outside of the path's strokes
whether Use Preview Bounds is on or off. Before, they did so only with
Use Preview Bounds on, and with it off they went through the outermost
points of the path.

Every dimension of a whole path the tool places now records
`"preview": true` in its extent source. Dimensions saved without it keep
measuring between the outermost points, and `dimension.create` still
defaults `preview` to false.
2026-11-30 07:49:50 -08:00
dotCooCoo ab4e56934b Linux: the log says why a pen's window stays on Wayland, and names the pens XWayland lists
Part of #5622. On a Wayland session winit 0.30 receives no input from a
pen, so the app opens its window through XWayland when a pen is attached
(#4967). When it did not, the log said nothing, and a report could not
tell a pen that was not found from a session with no X display.

- On a Wayland session the log now says why the window opens on Wayland:
  no pen in /proc/bus/input/devices, the device list could not be read,
  VECTORCRAFT_NATIVE_WAYLAND is set, or there is no X display (DISPLAY is
  unset, as in the Flatpak, which has --socket=fallback-x11). The
  pen-found line names the pen, and the missing-libraries warning no
  longer says Linux Display Server is X11 when a pen chose XWayland.
- Under X11 the tablet reader logs the pens the X server lists (for
  example XWayland's "xwayland-tablet stylus:16"), again when that list
  changes, and the first event from each pen.
- docs/development.md lists the new log lines, the Flatpak override that
  gives it an X display, and that GDK_BACKEND=x11 does not move the
  window to XWayland.
2026-11-30 07:48:08 -08:00
dotCooCoo ede596a7ed Fix #3211: Text Wrap › Make wraps the area type selected with the object
Make set the wrap option on every selected object, the area type
included, and the wrap resolver never wraps an object that has the
option, so selecting the object and the type together and choosing Make
left the type as it was.

- Make leaves a selected type object with another selected object above
  it in its layer out of the wrap objects, and takes the option off it
  if an earlier Make set it there. Text Wrap Options leaves it out too.
- Make warns in the status bar when no area type lies below any of its
  wrap objects (the object is below the type, or the type is point
  type).
- Make and Options record no undo step when nothing changes.

Docs: docs/mcp.md, the text_wrap tool description and the command
params text.
2026-11-30 07:28:17 -08:00
dotCooCoo b1e6ecd55c Merge main into fix/engine-tests-into-it 2026-11-30 06:39:42 -08:00
dotCooCoo 49344097e4 Docs: keep the original preflight test command in the 2026-11-18 record
The 2026-11-18 validation ran when preflight was its own test binary, so
the record keeps `--test preflight`. A separate line gives the current
command, `--test it preflight::`.
2026-11-30 06:39:42 -08:00
dotCooCoo 83a8e775d4 Graphics: start on Mesa's software renderer when no adapter can show the window
Part of #2654. On Linux and the BSDs, when no graphics adapter could
show the window (no wgpu backend started, or the restarts left no
adapter), the app ended. It now starts once more with
LIBGL_ALWAYS_SOFTWARE=1 and VECTORCRAFT_GPU_SOFTWARE=1 and says in the
status bar that it draws on the CPU. When that start also fails, or on
Windows and macOS, or with WGPU_BACKEND, WGPU_ADAPTER_NAME or
LIBGL_ALWAYS_SOFTWARE set, the error names the backends the driver
needs.

wgpu draws with Vulkan, OpenGL 3.3 or OpenGL ES 3.0. Intel's Ironlake
graphics (8086:0046) has OpenGL 2.1 alone, so the window's surface
failed with "Failed to create surface for any enabled backend: {}"
before any adapter was listed, and gpu::finish restarted only without
an adapter that had been picked.
2026-11-30 06:34:14 -08:00
FredApps 4892e7d3a4 Merge pull request #10197 from dotCooCoo/fix/asset-export-footer-scrolls
Asset Export: the settings scroll in a short panel instead of running off its top
2026-11-30 15:32:18 +01:00
dotCooCoo 81cc0fc797 Tests: nine engine integration test files join the tests/it binary
blend_render_consistency, direct_handle_mirror, ellipse_drag_anchors,
eraser_open_fill, group3_reference, path_fill_hits, pen_space_handle,
preflight and scissors_snap were each a test binary of their own. They
now are modules of crates/engine/tests/it, with their tests unchanged,
so the engine's tests link nine fewer binaries.

The files that stay separate change process-wide state (installed
plug-ins, Safe Mode, the font database, color settings, the working
directory), are run by name from CI or xtask (the Affinity corpus
tests, script_corpus, import_fuzz), or compile for about a minute on
their own (command_sweep), which would make every edit to tests/it
rebuild it.

Docs that named the old paths name the new ones, and the preflight
command in docs/production-preflight.md runs `--test it preflight::`.
2026-11-30 06:19:13 -08:00
dotCooCoo 6420b36db4 Merge main into fix/xtask-test-lint 2026-11-30 06:19:07 -08:00
dotCooCoo ebb84ec16c xtask: test-lint reports only-weak hits instead of failing on them
Replayed over the last 300 merges to main, only-weak would have failed
3 merges on 4 hits, and all 4 were tests where an is_ok or is_some check
is the behavior under test (a lease or start file that can be taken
again, a never-panic property test, a label found by a search with the
row's position in its predicate). Of the 39 only-weak hits in the whole
workspace, most are the same kinds: registry and label lookups,
still-imports and never-panic tests.

only-weak now lists its hits without failing, like all-unguarded. The
check fails on self-compare, ignore-without-reason and sleep. With this
change the replay fails 0 of 272 merges that change Rust files.
2026-11-30 05:40:53 -08:00
yoriswind 3d0183495c Merge upstream panel harness changes for Layers appearance markers 2026-11-30 05:40:00 -08:00
FredApps 1d9f1ef042 Merge pull request #10206 from jmverges/fix/ai-page-word-of-two-text-objects
.ai import: a word the page draws from two text objects in a row is their type
2026-11-30 14:37:21 +01:00
dotCooCoo 13b9e22c4c Tests: merge two duplicate engine tests, keeping every assertion
Two engine tests ran the same inputs as another test and checked them
again with a tighter bound or a second check.

- commands_that_do_not_wait_for_a_tool_edit_change_no_document ran every
  junk case of every non-waiting command on the Single and Multi
  fixtures, which every_command_with_junk_params also runs. The junk
  sweep now compares tool_edit_state before and after each of those
  calls as well as its own panic, interaction and invariant checks. The
  tool-edit test keeps only the cases that turn each option on and off
  (option_cases), which the junk sweep does not send.
- turned_colored_inflate_facets_and_seams_cover_their_edges_once drew
  the same turned Inflate in the same solid fill as one case of
  colored_light_surfaces_match_supersampling_at_internal_facet_edges.
  That case now carries its bound (at most one RGB channel more than 3
  levels off, by no more than 4) and the separate test is removed.

Each merged test fails on a fault that only the removed check caught
before: document.info bumping the revision on a non-object params value
fails every_command_with_junk_params ("document.info "str" [Multi]"),
and solid_surface drawing every facet as a fill and a seam stroke fails
the supersampling test (2 channels off, at most 5).

docs/target-app-parity.md and waits_for_tool_edit's doc comment name
the tests that now hold these checks.
2026-11-30 05:29:35 -08:00
dotCooCoo 28f33ca04c xtask: test-lint scopes bindings, spans ignore reasons and names its failing rules
- The module docs and docs/development.md name the four rules that fail
  the check, and describe `only-weak` and `self-compare` by what they
  match (`len() > 0`, `assert_ne!`).
- The changed-lines diff passes `--inter-hunk-context=0`, so a clone's
  `diff.interHunkContext` cannot mark unchanged lines between two edits.
- Single-letter workflow variables count as set.
- Test names with non-ASCII letters are read whole.
- An allow in a block comment needs a reason before `*/`.
- `all-unguarded` uses only a binding still in scope at the assertion,
  treats a `const` declared with different values as unknown, and drops
  a counted local once its collection may shrink or be replaced.
- `only-weak` ignores `unwrap_err`, `expect_err` and `panic!` in failure
  messages.
- `self-compare` leaves out operands that call a method returning the
  next value each time (`next`, `pop_front`, `recv` and others).
- An `ignore-without-reason` span reaches the attribute's `]`, so a
  change to a reason on the next line counts.
2026-11-30 05:20:08 -08:00
dotCooCoo 25756e1b8d xtask: test-lint fails on four rules; all-unguarded skips collections that cannot be empty
Replayed over the last 300 merges of main, all-unguarded failed good
pull requests on collections that cannot be empty. It now leaves out:

- plain locals bound to an array type of a positive length, to a
  non-empty array literal or vec![...], or to a literal range followed
  only by methods that keep an item (map, iter, rev, collect into a
  known collection ...); counts may be consts of the file
- locals filled by a push or insert on every pass of a loop over such a
  source
- fields and const or static items the file declares only as arrays of
  a positive length
- collections compared with a non-empty literal through such methods,
  directly or through a local built from them, and assertions on a
  local bound to a count or length
- .windows(k) and .chunks_exact(k) when the collection has k items

Later code that may remove items or replace the collection cancels the
exemption.

Only only-weak, self-compare, ignore-without-reason and sleep fail the
check now. The other rules list their hits on changed lines without
failing. On the same 300 merges, 1 would fail (an only-weak test), and
the 3 all-unguarded hits are tests an empty result passes. On main at
07037afda8, all-unguarded lists 392 hits instead of 433.
2026-11-30 04:43:33 -08:00