Commit Graph
18725 Commits
Author SHA1 Message Date
dotCooCoo 0b3cf56b81 Graphics: closing the window after a lost device no longer panics
After the graphics device is lost, a frame the device could not present
stays acquired by the window's surface. When the window closed, eframe
released the surface, and wgpu's Vulkan backend panicked with "Trying to
destroy a SwapchainAcquireSemaphore that is still in use by a
SurfaceTexture" (gfx-rs/wgpu#9277), so the app stopped with an error.

GraphicsLoss now remembers that a loss happened after the frame handled
the report. When the window closes after a loss, the process ends in
on_exit once the app has saved what it keeps on quitting, before the
window's graphics are torn down, on every platform. This is the exit the
macOS accessibility quit already takes (#661); a loss during start-up
still goes to the adapter restart (#651).

Fixes #6374
2026-11-30 06:59:34 -08:00
FredApps af3c5abece Merge pull request #10237 from dotCooCoo/fix/number-field-wheel-under-pointer
Fields: the wheel steps a focused number field only while the pointer is over it
2026-11-30 15:32:50 +01:00
FredApps 4892e7d3a4 Merge pull request #10197 from dotCooCoo/fix/asset-export-footer-scrolls
Asset Export: the settings scroll in a short panel instead of running off its top
2026-11-30 15:32:18 +01:00
FredApps aa79c77e30 Merge pull request #10252 from storytold/fix/plugin-preview-parameters
Update live plug-in previews from visible parameter controls
2026-11-30 15:31:20 +01:00
FredApps d9ed09947a Merge pull request #10248 from storytold/fix/vectorcraft-0251-artboard-clipboard
Measure Paste in Place from the active source artboard
2026-11-30 15:11:58 +01:00
FredApps 5833b58a3f Merge pull request #10255 from storytold/fix/transform-dialog-canvas
Keep artwork visible in Reflect and other transform previews
2026-11-30 15:09:35 +01:00
Codex 3fe7b27601 Wait for the plug-in dialog to settle before clicking its slider 2026-11-30 14:38:30 +01:00
FredApps 5f898133c0 Merge pull request #10247 from storytold/fix/vectorcraft-0251-text-and-paste
Keep font choices after preview and fix browser text selection
2026-11-30 14:37:27 +01:00
FredApps 1d9f1ef042 Merge pull request #10206 from jmverges/fix/ai-page-word-of-two-text-objects
.ai import: a word the page draws from two text objects in a row is their type
2026-11-30 14:37:21 +01:00
Codex 42187cdbdf Exercise playback using the active source artboard at copy time 2026-11-30 14:22:21 +01:00
Codex 3575fa6d2b Leave the artwork visible while previewing a transform 2026-11-30 14:18:36 +01:00
Codex b06d1d9af3 Preview plug-in parameter edits from the visible dialog controls 2026-11-30 13:59:45 +01:00
Codex 274983176d Format the font preview regression test 2026-11-30 13:39:47 +01:00
Codex dc59589135 Format the import budget check 2026-11-30 13:39:42 +01:00
Codex 80ceb782aa Measure copied art from the active source artboard for Paste in Place 2026-11-30 13:27:12 +01:00
Codex aeae489395 Bound text-object joins within the import comparison budget 2026-11-30 13:25:54 +01:00
FredApps 68dbab8b90 Merge pull request #10236 from storytold/fix/vectorcraft-desktop-interactions
Restore desktop saving, Hand panning and font picker space
2026-11-30 13:24:15 +01:00
.CooCoo ba67cc58eb Merge pull request #10195 from dotCooCoo/fix/layers-order-revision
Layers: a selection change keeps the panel's row order
2026-11-30 04:21:58 -08:00
Codex 98e5003ec3 Commit hovered font rows and avoid native clock calls in web character controls 2026-11-30 13:21:47 +01:00
Codex 891909a9d5 Keep all drawing modes inside the double-column toolbar 2026-11-30 12:48:10 +01:00
Codex 8c7ddea00a Finish Hand panning before switching to a pen eraser 2026-11-30 12:46:11 +01:00
Codex 847e407ab6 Honor pre-refactor window preferences and preserve Hand placement clicks 2026-11-30 12:16:39 +01:00
Codex 99e8655ef6 Restore the main window on startup and enlarge tool rail icons 2026-11-30 12:09:59 +01:00
Codex 746b8f3dba Count the selected Hand gesture when H is held 2026-11-30 12:02:25 +01:00
.CooCoo 03bfec2f4d Merge pull request #10162 from dotCooCoo/fix/web-fonts-shipped-faces
Text: web-fonts.txt lists only faces that craft-fonts ships
2026-11-30 02:41:52 -08:00
.CooCoo 89d2abca5a Merge pull request #10160 from dotCooCoo/fix/doc-comments-u-fffd
Docs: doc comments name U+FFFD in place of the literal character
2026-11-30 02:41:36 -08:00
Codex 1937db57bf Restore native save dialogs, selected Hand panning and font list space 2026-11-30 11:33:11 +01:00
dotCooCoo bbe091e791 Fields: the wheel steps a focused number field only while the pointer is over it
With a number field focused, a wheel notch anywhere in the window stepped
that field. In Pattern Options at 220 by 320 points, with Width focused at
10 pt, a notch over Size Tile to Art changed Width to 9 pt.

`root_env` now turns on the framework's pointer-scoped field wheel
(`RootEnv::pointer_scoped_field_wheel`, storytold/craft-libs#3805). The
desktop and web hosts both take their root from it. A notch over the
focused field still steps it. Elsewhere the wheel scrolls what is under the
pointer, and an unfocused number field under the pointer is not stepped.
2026-11-30 02:13:29 -08:00
dotCooCoo 41f2554eae Info: a click on a readout copies it again inside a measured flyout
At the craft-libs pin this branch moves to, a panel shown in a dock flyout
runs its body twice in the release frame: first in the container's
invisible sizing pass, then in the real run. copy_shown read the release
in the sizing pass, where the readout has no area, and cleared the press
it had remembered, so the real run saw a release without a press and
copied nothing. Info's W, H and other readouts stopped copying
(panel_readout_copy: three tests failed with no copy).

copy_shown now returns before reading input or the remembered press in a
sizing pass.
2026-11-30 01:51:18 -08:00
dotCooCoo d8e090f51f Merge main into fix/layers-order-revision 2026-11-30 01:09:02 -08:00
.CooCoo 2e330bef17 Merge pull request #10143 from dotCooCoo/fix/speed-global-edit-preview-member-list
Global Edit: moving the selected object keeps the preview without walking the document
2026-11-30 01:06:42 -08:00
.CooCoo 006106a3cc Merge pull request #10141 from dotCooCoo/fix/selection-marks-move-translate
Canvas: a move of the selection moves its marks instead of building them again
2026-11-30 01:06:26 -08:00
.CooCoo c49ba20945 Merge pull request #10129 from dotCooCoo/fix/selection-box-after-tool-pass
Canvas: the bounding box follows a drag in the frame the pointer moves
2026-11-30 01:06:09 -08:00
jmvergesandClaude Opus 5.5 bc9e7c9124 .ai import: a word the page draws from two text objects in a row is their type
Where the text document makes the type of every text object that shows,
each piece of the page's type is matched with the made type that holds
it, and a word of the piece is that type's when its spelling contains
the word. The page can draw two text objects as one word: a word and a
letter set apart from it (a swash "h" after "Spirit") come out of the
page as one piece, "Spirith". Both text objects hold the piece, but
neither spells the word, so it was counted as type with no text object,
with the note "some of the page's type has no text object in the
layers, so it is left out" (a loss, so `convert` wouldn't write over the
file), though both text objects come in and draw it.

A word still left is now the type of the text objects holding the piece
when it is the last word of one of them joined to the first word of
another that draws after it along the first one's lines. Each part is a
whole word of its text object, so bits of words don't make up a piece,
and the two the other way round don't make the word.

In our garment files (used locally, never committed) this takes the
note off one file of 424 and changes nothing else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 07:06:19 +00:00
dotCooCoo e94496b42f Asset Export: the settings scroll in a short panel
With assets in the panel and many format rows, the Export Settings
section grew past the top of the panel, so its heading and the first
format rows could not be reached. The settings now sit in a scrolling
stack that takes at most half the panel's height, as the CSS
Properties panel does, and the preset name row, Export and the footer
bar stay below it.
2026-11-29 22:16:18 -08:00
dotCooCoo 32a5fef78d Layers: a selection change keeps the panel's row order
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.
2026-11-29 21:37:32 -08:00
.CooCoo 4f95a30c98 Images: a selected image's color mode is read from its file header (#10167) 2026-11-30 09:22:52 +07:00
.CooCoo c767960328 Merge pull request #10136 from dotCooCoo/fix/plugin-test-held-load-handshake
Tests: a held stored load waits for the test instead of a yield count
2026-11-29 18:21:32 -08:00
.CooCoo ff60b8078d Merge pull request #10132 from dotCooCoo/fix/speed-object-move-large-doc
Performance: an edit skips unchanged objects without reading them
2026-11-29 18:21:16 -08:00
.CooCoo b4f0a7f838 Merge pull request #10122 from dotCooCoo/fix/3d-depth-rows-document-unit
3D: depth, bevel and offset fields show the document's unit
2026-11-29 18:20:59 -08:00
.CooCoo 8fe7aff22e Merge pull request #10120 from dotCooCoo/fix/missing-fonts-check-once
Missing Fonts: the frame after an open lists a document's missing fonts once
2026-11-29 18:20:43 -08:00
.CooCoo b59b1e2190 Merge pull request #10115 from dotCooCoo/fix/hit-cull-reach-plain-paths
Performance: a hover reads each plain path's effects once
2026-11-29 18:20:26 -08:00
dotCooCoo d2b18d1270 Text: web-fonts.txt lists only faces that craft-fonts ships
crates/text/web-fonts.txt listed 30 background faces (Cairo, Tajawal,
Almarai, IBM Plex Sans Arabic, Noto Kufi Arabic, Amiri, Alexandria,
Fustat, Reem Kufi, Aref Ruqaa and Gulzar) that craft-fonts does not
have yet; they are added by storytold/craft-fonts#11 and #13, which are
still open. Every build with CRAFT_FONTS_DIR printed "web build won't
fetch: Cairo Regular, Tajawal ExtraLight, ..." from crates/text/build.rs
and xtask/src/web_fonts.rs, and the web build fetched none of them.

The rows are removed. The startup and demand faces stay. The rows go
back in when craft-fonts #11 and #13 merge.
2026-11-29 16:50:38 -08:00
dotCooCoo 1cb9c60370 Merge main into fix/doc-comments-u-fffd 2026-11-29 16:39:27 -08:00
dotCooCoo c1eb29c054 Docs: doc comments name U+FFFD in place of the literal character
Two doc comments held a literal U+FFFD replacement character, which
SonarCloud reports as "Invalid character encountered". They now write
it as `\u{FFFD}`:

- crates/ui-egui/src/panels/actions/playback.rs (`shown_text`)
- crates/pdf/src/tests/realtext.rs (the #708, #811 test)
2026-11-29 16:39:26 -08:00
dotCooCoo d82a022446 Merge main into feat/match-objects-to-key 2026-11-29 15:41:29 -08:00
dotCooCoo 2960e55b6c Match Objects: a stacking match keeps clipping paths and settles Intertwine groups
Merging main made DIALOGS one entry short: Offset Objects and Match Objects
both joined it, so vectorcraft-ui-egui did not compile. The table now
declares seven entries.

A stacking match moved a clipping path out of its clip position and could
move a member out of an Intertwine group with its old overlap tiers. It now
refuses to move a clipping path, refuses a destination that would nest
Intertwine art, and clears the tiers of members that leave their group.

A stacking or rotate-only match no longer needs bounds on the source. A
size match measures each target after it is sized and turned, in its final
frame, and is refused when a target can't take the requested size, instead
of reporting success with the size unchanged. A target with no bounds that
needs to turn is refused.
2026-11-29 15:40:43 -08:00
dotCooCoo f11aac5aaa Merge main into feat/match-objects-to-key 2026-11-29 15:00:53 -08:00
dotCooCoo 1a7e524d90 Merge main into fix/speed-global-edit-preview-member-list 2026-11-29 14:48:54 -08:00
dotCooCoo d7a71b7a58 Global Edit: moving the selected object keeps the preview without walking the document
With one object selected, the preview of the objects Start Global Edit
would take walked every selectable object again after each edit. After
an edit that replaced only the selected object, and left it the same
shape, size and appearance (a move), the same objects match, so the
outlines found before are kept.

The check compares the two documents: the layers may differ only in
the selected object and in the layers and groups that hold it, which
must be the same apart from their contents; the symbols and the rest
of the document must be the same. The selected object's form, box,
geometric size and fill and stroke are compared within a millionth of
the matching tolerance, since a move rounds the form differently in its
unit box. Any other change walks the document as before.

The preview is now also empty while a part of a dynamic symbol
instance is selected, as Start Global Edit is refused then.
2026-11-29 14:47:33 -08:00