Commit Graph
11204 Commits
Author SHA1 Message Date
.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
.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 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
.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
.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 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 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
dotCooCoo f553ddfa67 xtask: test-lint fails on weak tests in the lines a change touches
`cargo xtask test-lint` reads the Rust files changed since a base and
fails on tests that a wrong result can pass: `.all()` with no length or
emptiness check, only is_ok/is_some/non-empty checks, `assert_eq!(x, x)`,
a process test that checks only the exit status, no assertion and no
asserting helper, a silent early return on a value from the code under
test, `#[ignore]` without a reason, an environment variable that no CI
leg sets, `thread::sleep` in test code, and test code that reads Rust
source outside the listed source audits.

Only hits on changed lines, or in a test with a changed line for the
rules about a whole test, fail it; older hits in the same files are
counted. The base is --base or TEST_LINT_BASE, the first parent of the
checked-out commit in CI (a shallow checkout fetches it), else the merge
base with upstream/main or origin/main. `// test-lint: allow <rule>
<reason>` exempts a line. `--all` lists every hit by crate and rule and
does not fail. `cargo xtask ci` runs it after cursors, so it runs in the
checks shard.
2026-11-30 03:12:48 -08:00
jmvergesandClaude Opus 5.5 bc9e7c9124 .ai import: a word the page draws from two text objects in a row is their type
Where the text document makes the type of every text object that shows,
each piece of the page's type is matched with the made type that holds
it, and a word of the piece is that type's when its spelling contains
the word. The page can draw two text objects as one word: a word and a
letter set apart from it (a swash "h" after "Spirit") come out of the
page as one piece, "Spirith". Both text objects hold the piece, but
neither spells the word, so it was counted as type with no text object,
with the note "some of the page's type has no text object in the
layers, so it is left out" (a loss, so `convert` wouldn't write over the
file), though both text objects come in and draw it.

A word still left is now the type of the text objects holding the piece
when it is the last word of one of them joined to the first word of
another that draws after it along the first one's lines. Each part is a
whole word of its text object, so bits of words don't make up a piece,
and the two the other way round don't make the word.

In our garment files (used locally, never committed) this takes the
note off one file of 424 and changes nothing else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 07:06:19 +00:00
dotCooCoo e94496b42f Asset Export: the settings scroll in a short panel
With assets in the panel and many format rows, the Export Settings
section grew past the top of the panel, so its heading and the first
format rows could not be reached. The settings now sit in a scrolling
stack that takes at most half the panel's height, as the CSS
Properties panel does, and the preset name row, Export and the footer
bar stay below it.
2026-11-29 22:16:18 -08:00
dotCooCoo be62563b59 Merge main into fix/wayland-pinch-zoom 2026-11-29 21:30:45 -08:00
.CooCoo 782cf7b474 Merge pull request #10183 from dotCooCoo/docs/docs-roadmap-current
Docs: docs/roadmap.md matches what main ships
2026-11-29 20:09:23 -08:00
.CooCoo f5abe7c1ae Merge pull request #10181 from dotCooCoo/docs/three-d-current
Docs: three-d.md matches what main ships
2026-11-29 20:09:17 -08:00
.CooCoo 079a5efdbe Merge pull request #10180 from dotCooCoo/docs/hardware-parity-current
Docs: hardware-parity.md matches what main ships
2026-11-29 20:09:11 -08:00
.CooCoo 1ee2fb8d0a Merge pull request #10179 from dotCooCoo/docs/type-parity-current
Docs: type-parity.md matches what main ships
2026-11-29 20:09:04 -08:00
.CooCoo 1718b77510 Merge pull request #10178 from dotCooCoo/docs/effects-parity-current
Docs: effects-parity.md matches what main ships
2026-11-29 20:08:57 -08:00
.CooCoo 8d6748a927 Merge pull request #10177 from dotCooCoo/docs/file-format-parity-current
Docs: file-format-parity.md matches what main ships
2026-11-29 20:08:49 -08:00
.CooCoo 5e128de75b Merge pull request #10176 from dotCooCoo/docs/ui-parity-current
Docs: ui-parity.md matches what main ships
2026-11-29 20:08:40 -08:00
.CooCoo ae18c8e8bf Merge pull request #10175 from dotCooCoo/docs/target-app-parity-current
Docs: target-app-parity.md matches what main ships
2026-11-29 20:08:29 -08:00