A placed image of more pixels than the writer is given (2^27) was left out of
the PDF, with the warning for an image that can't be decoded (#10490). It is
now decoded as Open and Place decode it, within MAX_RASTER_ALLOC and by the
decoders that refuse a file too short for the pixels it declares, and scaled
down to the most pixels that fit before the Compression and Output settings
apply. The warning gives its size and the size written. An image that can't
be scaled down (beyond the allowance, or CMYK) is still left out, and the
warning gives its size as the cause.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
(cherry picked from commit df730ecbcd)
When the planar map is skipped because the paths have too many pieces
(SHAPE_BUILDER_MAX_MAP_EDGES, added in 7a46d5ec56), too many segments
or exceed the sweep's work budget, Divide with open paths fell back to
the filled areas. It replaced the selection with the uncut shapes and
deleted the cutting paths without saying so. Live Paint built no faces:
Make reported the paths as too degenerate to paint, and with Gap
Detection a group could get its edges and no faces.
pathops now has try_pathfinder_with, try_live_paint and
try_live_paint_with_gaps, which return TooManyPieces in those cases
without sweeping the filled areas. Divide, Live Paint Make, Merge and
Gap Options use them and stop with an error that leaves the art
unchanged. The caps, and the fallbacks of pathfinder_with, live_paint,
live_paint_with_gaps and the Shape Builder, are unchanged.
When a Gap Options preview fails after one that found gaps, the dialog
no longer keeps drawing the earlier preview's gaps over the groups the
failure put back.
Docs: docs/mcp.md, the commands' params text and the Divide line in
docs/target-app-parity.md.
An envelope of type whose type a text variable binds kept its drawn
art, its type hidden. The variable library names the hidden text object
a slot became, and a live envelope's type takes its place with an id of
its own, so the binding would have been dropped. Now such an envelope
opens live like the others, and a binding to the hidden text object
goes to the type in the envelope's contents. Where the drawn art is put
back (the page holds the envelope against the layers), the binding
stays on the hidden text object put back with it. A data set already
rewrites type in an envelope's contents, and the live envelope draws
from its contents, so the envelope bends the new text.
The editing copy of a .ai save left out bindings of type in an
envelope's contents with a warning; it now writes them for text
variables, so the type reads back bound. A visibility variable on the
type still keeps the drawn art: in a live envelope it would show and
hide only the type, not the envelope.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 4026cdb928)
The variable library can name a text object by its story's XML id
(AI11_StoryUID in the text object's /StoryDictionary) rather than the
object's own AI10_ArtUID. The reader only remembered AI10_ArtUID, so
such a binding found no object: the type came in unbound and the import
noted the bindings as skipped. The story's id now names the slot of the
story's first frame, the same way the object's id names the object;
for a story also written on %_ lines, the plain copy's slot, which is
the one the reader keeps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 923f6bd7ee)
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.
(cherry picked from commit e94496b42f)
(cherry picked from commit 3d593bfac8)
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>
Cause of the CI failures on 212090fd7a:
- main's dialogs::new_document test a_presets_rows_reach_the_document_create_makes
sets artboardLayout.rows to 3.6 and expects 4, but this branch refused a
rows value that was not a whole number. rows now rounds like columns and is
still refused outside 1 to 1000.
- script_host_vs_scriptcheck listed Document.prototype.pathItems=, the
setter of main's placeholder. This branch makes pathItems a read-only
collection, like pageItems, so the row goes.
vectorcraft-ui-egui's tests were one leg that set the pull request run's
length (33.2 min median over 20 runs: about 19 min compiling and 11.9 min
running 5,288 tests). The gate now has six legs. Shards 1 and 2 each
build vectorcraft-ui-egui's tests and run half of them with nextest's
count partition. Each part also runs its own pinned slow tests, so the
slowest tests do not land on one leg. Part 1 alone runs the doctests and
the i18n report, and `cargo xtask ci warm` builds the split once.
Before running, a part lists the tests and stops with an error when a
pinned test name no longer exists. The xtask shard tests check that
every test of a split runs on exactly one part.
The nightly signing policy and its preparation doc list the new job
names (`test N/6`).
symbol.options recorded an undo step and moved the revision whenever any
option was passed, unless only alignToPixelGrid was given with the value
the symbol already had. A newName equal to the current name, or a
registration, export type, 9-slice, type or pixel grid value the symbol
already has, now leaves the document and its undo history as they are.
symbol.replace with the symbol the instances already show recorded an
undo step too. It now records one only when an instance changes.
Both run through colorcmds::edit_if_changed, as the Symbol Shifter and
the other symbolism tools do.
With an object of a dynamic symbol instance selected by Direct Selection,
transparency.set without ids changes that object's opacity and blend mode
for the instance, and the Transparency panel shows those values. The
transparency.info command still reported the instance's own opacity and
blend mode. Without ids or id it now returns the panel's values
(Session::transparency_info), so it reports the part's opacity and blend
mode with the instance's isolate and knockout. With ids or id it still
reports those objects.
The Libraries panel accepted a swatch row dragged before File › Revert and added the restored swatch of that name. Membership::grabbed now refuses stale rows, for the hover marker and on release.
A sliver at 0% opacity, or inside a group or layer at 0% opacity, paints
nothing, so Clean Up and Select > Object > Hairline Slivers now skip it.
The params text and docs/mcp.md say so, and docs/mcp.md also names what a
group or compound path used as a clipping path holds among the objects
both commands leave.
#9931 refused an appearance carried across File › Revert. Graphic styles,
brushes, symbols, swatch rows and appearance stack rows had the same fault:
a held drag still resolved a name or id against the restored contents.
- Graphic style, brush, symbol and swatch drags carry the document's revert
count, and the canvas, the panels, the Fill/Stroke wells and the Gradient
slider refuse a drag from before the revert.
- The Brushes panel shows no reorder marker for a stale brush drag.
- docs/mcp.md says which drops File › Revert cancels.
Follows #9931 by @dotCooCoo.
app.redraw() changes nothing, so docs/mcp.md now describes it on its own. The undo step a run
leaves is stated for documents that were open before the run and are still open after it.
main's own indexer tests already check the receiver's and the key's limits.