cargo xtask ui-commands --check compares crates/mcp/src/ui_catalog.rs
byte for byte with the rustfmt output the generator produces, which has
LF line endings. With core.autocrlf=true, the Git for Windows default,
git checked the file out with CRLF line endings, so the check and cargo
xtask ci failed on an unchanged tree. The root .gitattributes now marks
the file -text, as it does the DXF writer goldens, so git checks it out
with the LF bytes stored in the index.
A stroke of evenly spaced round dots (round cap, a zero-length dash, one
gap length, not fitted to corners) is written as `border: ... dotted`, but
the rule also carried the "arrowheads, width profiles, brushes or dashes
fitted to corners" note, and with rasterize on it got a picture as well.
Such a stroke no longer raises that note. Projecting caps, dots fitted to
corners, dots mixed with dashes and unevenly spaced dots keep it.
A gradient border is written with `border-image`, which replaces the
border's style, so its dots or dashes are lost. A dotted or dashed
gradient border now carries the note "dashes or dots on a gradient border".
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
textFrames.removeAll() and the removeAll() of a group's pageItems,
groupItems and compoundPathItems checked only clip groups whose mask
they release. Deleting the type or art below an image in an ordinary
group named Image Trace left the image first, so the group was read as
a tracing and the image dropped out of pageItems. Both now throw
"Only Image Trace can make a tracing" and delete nothing, checking the
whole set being deleted at once.
The test passed "midpoint": 30, which the command clamps to 0.87, and its
tint assertions hold at any midpoint. It now passes 0.3 and asserts the
stitching function's /Bounds[0.3].
- SVG import: font-size keywords (x-large), larger and smaller against
the parent's size, and every bolder and lighter step from the parent's
weight.
- CSS Properties: a round-capped dash starting with 0 gives a dotted
border, other dashes a dashed one, and a gradient stroke a border with
border-image. A pen-drawn upright rectangle is written as a rectangle
with square corners, and the same path rotated gets the note for a
shape CSS cannot draw.
- Save for Web: a No Image cell over the matte color, aligned right and
bottom, and an HTML Text cell whose lines are escaped and joined with
<br>.
The folder sits in a guard that removes it on drop, so a panic in the
write or the search no longer leaves the 41 MiB file in the temporary
directory. The normal path still removes it explicitly and fails on an
error.
- A document added outside a command while edit.undoGroup.begin is
open joins the group: its two edits are one "Job" step, and one undo
takes both back (Session::add_document).
- Canceling a group rewrites a batch's journal entry: a dropped step
that left another document in front becomes document.activate with
that index, so the edit made after the group replays in the same
document (keep_batch_steps).
- Renaming a graph design to its own name succeeds and records no undo
step, and the design list stays the same.
Each test fails with the covered lines removed.
Adds tests for PDF import and export paths that no test reached:
- A tensor-product patch mesh (type 7) imports as the gradient mesh of
its boundary, the same mesh a Coons patch over that boundary gives.
- A triangle mesh (type 4) imports as one gradient mesh per triangle,
each corner in its vertex's color.
- Tensor and triangle meshes over the 16,384-patch limit import as a
flat gray with a warning.
- The last glyph of a run stroked again in another color splits off
into its own run; the glyph before it keeps its stroke.
- A masked CMYK image drawn twice at two sizes keeps its opacity mask
both times, fitted to each drawing; with a mask that hides nothing it
has no mask either time.
- A one-spot-ink gradient with an off-center midpoint exports a stop at
the midpoint with the mean tint, still as a Separation shading.
Each test fails with the code it covers broken.
Placing a .docx or .doc file had guards that no test reached, so removing
or loosening any of them left every test passing:
- malformed_docx_fails_cleanly now checks the messages for a package with
no end record, an encrypted part, an unknown compression method and
ZIP64 end-record values, and that 100,002 empty paragraphs fail with
"too much text or formatting".
- docx_parts_in_utf16_with_a_byte_order_mark_place_their_text places a
main part in UTF-16LE and UTF-16BE after a byte-order mark.
- docx_based_on_chains_stop_at_a_cycle_and_after_32_styles places a
paragraph in a style whose basedOn chain loops, and chains of 32 and 33
styles where only the last style sets a size.
- docx_run_containers_and_table_rows_nested_past_the_depth_read_are_left_out
nests runs in smart tags and table rows in content controls 70 and 60
levels deep.
- malformed_doc_fails_cleanly refuses a .doc WordDocument stream whose
directory entry gives 64 MB plus one byte.
Each new check fails with the guard it covers broken.
- PSD slices: a version 7 or 8 descriptor that lists more than 10,000
slices, objects nested 17 deep and lists nested 17 deep are refused
with a warning, and 16 levels of either still open.
- .pcraft: a 12000 x 12000 canvas leaves the preview with the "too
large to combine" note before any layer is read.
- .af files: Multiply keeps its blend mode, and Linear Light imports as
Normal with one warning however many objects use it.
- action.batch: an unknown destination is refused, and destination
"folder" without destinationFolder is refused before any file opens.
- rules_parse_by_id_and_label reads a few shown labels back through
parse(label(h)). The labels are written in vectorcraft-color and the
ids come from craft-libs, so a label that drifts from its id no longer
parses.
- units_choose_the_default_scale covers $INSUNITS 3 (miles) and
7 (kilometers), which have no unit of their own and read as
millimeters at their scale.
- A rectangle bent along a circle keeps its corners at the ends of its
step, its baseline edge on the circle and its other edge on the circle
its height along the normal, with and without a rise off the path. A
straight path and a glyph with no advance leave the outline as it is.
- The file search for a character no loaded font covers loads a font
that covers it, and skips the same font padded to 41 MiB.
Adds six unit tests to the shapes module for behavior no test checked:
- A Rounded star or polygon with Randomize 0 still gets handles on
every anchor.
- Rounding handles are 0.4 x Rounded of the side long and at right
angles to the radius.
- A spiral starts at its center and ends a radius away at the angle
its turns reach.
- Randomize keeps polygon and star vertex radii within 45% of their
radius per unit, and moves at least one.
- Every face of a parallel 3D box is a parallelogram with four
distinct corners, seen from five directions.
- An end angle within 1e-9 degrees of a full turn opens the whole
shape for Arc instead of cutting it.
Add tests that fail when these PDF import paths break:
- Optional content membership dictionaries: AllOn, AnyOff, AllOff and
the default AnyOn decide which marked art the page walk skips, with
groups given as an array or a single reference. Each shown path keeps
the spot ink the walk found it painted in.
- Tiling patterns and soft masks nested more than 8 levels deep open
with their "nested too deeply" warnings.
- The ink-space scan stops 32 levels into an object and after 4,096
spaces.
- A one-ink image of more than 2^26 pixels is refused before its
samples are decoded.
remove(), the document's pageItems.removeAll() and textFrames.removeAll()
release the mask of a clip group whose clipping path they delete. A clip
group named Image Trace with an image next above its clipping path then
became an ordinary group named as a tracing with an image first, which
reads as a tracing. They now throw "Only Image Trace can make a tracing"
and delete nothing in that case.
docs/mcp.md names the removeAll() collections that release a mask and
the ones that refuse to delete a clipping path instead.
- Layer.zOrderPosition reads the sibling list through the cached layer
lists, so reading it for every layer of a loop lists the layers once.
Each read is still charged for the search through the list.
- TextFrames.removeAll releases the mask of a group or layer whose
clipping path is one of the type objects it deletes, as
PageItems.removeAll and remove() do, so the object above the type is
not made the clipping path.
- GroupItems.createFromFile checks that its collection is still there
first, so a collection whose group was deleted throws "Stale page item"
instead of the not-available message. docs/mcp.md says so.
A file.new step replayed from a journal or the Actions panel rounded
artboardLayout.rows and then refused a result over 1000, so a step with
rows 1000.5 or 5000 stopped the playback. The rows count now follows the
columns rule: it is rounded, must be 1 or more, and is kept to at most
1000. Recent stores the kept count. docs/mcp.md says the same.