Commit Graph
18714 Commits
Author SHA1 Message Date
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
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 3575fa6d2b Leave the artwork visible while previewing a transform 2026-11-30 14:18:36 +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 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 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 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
dotCooCoo e0670403e2 Merge main into fix/selection-marks-move-translate 2026-11-29 14:09:19 -08:00
dotCooCoo 389fc65631 Canvas: a move of the selection moves its marks instead of building them again
The canvas kept the selection's outlines, anchors and dots only while the
document revision stayed the same, so every move command, nudge and drag
step built them again from every selected object. With 10,000 selected
rectangles one build took about 26 ms in a release build.

A move of whole objects now records the documents before and after it
and the distance (DocState::moved). The record is made only when each
moved object is still the node the transform left (no later pass, such
as the pixel grid snap, changed it), none is a member of a blend, and
every object the selection shows, the key object and the key anchor's
object included, is a moved object or inside one. Copies, scales, moves
of patterns alone and moves that resize type areas make no record.

The canvas moves its kept marks by that distance when the record names
the document they show, or the document a drag began with. It also keeps
them through a new revision of the same document and selection, as at
the end of a drag. Every other change builds them as before.
2026-11-29 14:09:19 -08:00
dotCooCoo 867a6788e4 Tests: a held stored load waits for the test instead of a yield count
HeldLoad in the plug-in tests held a stored module's load for at most
1,000,000 yield_now calls and then let it go on its own. On a busy test
host that limit passed before the test released it, so the held file
loaded early: a_grant_given_elsewhere_since_the_load_removed_one_is_kept
and a_stored_module_without_permissions_ends_its_grant_when_it_installs
failed in a full engine run and passed alone.

- The hook now waits on a condition variable that release() and the
  drop set. A load that runs on the test's own thread is not held and
  sets gave_up, so a load that is no longer in the background still
  fails the test instead of hanging it.
- stored_plugins_load_without_holding_the_plugin_changes_lock waited at
  most 100,000 yields for the plug-in changes lock to be free; it now
  waits until it is free.
- canceled_loads_forget_the_grants_of_what_they_installed releases the
  held load before canceling, since cancel waits for a running load up
  to its 10 second deadline.
- a_query_runs_while_the_plugins_load checks which commands wait for
  the loads before it runs document.info.
2026-11-29 14:04:17 -08:00
dotCooCoo 97566860ec Merge main into feat/match-objects-to-key
# Conflicts:
#	ROADMAP.md
#	crates/engine/src/cmd/plugin_call/reviewed.rs
#	crates/ui-egui/src/addons/arrange.rs
#	docs/mcp.md
2026-11-29 13:57:34 -08:00
dotCooCoo 42bd1ffdfc Merge main into fix/speed-object-move-large-doc 2026-11-29 13:03:13 -08:00
dotCooCoo aaa54f1307 Performance: an edit skips unchanged objects without reading them
After every edit, the pixel grid, color mask, Objects on Path, Shaper and
symbol instance passes, and the inline graphics refresh, pair each object
with its counterpart from before the edit. Each pass read both objects to
compare their ids before it found that they were the same node, so moving
one object in a layer of 20,000 objects read all of them in four passes.
The color mask pass is new since v0.24.1, and object.move became slower
than in that release.

The new vectorcraft_doc::changed_nodes does the pairing for all six. An
object that is the same node at the same position is skipped by a pointer
comparison; only changed and new objects are looked up by id.

object.move of one rectangle in a document of 20,000 objects, release
build, median CPU time of 2,000 moves: main 1.25 ms, this change 1.08 ms,
v0.24.1 1.06 ms. The passes' share of the move went from about 30% to 5%
in a profile.
2026-11-29 13:03:07 -08:00
dotCooCoo 2bfa6fc9cf Merge main into fix/3d-depth-rows-document-unit 2026-11-29 12:57:09 -08:00
dotCooCoo b893f05f61 3D: Map Art X and Y keep the points a document unit converts to
Typing 10 into X in a millimeters document stored 28.35 pt instead of
28.3464567 pt, because the X and Y setters rounded to two point
decimals. They now only clamp. The flat view also wrote the map back
through the box on every frame, rounding the offsets again; it now
writes the map only when the box was edited.
2026-11-29 12:57:08 -08:00
dotCooCoo 8f564cdf95 Merge main into fix/selection-box-after-tool-pass 2026-11-29 12:56:16 -08:00
.CooCoo 4e6d3d0f8e Merge pull request #10119 from dotCooCoo/fix/global-edit-preview-cache
Global Edit: the canvas shares the kept outlines instead of copying them each frame
2026-11-29 12:53:25 -08:00
.CooCoo 429d60a341 Merge pull request #10117 from dotCooCoo/fix/status-bar-wheel-rebuild
Status bar: scrolling the view no longer lays out the zoom and artboard controls again
2026-11-29 12:53:07 -08:00