Moves every craft-libs crate to craft-libs main 4c330f6, which contains
both 69c746e9 and main's c2a47df pin. The egui (399fc6e) and winit
(3fd7ae6) revs stay as that craft-libs rev uses them, and skrifa stays at
craft-libs 37d0532f until craft-libs#5222 merges.
Every craft-libs crate stays on craft-libs main at 69c746e9, with egui
399fc6e and winit 3fd7ae6. The skrifa patch from main stays at craft-libs
37d0532 until craft-libs#5222 merges.
The 29 catalogs in crates/ui-egui/src/i18n were embedded with include_str!,
21,861,200 bytes of text in every build. build.rs now compresses each
*.tsv with Brotli (quality 9, 4 MiB window) into OUT_DIR, and the
interface unpacks them when it first needs its catalogs and hands them to
I18n::from_owned. The embedded catalogs take 5,316,158 bytes.
- build.rs finds the catalogs in the folder, so adding a language is
adding its .tsv. A catalog over 8 MiB, or one it can't read, stops the
build.
- A catalog that does not unpack to exactly its recorded length of UTF-8
is left out and logged, and its language is not offered.
- On the desktop the catalogs are unpacked on several threads.
Every craft-libs dependency moves from 33966c68 to craft-libs main at
69c746e9, which adds the equal-spacing smart guides of a move
(ToolContext::add_measures and ToolHostResponse::measures). The egui and
winit forks stay at the revisions craft-libs pins (399fc6e0, 3fd7ae64).
Cargo.lock changes only the sources of the craft-libs packages.
Every craft-libs dependency moves from 0582d506, the head of
storytold/craft-libs#5281, to craft-libs main at 33966c68. The egui and
winit forks stay at the revisions craft-libs pins (399fc6e0, 3fd7ae64).
- Art dragged off the canvas: craft-libs main still ends the drag session
when the tool host cancels a press whose canvas was hidden for a pass, so
art dragged over another document's tab and back to its own canvas was
not moved. The canvas now starts that session again while the button is
held. storytold/craft-libs#5281 keeps the session running; the canvas
code goes with the pin bump that takes it.
- Floating panels: with storytold/craft-libs#4739 in the pin,
WindowHost::viewports_at skips minimized and hidden windows, so
os_window_at drops its own minimized check. It keeps the check for an
open dialog: the palette windows hide a few passes after the dialog
opens.
- Tests: the hidden-palette test waits the pass in which the palettes show
again after the dialog closes. The Gradient panel's swatch-drop tests
show the Gradient panel over the Swatches panel, which fills the room
under it.
A failed conversion was returned for the same bytes until another
drawing replaced it, so a worker stopped by its deadline, by a lack of
memory or by a failed start kept failing after the cause was gone. The
failure is now kept for 10 seconds from when the conversion returned,
which still covers the reads of one Open, and the next read converts
the drawing again. A conversion that worked is kept as before.
Move every craft-libs dependency from 77ade517 to 0582d506, which is
craft-libs main at 13198740 (with storytold/craft-libs#5272) plus
storytold/craft-libs#5281. Take the egui fork at 399fc6e0 and the winit
fork at 3fd7ae64, the revisions craft-libs pins. The winit fork no
longer pulls in wayland-protocols-plasma.
Adjust VectorCraft to the new framework behavior:
- The Unsaved Changes question opens on the dialog host as a
HostedUnsavedChangesDialog.
- The drag session now resolves a release against the targets of the
release pass and delivers the drop in the next pass. The canvas no
longer drops art released over a pane itself in that pass, which
copied the art twice.
- Files the person drops in a pass that carries injected input stay
confined to the automation roots in the pass that delivers them.
- Dragging art over another document's tab and back to its own canvas
moves it again: craft-libs#5281 keeps the drag session running when
the source canvas shows again.
Renderer::render, render_node, render_pattern_swatch and the image of
Effect > Rasterize copied the rendered pixmap into a new Vec<u8>. They
now take the pixmap's buffer and cast it to bytes in place
(group::into_bytes); a buffer the cast cannot take is still copied.
The target pixmap with nothing under it is allocated zeroed
(group::blank_pixmap) instead of being filled pixel by pixel. At
2880x1800 that removes one 20.7 MB fill and one 20.7 MB copy from every
whole-frame render. The pixels are the same bytes.
Part of #1172
- The DXF Import Options dialog test opens a DWG, confirms it at 1:1
in model space and places it.
- `vectorcraft-cli info` reads a DWG as the DXF it was written from,
and five damaged copies (cut short, overwritten, bytes flipped) end
in an error that names DWG or open with warnings, with the process
exiting normally.
- The engine's DWG and DXF test modules are listed in order.
egui hints text by default, so a TrueType face without hinting
instructions goes through skrifa's automatic hinter. In skrifa 0.44,
which epaint, glifo and usvg use, the hinter's long blue-zone search
never ends for a tall narrow Hebrew letter such as U+05D1, so the
font list stopped responding as soon as a row drew that letter in
such a face.
- Cargo.toml: skrifa 0.44 in [patch.crates-io] comes from craft-libs
vendor/skrifa, which adds skrifa 0.46's exit to that loop, and
every craft-libs rev moves to that commit.
- apps/vectorcraft-web/Cargo.toml and xtask/src/pdf_deps.rs: the same
craft-libs rev.
- font_menu tests: a face built in memory with no hinting
instructions lays out U+05D1 through egui's Fonts with the default
text options.
Fixes#10493
File > Open, File > Place and document.dxfInfo read DWG drawings. The
craft-libs craft-dwg bridge converts the drawing to DXF bytes and the
existing DXF reader reads them, so a DWG takes the DXF Import Options
(layout, ratio or fit, lineweights, centering, merged layers) and comes
in with the same layers, blocks and units as the DXF it converts to.
What the conversion skips is listed in the warnings.
- vectorcraft-cad: dwg module. On desktop the conversion runs in a copy
of the program started with --dwg-worker (vectorcraft and
vectorcraft-cli call serve_if_asked and use_own_worker), so a damaged
file ends that copy, not the app. Inputs over 512 MiB, or a DXF
rendition over 1 GiB, are refused. The last conversion (up to 128 MiB
of DXF), or its error, is kept, so the dialog's layout list, each
layout preview and the open read the file once. R1.x and R2.x
drawings are refused with a hint to save as DXF.
- Engine: a read-only dwg format (detected by content or by .dwg),
in the open and place extension lists, not associated with the app
by packaging. DWG leaves the unsupported list; exporting to it says
to export DXF instead, Export As keeps it greyed out, and Save over
the drawing is refused.
- UI: the DXF Import Options dialog opens for .dwg files on Open,
Place and a Shift-click with the place cursor.
- NOTICE and licenses/acadrust-0.6.6/: acadrust 0.6.6 (MPL-2.0,
unmodified) and its third-party notices.
- Docs: docs/mcp.md, docs/file-format-parity.md, docs/roadmap.md and
the progress line in docs/target-app-parity.md.
Tests build DWG files from DXF drawings with craft-dwg's writer: a DWG
comes in as its DXF does (layers, bounds, strokes, units, blocks), with
the DXF options, through Place, and in dxfInfo; a truncated DWG is an
error; saving or exporting a DWG writes nothing.
Fixes#3450
The desktop app sends every link it opens (Help menu community links, the
app bar's Discord button, Home's Community links, About and credits, help
links in dialogs, the updater's Open URL, an object's URL attribute) as
egui's OpenUrl output. The app built eframe without its `links` feature, so
egui-winit only logged "Cannot open url - feature \"links\" not enabled." and
nothing opened.
Turn on eframe's `links` feature in apps/vectorcraft. Cargo.lock adds
webbrowser 1.2.8. The web build does not use egui-winit and is unchanged.
The feature can be removed once the craft-libs pin includes
storytold/craft-libs#5083, which opens links in the shared app setup.
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.
While the launcher's Settings > AI agents switch names VectorCraft, the
window serves its control channel on loopback with craft-libs' AgentLink
and publishes agent-connection.json; plain `vectorcraft-cli mcp` finds it
on every tool call through the shared Live (challenge handshake, no port or
token in client configs) and otherwise runs headless or follows the
closed-app choice. Agent requests in the window are confined to the agent
folders. Preferences gets an AI Integrations page (the shared Agents page),
saved through the new UI command prefs.agents, which agents can't change.
New MCP tool agent_folders; `--when-closed`; `--connect` deprecated.
Closes#10621, closes#1470, closes#10453.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the Color or Gradient panel open as a pop-out, every second frame
at rest ran the whole window twice: egui discarded the first pass
because a content column in the panel body measured differently from
the transcript its flyout kept. storytold/craft-libs#4932 fixes the
layout memory, and this moves the craft-libs pin to its head
c2a47dfe, which is craft-libs main 092a2c6b with the fix. The egui and
winit revisions are unchanged.
The bump also brings in craft-libs #4584, #4804, #2415, #4531, #4676,
#3061 and #4050.
Test: with either pop-out open, each of 10 frames at rest runs one pass.
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).