Clicking OK or Cancel in Preferences ended the app with an uncaught
NSRangeException from -[_NSTouchBarFinderObservation invalidate]
whenever the Touch Bar server runs (any Mac with a Touch Bar). When a
window closes, accesskit_macos 0.27.1 put the content view's original
class back, which removed the key-value observing subclass AppKit's
Touch Bar support had installed on the view. AppKit then failed to
remove its observer.
accesskit_macos 0.27.2 leaves the class alone when key-value observing
has subclassed the view (AccessKit/accesskit#835). Cargo.lock moves to
it, with accesskit 0.25.2 and accesskit_consumer 0.39.2, which it
requires.
Fixes#10473
- object.rasterize and Document.rasterize refuse clipBounds that reach
none of the selected objects' own bounds, including a rectangle in the
gap between two of them, instead of replacing the art with a
background-only image.
- imageCapture checks its destination again on every write the export
makes and as the file is committed, so a destination that becomes a
link to an open document or a linked file while the art renders is
refused.
- imageCapture refuses a destination whose real path is not valid UTF-8
instead of writing under a name with its bytes replaced.
- A missing linked file's name in the other Unicode normalization form
counts as the linked file in folders that ignore the form (macOS, and
casefolded folders on Linux).
- The hard-link tests skip on volumes without hard links.
- docs/mcp.md: imageCapture rounds clip dimensions to the nearest pixel;
rasterize rounds fractional dimensions up.
The web interface font stack fetches its craft-fonts faces from the
`fonts/ui/` URLs in SERVED_FONTS, but only crates/text/build.rs's
OUT_DIR held those files: the Trunk hook copied the `fonts/<sha16>/`
faces alone. On a built site every served interface face (Noto Sans
Arabic, Thai and Georgian, NanumGothic, Noto Sans Devanagari) failed to
load, and the interface drew those scripts as missing-glyph boxes.
`cargo xtask web-fonts` now also publishes the `startup` and `demand`
faces of crates/text/web-fonts.txt under `fonts/ui/`, licence beside
each, with the same craft-fonts-build `Embed::serve` that build.rs
uses, so the files match the table's URLs and integrity values.
Test: publishes_the_interface_faces_at_their_served_urls.
Fixes#10567.
craft-libs #4659 (swatch chips that fit a one-column rail) and #4723
have merged, so every craft-libs rev moves from #4659's head edbf2117
to craft-libs main at 77ade517. The egui revisions move to 861d60a6,
the ones that craft-libs rev pins; winit stays at 0dfcec0e. Cargo.lock
changes only the sources of those packages.
craft-libs #4609 measures the Fill and Stroke proxy at the width of its
column, so the proxy no longer widens a one-column Tools panel. The
column is then one rail button less one tight gap wide, and the three
swatch chips (a third of a rail button each, a tight gap apart) took
more than that: None wrapped onto a second line.
The craft-libs pin moves to storytold/craft-libs#4659, which sizes a
swatch chip so the three chips and their gaps fit the column. That rev
also carries #4609 and the other craft-libs changes merged up to
d73e274a. The one-column toolbar test now also checks that the chips
stay inside the column of tools and do not overlap, and a new test
checks the same at UI scale 2.
The Affinity raster tests compared decoded pixels with CRCs captured from
the reader's own output, so a decoding error present when the CRC was
taken would pass. They now read the image's tiles straight from the
archive (256-byte by 256-row planes, states 2 and 4), interleave them,
scale 16-bit samples with rounding, and compare the whole buffer. The
Affinity 3 signatures drop the CRC of the model's Debug output and keep
the feature counts.
The DXF golden test no longer rewrites its expected files when
WRITE_DXF_GOLDENS is set. Each golden file is first checked against the
drawing it should hold (rectangle corners, circle center, radius and
bulges, ACI and true colors, lineweights), and a mismatch saves the
output to the temp directory for review.
The Preset Details rows stood a tight gap apart, so each caption touched
the field above it. craft-libs now lays them out a stack gap apart, with
a fixed details column and Create and Close at its foot (storytold/
craft-libs e93e6f62a and e433cdfa8). The pin moves to craft-libs main
26f293d78, which holds both; the egui and winit revisions are unchanged.
- More Settings and Manage Profiles stand side by side, each as wide as
its words, instead of two buttons across the whole column.
- The pin brings two API changes: CanvasScrollbars::clear_of takes
ShownBars, and a LegacyFile lists its paths and parses one slot per
path.
- Accessible names now read a line break as a space, so the Color Wheel
document-color tests name a swatch "#0000ff Used 1 time".
- The small-window test accepts the Bleed fields in one row when the
fixed column holds them.
* SVG import: refuse an SVG the memory can't hold instead of running out
The element limit now follows the installed memory, or the process's
cgroup limit where that is lower: about 8 KB an element, up to the
999,999 elements usvg reads. Past it the SVG is refused with an error
naming the memory, before usvg makes its tree.
Fixes#10165
* Tests: the shared element limit test follows the machine's limit
Moves craft-libs to a5669ed2f, which places overlays in the room of the
monitor the window is on (craft-libs f31beb26d, merged in #4506). The
old room assumed monitors tile the desktop by their size, so on a
landscape monitor to the right of a portrait one the File menu opened
at (726, 442), far from its title, with scroll arrows.
The new pin is craft-libs main just before #4278, whose dialog changes
need VectorCraft test updates that come with a later pin bump.
The new test menu_on_second_monitor opens the File menu with the window
on the landscape monitor at 1x and 1.5x; it fails on the old pin with
the menu at (726, 442).
craft-libs main at 2680a3b3f adds #4364 (its egui pin moves to
07c20531, which VectorCraft's egui lines now match), #4425, #4409, #4414,
#4406, #4349, #4393, #4392, #4398, #4415, #4411, #4402, #4400, #4417,
#4399, #4407, #4375, #4428 and #4451. winit stays at 0dfcec0e, the rev
craft-libs pins. craft-nightly and craft-web-api move with the other
craft-libs crates, and xtask pdf-deps checks the new rev. Cargo.lock:
epaint_default_fonts now depends on brotli 9.1.3 and brotli-decompressor
6.3.2.
Extrude & Bevel, Revolve, Inflate and Rotate take a `material` parameter,
{roughness, metallic}, each a number from 0 to 1 (defaults 1 and 0). The
3D and Materials panel's Materials tab shows them under Properties as two
sliders; each change is one undo step for every selected 3D object. A
value the selected objects hold differently is shown blank with its reset
dot filled, and a typed or dragged value or a reset sets it on all of
them while each keeps its own value of the other property.
- The default material draws exactly as before and calls no BRDF.
- Any other material is shaded through craft-pbr with the glTF 2.0
metallic-roughness BRDF (Appendix B, with the separable Smith
visibility of B.3.2) for each light and a split-sum environment scaled
by Ambient Light. The reflected light is screened over each face as
vector gradient ramps; graphics on a side or on Inflate's faces lie
under it, and graphics on caps and the plane take the cap's mean
reflected light in their colors.
- Smoothed bevel bands take the normals they share at their edges and
draw as two triangles, so neighboring bands meet without a step, with
perspective and twist too. A bevel whose split bands would pass the
solid's face limit keeps one facet per band, so a material never makes
a solid that draws with the default material too complex. Wireframe
mode draws the same edges for every material.
- A gradient with transparent stops stays transparent: the faces are drawn
opaque under one mask of its coverage. A pattern surface takes no
highlight.
- glTF exports write roughnessFactor and metallicFactor, and USD exports
write inputs:roughness and inputs:metallic (when it is not 0). OBJ's
MTL writes neither, so parts of one color and picture share one OBJ
material as before.
- A material that is not an object, an unknown key, or a value that is not
a number from 0 to 1 is refused; the 3D (Classic) effects take none. A
loaded material that fails these rules draws as the default.
Docs: docs/three-d.md (Material properties; the Inflate graphics text is
corrected; the Properties are listed as built), README, docs/mcp.md,
docs/effects-parity.md, docs/target-app-parity.md, ROADMAP.
craft-nightly was still pinned at 1f6c3a21f while every other craft-libs
crate moved to aa7e668ec. The newer craft-nightly brings:
- craft-libs#4297: profile-root validation requires HOME on Unix and
APPDATA and LOCALAPPDATA on Windows, and refuses a configured OS
directory that is relative or contains `..`
(ProfileError::MissingStableBoundary and InvalidStableBoundary).
- craft-libs#4304: a Unix socket (or AF_UNIX socket on Windows) in a
profile's single-instance/ folder is accepted when the app lists that
folder, and Launch reports whether the launcher's `--` separator was
present (passthrough_args_with_launcher_separator).
- craft-libs#4309: a Windows test fix only.
VectorCraft builds against these without code changes: it does not
construct Launch or match ProfileError exhaustively, and its
single-instance record is instance.json with a TCP listener. Cargo.lock
adds uds_windows (already in the lock) to craft-nightly's dependencies.
The Layers panel built its row order again on every selection change:
each change made a new Tracked for the rows, and the rows reported no
order revision, so the panel asked every row for the rows inside it
(7 calls for the 6 rows of the new test's document).
- LayerRows reports LayerTree::order_revision: a hash of the document,
the open rows, Show Layers Only and the isolated node. The selection,
the highlighted rows, the current layer and the names are not in it.
- refresh_rows writes new rows into the kept Tracked while the document
(uid and revert count) stays the same, and makes a new Tracked for
another document or after File > Revert.
- The craft-libs pin moves from 186a229c8 to aa7e668ec, current
craft-libs main, which has craft-libs#4319 (LayerTree::order_revision).
The winit rev moves to 0dfcec0eb, as craft-libs pins it; egui stays
at 14c39fed1. xtask pdf-deps checks the new rev. craft-nightly keeps
the rev main pins it at.
Two tests failed on the new craft-libs:
- canvas::tests::a_selection_drag_draws_its_marks_in_the_frame_the_pointer_moves:
since craft-libs#4143 a frame runs one pass where it ran two, and the
bounding box, Live Corners, hollow corners and shape widgets were drawn
before the tool host took the frame's pointer event, so the box showed
at the old corner. They are now drawn after it, into paint slots kept
in their old order.
- tests::nativemenu::applying_a_dialog_preview_reads_the_menus: since
craft-libs#4350 the closed dialog's angle field gives up the keys one
frame sooner, so the menus are sent again without the text-editing
gate within the frames the test ran. The test now waits for the gate
and counts the read and that send apart.
* feat(nightly): wire craft-nightly for self-isolated direct launch
* fix(nightly): answer plain version before resolving profile root
* test(nightly): retain exact version and saved profile coverage
- apps/vectorcraft-web: egui_extras moves to the wasm32 dependencies.
Its only use is src/web.rs, which builds only for wasm32, so cargo
reported it unused on native builds.
- apps/vectorcraft: drop the socket2 dev-dependency. Its loopback
tests left control_server in #8800 and nothing uses it now.
- xtask: the doc-test steps (`cargo xtask ci shard` and the workspace
doctests) leave out packages whose only library target is a cdylib,
dylib or staticlib. Cargo printed "doc tests are not supported for
crate type(s) `cdylib`" for vectorcraft-thumbnail-handler. Packages
without a library stay selected, so the shard keeps its features.
Warnings on the build host, before and after (cache warm shard
`cargo test -p vectorcraft-mcp -p vectorcraft -p vectorcraft-cli
-p vectorcraft-web -p xtask --lib --bins --no-run` on a fresh build, and
`cargo test -p vectorcraft-thumbnail-handler --doc`): 4 before, 1 after.
The one left is `vectorcraft-testkit` in apps/vectorcraft-cli: only the
integration tests use it, and the warm step builds only library and
binary tests.
Every cargo command printed seven manifest warnings, and clippy on all
targets printed one more. Each entry below had no reader on main.
- peniko (workspace dependency): no member crate has ever declared it.
It has been in the list since the workspace skeleton (bfee80a22c).
crates/render reaches peniko through vello_cpu::peniko.
- rfd and webbrowser (workspace dependencies): #8800 moved the app onto
the craft UI framework and removed their last declarations in
apps/vectorcraft and crates/ui-egui. The folder picker and the browser
links now come from craft-libs. The rfd name in xtask's layer check
is a crate name to reject, so it does not read this entry.
- workspace.package.repository: no member crate sets
repository.workspace = true, and no packaging script, xtask command or
workflow reads the field.
- egui_demo_lib, egui_inspection and egui_system_font_provider
([patch.crates-io]): #8800 copied these from craft-libs' own patch
list, and nothing in VectorCraft's graph depends on them. Cargo.lock
listed them under [[patch.unused]]. A dependency's [patch] does not
apply in this workspace, so removing them does not change how
craft-libs builds. The egui crates that are in the graph keep their
patches at 932a73b285.
- apps/vectorcraft-web declared egui_extras for every target, but only
the wasm32 module web.rs calls it. It now sits under the wasm32
target dependencies.
Cargo.lock drops the three [[patch.unused]] entries.
Keep the native and web craft-libs pins, Cargo.lock and PDF source checks on 57c8c8d4. Preserve the matching egui pin. Consult the shared Standard-mode chrome state for visibility and for show-panel requests; the dock already honors that state when drawing.
Keep native and web manifests, the lockfile, and the PDF source guard on the same craft-libs revision. Align the egui patch revision with craft-libs to retain one crate source.
Every craft-libs crate moves from f762f98a to 81bca5c8e2 (craft-libs
main). The new rev adds the title bar's item gap, docking of part of a
collapsed column, the tool rail's footer rule, disabled accessibility
nodes that ignore actions, and built-in themes that load without a
cycle search. VectorCraft builds on it without other changes.
- Every craft-libs crate moves from 610c86792a to f762f98a (craft-libs
main), which adds the fixed corner-widget inset, the ruler corner's
plus, popover padding, and a native window's move recorded once.
- The status bar's Zoom field uses ZoomField::status_bar, so it draws
without an outline in the status bar's look.
- The Rotate View compass is placed in CanvasScrollbars::clear_of
instead of a copy of the scroll bars' sizes.
- The tools' corner-widget inset is public, and a test holds it equal
to CornerWidgets::INSET, the inset the canvas draws the widgets at.
Every storytold/craft-libs crate and the hayro, krilla and linesweeper
patches move from 51fcc3b041 to 610c86792a, the head of craft-libs main.
xtask pdf-deps expects the new rev.
As asked in review. Cargo.toml: main moved craft-libs to 51fcc3b0; the font
store crates this branch adds move with it, so every craft-libs crate stays
at one rev.
Co-Authored-By: Claude Opus 5.5 <[email protected]>