#10622 changed the tool-name assertion in crates/mcp/src/tests.rs, and
test-lint's all-unguarded rule failed main's gate on it: the all() check
had no emptiness check that the rule recognizes. The test now asserts
that tools are defined and that each name is non-empty on its own, then
checks the name's length and characters.
Under the Selection tool, Group Selection and the other tools that do not
edit anchors, the selected paths' anchor squares draw at 4 pt at the
default Size, one point smaller than under Direct Selection, the Pen and
the other anchor-editing tools, which keep 5 pt. Each Size step still
adds or removes one point under every tool. Tool overlays follow the
active tool the same way.
Part of #10720.
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.
A star with a radius on each corner stores its corner list in its
shape settings entry. A 1000-point star's entry is longer than the
4,096-byte read limit, so it was dropped on read and the star lost its
pie angles and arc mode on the next edit. The limit is now 128 KiB,
which holds the longest entry a 1000-point star can write.
A nudge that the pixel-grid snap took back still recorded an undo step and
left a rounded live rectangle a live path when an object selected whole
was moved together with direct-selected anchors, because the no-change
check ran only for anchor-only selections. The check now also covers
objects selected whole. The path.moveAnchors params text and the Live
Corners progress entry now state the pixel-grid case as docs/mcp.md does.
A whole star draws every point, so its pie angles no longer stop it
from being stored as a live star. Angles configured on any whole shape
are stored with it, so a later arc mode change uses them.
A corner list longer than the old corner count drops its entries past
the last corner before it is spread, so the corners a new point or
side count adds are sharp and keep the default kind.
The DXF Import Options of a DWG drawing converted for Place checked its
document only before opening. When that document was closed, reverted
or no longer active by the time of OK (a script or the control channel
can switch documents while the dialog is open), OK placed the drawing in
whatever document was active. OK now refuses with the reason, changes
nothing and keeps the dialog open; the choices are remembered only when
OK goes ahead.
A DWG drawing placed through its import options was read off the UI
thread after the dialog had closed and dropped the drawing's conversion,
so a drawing whose DXF is over 128 MiB, or whose cache entry another
conversion had replaced, was converted again for that read. The dialog's
OK now hands the conversion to the place read it starts
(`placing::Placing::keep_next`), which keeps it until the file is placed,
canceled or dropped.
- File > Open of a DWG drawing that is being converted for Place no
longer does nothing: only conversions started for opening count as
that file already being opened.
- A DWG worker gets an absolute deadline (`--dwg-worker-until`, in
milliseconds since the UNIX epoch) instead of a time limit counted
from its own start. `thumbnail` sets it when its own timer starts, so a
worker started late no longer outlives the thumbnail process. A worker
whose deadline has passed exits with code 1 at once.
- A DWG placed while it is converted goes on the layer that was current
when Place started and, with `replace`, in place of the object selected
then, selected again unless it changed meanwhile. A layer the user made
current since stays current, as for other files read for Place.
- Place's checks run before the conversion starts, so a bad param or a
selection Replace can't swap (several objects, part of a symbol
instance) is reported at once and nothing is converted.
- The open progress window shows a DWG drawing being converted.
`file.cancelOpen` drops the conversion, so its dialog never opens, and
`file.openInBackground` closes the window while it goes on in the
status bar. Both commands' help text and `docs/mcp.md` say so.
The framework names New Document's name field plain Name. While the
dialog is open, the window's shell now shows its dialogs under a words
overlay that names the field Document Name, as it already retitles the
Print dialog. dialogs::shell_words combines both overlays.
This is temporary: storytold/craft-libs#5291 renames the field in the
pattern and also gives Save Document Preset its save icon, which the
pinned framework does not let VectorCraft change. The pin bump that
takes #5291 removes the overlay.
comb_closes took a straight segment's chord as its direction at the seam.
When the segment's anchors sit on one point and its handle is too short to
count, that chord has no length, the reversal test compared against a zero
vector, and the comb closed across a seam where the path turns back. The
seam check now uses the chord only when it has a length, as curvature_comb
does, and falls back to the handle direction otherwise.
The View › Show Curvature Comb params help and the ROADMAP line now say
that the line through the tips starts again at a cusp, a straight segment
included; ui_catalog.rs is regenerated.
The edit target of the selection fields (`selection_target`) named the
document, the selected objects and the symbol part. File › Revert and
Undo or Redo replace the document's content, after which the same node
id can name another object, and the target did not change: a value
typed and not yet committed into Opacity (Transparency panel, Control
bar, Properties) or into Image Trace's Divider and settings sliders
stayed, and Enter applied it to the reverted or restored document when
the same id was selected again.
The target now also holds the document's revert and history restore
counts. It lists the selected objects in id order, so the same objects
selected in another order keep the value. The Opacity target of the
Transparency panel and the Control bar names the first selected object
with the active Appearance row, whose stack holds that row.
A straight segment cleared the direction the comb carries from segment to
segment, so a curve that ended heading one way and a line that went back the
other way, or a line followed by a curve that turned back on it, kept one
line through the tips across the cusp. A straight segment now carries its
chord's direction, and the comb starts a new line wherever the next direction
heads back against the last one.
The test for turning back now ignores a dot product that rounds a little
below zero at a right angle, at interior anchors and at the closed-path seam
alike.
On the Recent tab the heading read "Blank Document Presets (n)", the
same as the preset categories, and Saved was the last tab, after every
category. Before the move to the shared dialog, Recent had its own
heading and Saved came right after it.
The dialog now turns on the shared dialog's recent_items and
saved_after_recent options: Recent reads "Your Recent Items (n)" over
four cards to a row, and the tabs read Recent, Saved, then the
categories.