A preview that started from the paints saved before an earlier preview
took the selection's appearance cleared that snapshot. When a later
preview then failed, neither the cancel nor the commit after it saw that
the new-art paints had changed, and the previewed fill stayed. The
interaction now records that such a preview ran, and the cancel and the
commit after a failed preview put back the paints it began with.
Two fixes for review threads on this pull request.
The dialog sent an RGB current fill's working components without
keepModel, so in a CMYK document the engine converted the fill to CMYK.
While the shown color is left unchanged, the dialog now also sends
keepModel: true. An edited color converts to the document's model as
before.
With New Art Has Basic Appearance off and nothing selected, a preview
that drew new art took its new-art paints from that art, and the next
preview then put back the paints the interaction began with. A second
rectangle preview after a fill preview was drawn with the starting fill
instead of the previewed one. The interaction now keeps the paints from
before the inheritance and the next preview starts from them. A fill
chosen during the drag updates them too. After a failed preview, a
cancel or a commit puts back the paints the interaction began with.
The dialog shows the current fill as a display sRGB color, clamped to
the sRGB range, and converted that shown color back to working RGB when
Color was picked. In a working RGB space wider than sRGB, a saturated
fill did not convert back to itself. While the shown color is left
unchanged, the dialog now sends an RGB current fill's own working
components. Non-RGB fills and edited colors convert as before.
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.
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.
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 <[email protected]>
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.