Commit Graph
27204 Commits
Author SHA1 Message Date
.CooCoo 6123cd0e10 Merge pull request #11004 from dotCooCoo/fix/swatch-strip-context-menu
Swatches: Shift+F10, the Menu key or a screen reader sets the stroke from a Swatch Strip chip
2026-12-05 19:35:22 -08:00
.CooCoo 9f90865ac6 Merge pull request #11018 from dotCooCoo/fix/blend-draft-follows-undo
Blend: Undo, Redo and other rollbacks drop an unfinished Steps, Distance, Ramp or Shift value
2026-12-05 19:34:42 -08:00
.CooCoo 242a2eafad Merge pull request #11019 from storytold/chore/craft-libs-pin-138ce99
Pin craft-libs at 138ce992, with the shared vector kernel
2026-12-05 19:23:02 -08:00
dotCooCoo f0031ebe25 Merge main into chore/craft-libs-pin-138ce99 2026-12-05 19:22:31 -08:00
.CooCoo 337d644214 Merge pull request #10869 from dotCooCoo/fix/dwg-replace-keeps-selection
DXF Import: a failed DWG Replace keeps the user's selection
2026-12-05 19:15:06 -08:00
.CooCoo 12f78e75d1 Merge pull request #10806 from yoriswind/codex/10799-freeform-point-eyedropper
Gradients: sample a color into a freeform point
2026-12-05 19:08:07 -08:00
.CooCoo 58f7b5cf99 Merge pull request #10498 from Terra854/fix/ai-pattern-symbol-scaling-10477
AI export: retain symbol patterns and scale tile stroke geometry
2026-12-05 19:07:45 -08:00
.CooCoo 6248bc548d Merge pull request #11016 from dotCooCoo/fix/glowing-edges-view-crop
Effects: Glowing Edges scales its glow by the whole object's strongest edge at every zoom
2026-12-05 19:04:56 -08:00
.CooCoo 712bd08549 Merge pull request #10974 from dotCooCoo/feat/pict-export
PICT: Export As writes QuickDraw pictures
2026-12-05 18:45:59 -08:00
.CooCoo 4d402cecb5 Merge pull request #11000 from dotCooCoo/fix/flyout-dialog-popups
Panels: a flyout's popover is its child; drop the flyout dialog tracking
2026-12-05 18:38:38 -08:00
Dylan M. Taylor 7106c9753d xtask pdf-deps: expect the PDF crates at 138ce992 too 2026-12-05 21:36:19 -05:00
.CooCoo 6eeaf4f253 Merge pull request #11009 from dotCooCoo/fix/bundled-fonts-static-catalog
Fonts: the catalog reads the bundled fonts in place instead of a heap copy
2026-12-05 18:36:11 -08:00
.CooCoo 2c214544cb Merge pull request #11010 from dotCooCoo/fix/reap-printer-settings
Print: Printer Setup no longer leaves a zombie process behind on Linux and macOS
2026-12-05 18:35:31 -08:00
.CooCoo a489eb1bf7 Merge pull request #11013 from dotCooCoo/train/carry6642
Brushes: built-in Impact Bursts brush library
2026-12-05 18:34:52 -08:00
.CooCoo 7c77540bb3 Merge pull request #11008 from dotCooCoo/fix/reach-caps-at-tip-shortened-ends
Strokes: projecting caps under Tip-aligned arrowheads are measured at the shortened ends
2026-12-05 18:22:05 -08:00
.CooCoo e0402bea16 Merge pull request #10962 from dotCooCoo/train/carry10596
Locale: numeric and unit fields read Unicode digits (carries #10596)
2026-12-05 18:14:46 -08:00
Dylan M. Taylor 78b192e5f5 Pin craft-libs at 138ce992, which carries the shared vector kernel
craft-libs main now holds craft-geom, craft-pathops and craft-trace
(storytold/craft-libs#2260, RFC-0030 step 1). The pin moves first, as its
own change, so the cutover that deletes VectorCraft's copies only swaps
crates.

API changes since f9e5cecc, behaviour kept:
- craft-dxf's Drawing has block definitions; VectorCraft writes none.
- craft-cdr reads text as Object::Text and counts what a CMX read left out;
  CDR text stays left out under the existing unsupported-objects warning,
  as it was when the reader dropped it.
2026-12-05 21:07:11 -05:00
dotCooCoo 14f92a1fa1 DXF Import: a restored Objects on Path member keeps the paints
A restored selection loads its paints for new art only when the journal
records it with a selection command that loads them on replay. An
Objects on Path member, recorded as object.objectsOnPath.selectMember,
now keeps the paints as they are, as a symbol part already does.
2026-12-05 17:46:16 -08:00
.CooCoo efd00371e5 Merge pull request #11006 from dotCooCoo/fix/sonarcloud-shard-disk
CI: run SonarCloud coverage in 8 test shards so each fits on the runner
2026-12-05 17:23:52 -08:00
dotCooCoo e6ed3a2a4c Effects: Glowing Edges scales its glow by the whole object's strongest edge at every zoom
Glowing Edges divides each pixel's edge strength by the strongest edge in
its input (crates/effects/src/pixel/edges.rs:45-56), but its reach let the
renderer crop the raster to the view once the object passed the pixel
budget. A zoomed-in frame then took the peak from the part in view, so the
same edge glowed at a different brightness depending on the zoom and on
where the view was, and a pan within a kept crop's margin kept the earlier
crop's peak.

Glowing Edges now has no nearby reach, as Torn Edges and Cutout, whose
results also depend on the whole object: past the budget the whole object
is filtered at a lower resolution, and whole-pixel pans reuse that raster.
2026-12-05 17:11:28 -08:00
dotCooCoo f7a35c1e02 Strokes: closed lone anchors keep their dot under Tip-aligned arrowheads
A closed subpath with no length in a path that ends open is painted as a
square dot at the whole path's reach. The shortened-line pass skipped
closed subpaths, so once the start cap moved to the shortened end the
box no longer took in that dot.
2026-12-05 17:07:47 -08:00
dotCooCoo 6e76ee0d74 Docs: count every built-in brush library
docs/mcp.md names all twenty-one built-in libraries, adding Paint, Ornamental, Image Brush, Artistic Brushes and Vector Packs; the Strokes rows count twenty-one; the Impact Bursts bullet drops a brush length its art does not share.
2026-12-05 17:07:46 -08:00
dotCooCoo 155a244c60 Blend: Undo, Redo and other rollbacks drop an unfinished Steps, Distance, Ramp or Shift value
The Blend panel's draft key held the document uid, its File > Revert
count and the selected objects with their nearest blends. Undo and Redo
replace the document's content without changing those, so a value typed
into Steps, Distance, Ramp or Shift and not yet finished stayed, and
Enter applied it to the restored blend. After a canceled preview or
undo group, a new blend can take the removed blend's node id, and the
value reached that blend too.

The key now also holds the document's history restore and rollback
counts, as the other selection fields' target (`selection_target`)
does.
2026-12-05 16:58:23 -08:00
dotCooCoo 18751418b4 Merge main into fix/swatch-strip-context-menu 2026-12-05 16:47:37 -08:00
dotCooCoo 9f6e817063 Swatches: two swatches with one name keep a Swatch Strip chip each
Each chip's control was keyed by its document and the paint it sends,
so two swatches with the same name (which an opened file can hold) gave
two chips one control, sharing hover, press, focus and one accessibility
node. Chips that send the same paint are now numbered in list order, so
each keeps a control of its own; distinct swatches keep their keys.

docs/control-protocol.md now says the Menu key on a focused chip works
off macOS only.
2026-12-05 16:47:26 -08:00
dotCooCoo 3f0606b3e7 Docs: list Impact Bursts in the brush library counts
docs/mcp.md names Impact Bursts and its six brushes with id impact-bursts, and the Dry Media brushes go back to Dry Media; the Strokes rows count sixteen generated libraries; an evidence bullet describes the library. The gaps.md status line keeps main's text.
2026-12-05 16:46:47 -08:00
dotCooCoo d3ac629e67 Brushes: keep Impact Bursts with the other library builders
The builder sat under the commands section header with a doubled blank line; it now ends the library builders, before that header.
2026-12-05 16:46:46 -08:00
dotCooCoo 5d92e04350 Tests: move the Impact Bursts checks into the brush names and counts test
The assertions sat after the last test function, outside any function, so the engine tests did not compile.
2026-12-05 16:43:44 -08:00
dotCooCoo 61f024cbbe i18n: drop the translated Impact Bursts rows
Feature pull requests add English only (AGENTS.md rule 16); the translations go through storytold/craft-i18n.
2026-12-05 16:43:20 -08:00
dotCooCoo 3a00fe61f2 Merge main into train/carry6642 2026-12-05 16:43:07 -08:00
dotCooCoo a397bb5265 Print: Printer Setup no longer leaves a zombie process behind on Linux and macOS
Printer Setup started system-config-printer, xdg-open or open and dropped the
child, so the ended process stayed a zombie until the app quit. It now starts
them through host_services::spawn_detached, which waits for the process on a
thread. On Windows nothing changes.

Builds on #11007, which adds spawn_detached.
2026-12-05 16:35:06 -08:00
dotCooCoo 10fbd62491 Fonts: the catalog reads the bundled fonts in place instead of a copy
FontDb added the bundled fonts to the font catalog with add_bytes on the
first call of FontDb::catalog, which copied every bundled font file into
the heap (3,381,864 bytes for the nine fonts in assets/fonts, more with
craft-fonts embedded). The app reads the catalog at startup, so every
session held those copies.

FontDb::new now registers them with Catalog::add_static (craft-libs
#4888, in the pinned rev), which reads the faces from the binary's own
bytes, so the deferral through a Once is gone.

The test checks that the bundled faces are in the catalog as soon as
the database is made, and that Catalog::face_data returns the embedded
bytes themselves (same pointer), so a copy fails it.
2026-12-05 16:32:02 -08:00
dotCooCoo 028454cd57 Strokes: projecting caps under Tip-aligned arrowheads are measured at the shortened ends
With Tip alignment the arrowhead shortens the line and the projecting cap
is drawn at the shortened end, but reach_along put the cap's corners at
the path's own end, so the bounds reached half a stroke width past the
head's tip. The caps are now measured along the shortened line, aligned
as the renderer aligns them, and a trim that leaves no length still
counts the cap's dot. Follows #10994.
2026-12-05 16:16:13 -08:00
dotCooCoo a728d46e39 Links: processes started to open links, files and folders are reaped when they end
open_link, Show in Folder, opening a written file and Edit Original
dropped the spawned child without waiting for it, so on Linux and the
BSDs each finished xdg-open or editor process stayed a zombie until the
app exited. spawn_detached now starts a thread that waits for the
process before it starts it, so the process is reaped when it ends. On
Windows dropping the child closes its handle, so no thread is started.
2026-12-05 16:09:50 -08:00
dotCooCoo 26c58af1a2 CI: run SonarCloud coverage in 8 test shards so each fits on the runner
Every test writes its own raw coverage profile in the shared SonarCloud
workflow, and at 4 shards each shard wrote about 80 GB in 8,000 files.
Since 2026-12-05 the shards of main's SonarCloud runs fail with "No
space left on device" in "Run this shard's tests" (runs 47575790406
and 47566278173), so main's nightly commit gets no analysis.

8 shards halve the raw profiles each runner holds. The shared workflow
fix is storytold/craft-common-actions#486, which merges the profiles
of one test binary as each test exits; this goes back to the default
once it merges.
2026-12-05 16:09:27 -08:00
dotCooCoo 78a6c7460d PICT: warn when a brushed stroke's blending mode is left out
Scene::stroke returned from the brush branch before it checked the stroke's
blending mode, so a brushed stroke with Multiply lost its blend in WMF, EMF
and PICT output without the blending warning. The check now runs first.

docs/mcp.md: name the output files for one and several artboards, the
visible-art frame limit, and when oversized fills are split or thinned.
docs/control-protocol.md: Open and Place also read .pct, .pic and .pict.
2026-12-05 16:08:31 -08:00
dotCooCoo 374176f3c6 DXF Import: a restore inherits after a defaults-only paint; a part keeps the paints
Restoring a selection now clears the marker a defaults-only paint left,
as every top-level command does, so new art takes the restored
selection's appearance live as it does when the journaled select.set
replays. A restored symbol part no longer loads its paints for new art,
as symbol.instance.selectPart, the step the journal records for it,
does not.
2026-12-05 16:01:45 -08:00
dotCooCoo 56e5217d53 Merge main into fix/flyout-dialog-popups 2026-12-05 15:56:01 -08:00
.CooCoo 66b6db183d Merge pull request #10989 from dotCooCoo/fix/monitor-work-area-placement
Windows: dialogs and popups open on a connected monitor, clear of the taskbar
2026-12-05 15:45:59 -08:00
dotCooCoo 01f331fe8c Merge main into fix/monitor-work-area-placement
DesktopWindows now passes the pointer, button, text and warp calls to
windows_stylus::ContactWindows, so a pen or a finger in contact still
counts as the primary button with the monitor listing in place.
2026-12-05 15:45:04 -08:00
dotCooCoo 8235762c4c Merge main into train/carry10596 2026-12-05 15:30:07 -08:00
dotCooCoo 15949962fb Swatches: Shift+F10, the Menu key or a screen reader sets the stroke from a Swatch Strip chip
A right-click or an Alt-click on a Swatch Strip chip sets the stroke, but
keyboard and screen-reader users had no way to do the same. The strip now
reads the swatch's context request (SwatchOutput::context), so Shift+F10,
or the Menu key off macOS, on the focused chip sets the stroke as a
right-click does. Each chip offers AccessKit's ShowContextMenu action,
which sets the stroke too.

The swatch's request also counts any right-button release over it,
wherever the press began. The strip keeps its own press tracking for
the pointer, so a right-drag from elsewhere, a press on a layer over the
chip or a release in another document still sets nothing, and it takes
the context request only in a frame without a right-button release.

Each chip's control is now keyed by its document and the paint it sends
rather than by its place in the list, so a click whose press lands on one
swatch sets that swatch even when the list reorders before the release,
and a release after the active document changes sets nothing there.

The panel test harness gains offers_context_menu and show_context_menu
for a control's AccessKit context menu action.
2026-12-05 15:27:19 -08:00
.CooCoo fd470699e0 Merge pull request #10986 from dotCooCoo/fix/raster-effect-whole-object-reuse
Effects: a whole-object raster keeps its origin across whole-pixel pans of a centered view
2026-12-05 15:14:48 -08:00
.CooCoo 59e6a3e7fc Merge pull request #10977 from dotCooCoo/fix/tablet-pen-stroke-held
Windows: a pen or touch stroke stays down until the pen lifts
2026-12-05 15:13:48 -08:00
dotCooCoo 55df55941c Merge main into fix/monitor-work-area-placement 2026-12-05 15:12:41 -08:00
dotCooCoo b3b71e0a60 Merge main into fix/tablet-pen-stroke-held 2026-12-05 15:11:39 -08:00
dotCooCoo 7d1c186423 Merge main into train/carry10596 2026-12-05 15:07:54 -08:00
dotCooCoo 1862d90041 Panels: drop the flyout dialog tracking now that popovers are children of their opener
craft-libs 5270 makes a popup that a hosted dialog shows a child of the
layer the dialog was opened from, when it is opened through
WindowDialogs::with from inside that layer's body. The Gradient panel's
stop popover opens that way from an icon column's flyout, so the flyout
keeps it as its own: the focus moving into the popover and presses in it
no longer collapse the flyout, and one press away closes both.

panel_docking::show no longer notes the dialogs opened while a flyout is
open or turns auto-collapse off while one of them shows. The flyout test
also checks that a press away with the popover open closes the popover
and the flyout together.
2026-12-05 15:06:23 -08:00
.CooCoo 4219586a9e Merge pull request #10985 from dotCooCoo/fix/main-freebsd-engine-tests
Main: FreeBSD engine tests clash in one process (shared events plug-ins, shared fixture folder)
2026-12-05 15:04:10 -08:00
dotCooCoo d69995131f Merge main into feat/pict-export 2026-12-05 15:00:08 -08:00