Commit Graph
538 Commits
Author SHA1 Message Date
dotCooCoo 4c020bfb08 Merge main into fix/save-metadata-only-change 2026-12-05 11:00:16 -08:00
.CooCoo 4e1f2bfa54 Merge pull request #10915 from dotCooCoo/fix/swatches-browser-selection-set
Swatches: the panel checks a large selection in one read of the swatches
2026-12-05 10:14:53 -08:00
.CooCoo f5907381f5 Merge pull request #10336 from mocenigo/fix/resize-color-space
macOS: the window keeps its colours while it is resized
2026-12-05 09:16:01 -08:00
dotCooCoo f894727fd6 Merge main into fix/save-metadata-only-change 2026-12-05 09:07:20 -08:00
dotCooCoo 0848cfc2bb Merge main into fix/swatches-browser-selection-set 2026-12-05 08:06:38 -08:00
.CooCoo 23e6ea61c3 Merge pull request #10946 from dotCooCoo/fix/dwg-import-version-tests
DWG import: R12, R13, R14 and 2018 files are tested, and R12 reports its own version
2026-12-05 07:57:19 -08:00
dotCooCoo 3c5fe686fe Merge main into fix/swatches-browser-selection-set 2026-12-05 07:46:05 -08:00
.CooCoo 3fae0caf5d Merge pull request #10891 from dotCooCoo/fix/swatches-name-index
Swatches: the panel looks swatch names up in an index instead of scanning the list
2026-12-05 06:31:52 -08:00
dotCooCoo 13ee6a6c36 Merge main into fix/dwg-import-version-tests 2026-12-05 05:51:07 -08:00
dotCooCoo d9c4c6b9ee DWG import: R12, R13, R14 and 2018 files are tested, and R12 reports its own version
The DWG import tests read only a 2004 file. They now also read an R12,
R13, R14 and 2018 DWG file made from the same drawing, and check that
each one imports as the DXF it was made from, with the same layer and
the same art.

craft-dwg's writer writes 2000 and later, so the 2018 file comes from
craft-dwg and the R12, R13 and R14 files come from acadrust, the DWG
reader and writer craft-dwg uses. acadrust is a dev-dependency of
vectorcraft-cad at the rev craft-libs pins.

The tests found that DXF Import Options showed an R12 DWG drawing as
R13: `info` reported the version of the DXF the DWG converts to, and
an R12 DWG converts to an R13 DXF. `info` now reports a DWG file's own
version.
2026-12-05 04:52:52 -08:00
dotCooCoo cda16b5163 Fix #10734: Save asks about a changed file only when its bytes changed
Save asked "File changed" on every save of a file in a cloud-sync
folder. The save flow counts any new change time or inode as a change
by another app, and a sync client sets attributes on the file after
uploading it, or puts the same bytes back as a new file.

The app now keeps a SHA-256 digest of each document's file as it last
read or wrote it, taken on a thread after the open and after each
save. When the flow would ask, the file is compared with that digest
on a thread; a file that still holds the same bytes becomes the
recorded version and is written over without asking. A file whose
bytes differ, that changes during the comparison, or that has no
digest is asked about as before. Digests of closed documents are
dropped.
2026-12-05 04:14:07 -08:00
dotCooCoo 3ecd070872 Part of #10798: the font list's style rows preview their style on the text
Hovering a style row of an expanded family in the font list previewed
only the family on the selected type. apply_preview now takes the style
the picker reports with its preview (FontPickerOutput::preview_style and
CharacterControlsOutput::preview_style) and passes it to the font
command, so the type shows the hovered style; a family row still
previews the family in the closest style it has.

Every craft-libs rev moves to storytold/craft-libs#5489's head
(4f3e34d0dd), which adds preview_style, gives style rows a sample in
their own face, and keeps a typed query when a family's disclosure, its
star or a filter is clicked. Cargo.lock changes only the craft-libs
source lines.
2026-12-05 02:29:35 -08:00
dotCooCoo 181a471e6c Swatches: the panel checks a large selection in one read of the swatches
The Swatches panel's body in craft-libs drops selected keys that no
longer name a swatch or a group on every repaint while the panel is
hovered, and checked each key with a scan of every swatch name. With
2,000 swatches in 20 groups and every swatch and group selected, one
run compared about two million names.

Every craft-libs rev moves from 4c330f6bd1 to dbc6b20e78, which reads
the swatch names once per run and stops when it has found every
selected name. Delete events and the footer's Delete answer the first
lookup of a swatch or a group name with a scan and later lookups of
that kind from a map of the names. Cargo.lock changes only the
craft-libs source lines.
2026-12-04 21:22:30 -08:00
dotCooCoo 9386245a06 Merge main into fix/swatches-name-index 2026-12-04 20:37:39 -08:00
dotCooCoo f74855acee Swatches: vectorcraft-doc turns swatch-scans on for its own tests
The gate's shard check failed on every shard: vectorcraft-doc's tests run
in the Rest shard, where no crate turned the swatch-scans feature on, so
they built with other features than under `cargo test --workspace`, where
vectorcraft-ui-egui's dev-dependency turns it on.

vectorcraft-doc now lists itself as a dev-dependency with swatch-scans on,
as vectorcraft-pdf and vectorcraft-eps do for their counters, so its tests
build with the same features in their shard and with the whole workspace.
2026-12-04 18:07:50 -08:00
dotCooCoo 5c527ab7ec Merge main into fix/craft-libs-pin-language-packs
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.
2026-12-04 18:01:30 -08:00
.CooCoo ecd771c54c Merge pull request #10644 from dotCooCoo/fix/popout-stable-measure
Panels: the Color and Gradient pop-outs run one pass a frame
2026-12-04 17:03:21 -08:00
dotCooCoo b852eef288 Merge main into fix/craft-libs-pin-language-packs
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.
2026-12-04 16:20:40 -08:00
dotCooCoo 19eb6cd88c Merge main into fix/popout-stable-measure 2026-12-04 15:00:25 -08:00
dotCooCoo 11a5801b63 Merge main into fix/compress-i18n-catalogs 2026-12-04 14:56:42 -08:00
dotCooCoo 26f5b4ae58 i18n: embed the interface language catalogs Brotli-compressed
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.
2026-12-04 14:34:45 -08:00
dotCooCoo 1bbc32ff82 Dependencies: move the craft-libs pin to craft-libs main (69c746e9)
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.
2026-12-04 12:52:13 -08:00
dotCooCoo 829f85298e Merge main into fix/popout-stable-measure 2026-12-04 10:14:11 -08:00
dotCooCoo 4f9f0924b2 Merge main into fix/craft-libs-pin-language-packs 2026-12-04 10:13:46 -08:00
dotCooCoo 9c08ad9395 Merge main into fix/font-hinting-blue-zone-hang 2026-12-04 10:09:33 -08:00
dotCooCoo 6b0ca1faea Dependencies: move the craft-libs pin to craft-libs main (33966c68)
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.
2026-12-04 10:04:00 -08:00
.CooCoo 2675e1291f Merge pull request #10802 from dotCooCoo/fix/open-dwg-files
File formats: DWG drawings open and place through the DXF reader
2026-12-04 09:38:29 -08:00
.CooCoo edcb80db38 Merge pull request #10429 from dotCooCoo/feat/3d-rendered-tier
3D: Render Settings › Rendered draws the solid as a lit image with shadows from every light
2026-12-04 09:24:53 -08:00
.CooCoo afd0c9ab22 Merge pull request #10814 from dotCooCoo/fix/frame-buffer-no-copy
Render: a full-frame render hands its pixels over without a fill and a copy
2026-12-04 09:24:32 -08:00
dotCooCoo bf5e7ea76d Merge main into fix/craft-libs-pin-language-packs 2026-12-04 07:37:48 -08:00
dotCooCoo cc7c7675a7 File formats: a failed DWG conversion is tried again after 10 seconds
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.
2026-12-04 07:23:53 -08:00
dotCooCoo 2e030ec46d Merge main into fix/open-dwg-files 2026-12-04 06:36:17 -08:00
dotCooCoo dbffe7a76c Dependencies: move the craft-libs pin to 0582d506
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.
2026-12-04 01:57:51 -08:00
dotCooCoo 0a01b65903 Merge main into fix/popout-stable-measure 2026-12-04 01:53:17 -08:00
dotCooCoo afc4de9b07 Render: a full-frame render hands its pixels over without a fill and a copy
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
2026-12-04 01:41:07 -08:00
dotCooCoo 094f60b2fb Tests: DWG opens through the DXF Import Options dialog and the CLI worker
- 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.
2026-12-03 20:36:08 -08:00
David Mann 7c96961420 Merge remote-tracking branch 'upstream/main' into feat/agents-open-window
# Conflicts:
#	apps/vectorcraft-cli/src/main.rs
2026-12-04 00:12:25 +01:00
dotCooCoo 7841c460a1 Fonts: a face without hinting instructions no longer hangs the font list
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
2026-12-03 13:04:40 -08:00
dotCooCoo e58a626b41 Merge main into fix/open-dwg-files 2026-12-03 11:57:45 -08:00
dotCooCoo bb4e3308af File formats: DWG drawings open and place through the DXF reader
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
2026-12-03 11:57:39 -08:00
dotCooCoo 014ed9a190 Merge main into feat/3d-rendered-tier 2026-12-03 10:38:52 -08:00
dotCooCoo d180564bb1 Merge main into fix/popout-stable-measure 2026-12-03 10:35:45 -08:00
dotCooCoo 7cba3b786d Links: clicking a link on desktop opens it in the browser again
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.
2026-12-03 09:36:33 -08:00
BFlat 9daf4163eb Merge pull request #10568 from ruchirguitar/fix/web-served-fonts
Web: the site publishes the interface's served fonts under fonts/ui/
2026-12-03 23:14:15 +07:00
.CooCoo 7a14274d56 Merge pull request #10211 from dotCooCoo/feat/vector-3d-materials
3D: Roughness and Metallic on the Materials tab shade and export the surface
2026-12-03 07:21:12 -08:00
.CooCoo 79fdfedfb5 Merge pull request #9075 from dotCooCoo/feat/scripts-api-d8c-rasterize-capture
Scripts: Document.rasterize and Document.imageCapture with their option classes
2026-12-03 07:14:28 -08:00
ruchirguitar e2e4b3b917 xtask: web-fonts writes its scratch table in a private tempfile folder 2026-12-03 14:25:33 +05:30
dotCooCoo 5e68ecd7c8 macOS: closing Preferences no longer crashes on Macs with a Touch Bar
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
2026-12-02 23:39:52 -08:00
dotCooCoo 14e8959bc0 Scripts: tighten rasterize clip bounds and imageCapture destination checks
- 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.
2026-12-02 22:19:16 -08:00
David MannandClaude Opus 5.5 3e699b4d21 feat(automation): agents in the open window through the ArtCraft Launcher's switch
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]>
2026-12-03 02:07:29 +01:00