Commit Graph
27219 Commits
Author SHA1 Message Date
FredAppsandautocraft-bot[bot] 71cbaf4e09 Merge pull request #10778
Co-authored-by: autocraft-bot[bot] <354215646+autocraft-bot[bot]@users.noreply.github.com>
2026-12-06 04:54:50 +00:00
.CooCoo 7478e3f61e Merge pull request #11022 from dotCooCoo/feat/3d-raster-color-mode
3D and Materials: Raster Settings › Color makes the rendered image RGB, grayscale or bitmap
2026-12-05 20:54:50 -08:00
.CooCoo b53c263829 Merge pull request #11002 from dotCooCoo/fix/windows-font-registry-watch
Fonts: on Windows a font registered outside the font folders shows without a refresh
2026-12-05 20:34:45 -08:00
.CooCoo 230089b371 Merge pull request #11027 from dotCooCoo/chore/craft-libs-pin-6b67abe
Dependencies: craft-libs pin to main, and the workarounds for #4938, #5281, #5381, #5410 and #5513 removed
2026-12-05 20:26:04 -08:00
dotCooCoo 425c7a33df Dependencies: craft-libs pin to main, and the workarounds for #4938, #5281, #5381, #5410 and #5513 removed
Moves every craft-libs rev (Cargo.toml, Cargo.lock, apps/vectorcraft-web,
xtask pdf_deps) from 138ce9929e to craft-libs main 6b67abe4b3. The egui,
winit and acadrust revs match the ones that craft-libs rev pins.

- Canvas: the drag-session restart after a Removed cancel (resume_carry
  and CanvasCache::removed_press) is removed; craft-libs #5281 keeps the
  session running while the canvas is hidden for a pass.
- DXF export: blocks_compat is removed; group blocks are written through
  craft_dxf::drawing::Block, Drawing::blocks and Codes::insert
  (craft-libs #5381), so Drawing::blocks now holds them.
- DXF import: VectorCraft's copy of the REGION reader (import/acis.rs and
  the region helpers in reader.rs) is removed; regions are read with
  craft_dxf::acis (craft-libs #5513), capped at the import's element limit.
  The hex and size checks of the binary data are tested in craft-dxf.
- CGM import: the cgm feature is removed, so binary CGM files open and
  place in every build (craft-libs #5410). The reader's notes on unread
  fonts, appended text, continuous alignment, marker types and character
  sets now come back as warnings too. docs/mcp.md describes the import.
- Canvas: the anchor marks draw a mark's fill and edge as one shape and
  leave out other paths' handles that cannot reach the canvas, as
  BezierOverlay does since craft-libs #4938, so they keep painting what
  the overlay paints.
- Native files: craft-vectorcraft-format's VERSION is 5 (craft-libs
  #5366). Saves for version 4 keep placed documents, Color Halftone's Max
  Radius in pixels and Twist angles as before (new PLACED_SINCE), and only
  live stars become paths there (LIVE_STAR_SINCE). A version 4 file from
  0.21.0 or later still opens with its Twist angles as saved. Save As
  lists version 5, and the version option defaults to 5.
- Layers panel test: icons share packed atlas pages since craft-libs
  #4275, so the test tells icons apart by texture and atlas rectangle.
2026-12-05 19:59:01 -08:00
.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
dotCooCoo 8ad649086e Merge main into fix/windows-font-registry-watch 2026-12-05 18:54:46 -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 3551fa0e7c 3D and Materials: Bitmap on a transparent background makes black and transparent pixels
With Background set to Transparent, the 3D rendered image's Bitmap color
model now makes each pixel opaque black or fully transparent: a dark pixel
at least half covered is black, and a light pixel or one less than half
covered is transparent. Before, white pixels stayed white and edge pixels
kept partial coverage. With a white background each pixel is still black
or white.

`RENDER_COLOR_MODELS` is exported from the effects crate beside
`RENDER_BACKGROUNDS` and `RENDER_QUALITIES`.

Docs: docs/three-d.md, docs/mcp.md, docs/target-app-parity.md, params text.
2026-12-05 17:59:49 -08: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
dotCooCoo 89abb880e2 Merge main into fix/windows-font-registry-watch 2026-12-05 17:41:12 -08:00
dotCooCoo 311280dbc7 Fonts: the scan reads the fonts the registry lists when the font service is off
With a complete platform lister the font catalog does not ask the font
service and does not read the registry's font list, so a font listed only
in the registry was noted as a change but never cataloged. The catalog's
lister now adds the registry's full paths to the platform files it lists,
as the catalog does itself when the font service is on.

RegisteredFonts::changed reads the registry before it takes its lock, so a
scan noting the registry's list does not wait for that read.

The registry tests scan with a lister of their own that lists no platform
files, so the process-wide lister another test sets does not change what
they scan. The first one now checks that the registered font is cataloged.
2026-12-05 17:41:12 -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 d83fa66454 3D and Materials: Raster Settings › Color makes the rendered image RGB, grayscale or bitmap
The 3D effects' `render` object takes `colorModel` (`document`, the default,
`grayscale` or `bitmap`). Grayscale gives each pixel of the rendered image the
Rec. 709 luma of its color, and Bitmap makes it black or white, after the
background and with each pixel's transparency kept, as Effect › Rasterize does
with the same model ids. Edge pixels are mapped from their straight color
before the coverage is rounded. Grayscale and Bitmap images are stored as gray
PNGs, and the model is part of the rendered image's cache key.

Any other value is refused with an error and leaves the object and the undo
history unchanged. The setting is saved with the effect.

Render Settings › Raster Settings… gets a Color row (RGB, Grayscale, Bitmap).
It opens blank for a selection that holds different models, and OK sets the
picked model on every selected object in one undo step.

Docs: docs/three-d.md, docs/mcp.md, docs/target-app-parity.md, params text.
2026-12-05 16:24:16 -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 afa7fbb1ca Merge main into fix/windows-font-registry-watch 2026-12-05 16:01:17 -08:00
dotCooCoo 6e41db2773 Fonts: the font watch checks the registry's fonts too
The desktop's font watch polled the font catalog's own check, which leaves
the registry out when the platform font service is off, so a font
registered from a folder no scan reads still waited for Refresh Font List.
FontDb::watch now polls FontDb::installed_fonts_changed, which also compares
the registry's list, rescans the catalog when it changed and wakes the app
as before. The app keeps a FontWatch in place of the catalog's Watch.
2026-12-05 16:01:15 -08:00
dotCooCoo 56e5217d53 Merge main into fix/flyout-dialog-popups 2026-12-05 15:56:01 -08:00