The craft-libs pins take main's rev. Until storytold/craft-libs#5381 merges,
crates/cad/src/blocks_compat.rs writes the block records, BLOCK definitions
and INSERT entities that #5381 adds to the drawing writer.
A Shaper group keeps its source art at the bottom and rebuilds the rest
from it. object.newGroup with a Shaper group as parent at index 0, and
layer.clippingMask.toggle (also a script's clipped = true) on a Shaper
group, put a new object where the source art was. The group then read
no sources and was deleted. Both commands now refuse a Shaper group and
leave the document as it is; the clipping check runs before the edit
opens, so a refused call leaves typing as it is.
- A group with fill or stroke rows of its own stays whole, so its members
keep the paint the group draws for them.
- A clipping group whose shown clipped artwork overlaps a locked artboard
stays whole even when its clipping path lies off the artboard, including
when a target inside it is named by `ids`. Hidden artwork, art in pattern
editing mode and runs with `clipGroups` false do not count.
A REGION holds its outline as solid-modeler data. The import now reads
it and draws each face's boundary loops as one filled path (even-odd),
so holes stay open. Lines, circles, ellipses and spline edges keep their
shape; coedge and edge directions and a body's transform are applied.
The data is read from the text in groups 1 and 3 (DXF R13 to 2010,
ciphered or not) and from the binary data in the ACDSDATA section (DXF
2013 and later, with either binary signature), so DWG drawings converted
to DXF bring their regions too.
Damaged data is reported instead of drawn silently: edges of other curve
types come in straight, outlines that break off are closed with a
straight line, and a spline edge whose endpoint lies on two parts of a
self-crossing curve is trimmed at the nearer one, each with a warning.
Regions that can't be read, or that go over the record or path element
limits, are left out and listed.
The DXF import fuzz tests now include REGION entities and mutated text
and binary region data.
A native file's composite font named like an installed font is not lent
while the file's type is measured for placement, so the type is laid out
in the installed font. Adoption still brought that definition in under a
free name such as "Source Sans 3 2" and renamed the type to it, so the
placed type switched to the composite font it was never measured in.
Adoption now skips the source definitions the font database does not
lend: one named like an installed font, or one that fails its own checks.
layers.index(n) and artboards.index(n) returned Not found for a negative
or fractional number before checking whether the collection was stale, so
a script holding a stale collection got the wrong error. Both now check
the collection first, as the art collections' index() does.
The Live Corners line said an anchor edit makes the shape a plain path when no corner has a radius. The check reads the stored radii, so a straight anchor that holds the only radius above 0 keeps the path live.
- Document.exportForScreens throws a TypeError for null in place of the
options, itemToExport or fileNamePrefix, as exportFile does for null
options, instead of taking the defaults.
- The script checker counts a variable read just before the `}` that
closes a function body (`function get() { return $.global['local'] }`)
as read in that body, so a later literal's saveAs is no longer exempt.
When the document defined a composite font with the same name and the same
definition as one a placed dimension used, but spelled in more than the 256
bytes a dimension's family keeps (a case-insensitive match such as Kelvin
signs for k), placement copied the incoming font under a new name instead of
reusing the document's. The byte limit now applies only to an alias under
another name; a same-name reuse keeps the dimension's own spelling.
Merging main had also left a second, unguarded rename of a dimension's
family next to the guarded one, so a renamed family that was too long or
only differed in case was still written. The unguarded rename is removed.
docs/mcp.md describes how file.place renames a placed dimension's family.
WebP had no embedIcc option, and its encoder never attached a profile,
so no WebP file carried one. WebP now takes embedIcc like JPEG, TIFF and
PSD, on by default: the file becomes an extended (VP8X) file holding the
sRGB profile in an ICCP chunk, lossless or lossy. embedIcc: false writes
the plain file as before.
- document.export and Export for Screens' settings.webp take embedIcc,
and document.formats lists it for WebP.
- WebP Options (Export As and Export for Screens' Format Settings) gets
an Embed ICC Profile checkbox.
- Docs: docs/mcp.md and docs/file-format-parity.md.