The check that decided between taking removed objects out of the
selection's paints and reading the selection again counted each id once.
Removing a group of 10,000 squares while two squares stayed selected took
all 10,000 fills, strokes and weights out instead of reading the two
squares again.
SelectionPaints::reads_no_more_than now counts the objects that reading
each side meets: each id, the contents of groups, layers, Live Paint
groups and containers inside groups, as the paints read them, and ruler
guides. The two counts go up one object at a time in turn and stop when
either side runs out, so the check itself meets at most twice as many
objects as the smaller side holds.
Two tests in large_edits.rs count the fills read or taken out. Removing
a large group beside two squares fails with the old id count (10,000
fills). Removing a small group beside a large one fails when only the
removed side's contents are counted (10,000 fills).
addon.pathtools.shape.create and addon.pathtools.shape.set take sliceStart
and sliceEnd, in degrees clockwise from the shape's top (0 to 360). The
shape is cut from the start clockwise to the end and back through its
center; a ring's slice runs back along its hole. The angles are measured
as if the shape were as high as it is wide, so 45 degrees is a
rectangle's top right corner and a slice keeps its place when the shape
is stretched along its own axes. The same start and end leave the whole
shape, rounded corners are rounded before the cut, and the arrow, cross,
heart, gear and speech bubble ignore both values. A value outside 0 to
360 is refused. The values are kept with the shape's other numbers and
with the Parametric Shape Tool's options.
A scatter brush takes a Brightness Jitter amount from 0 to 100 percent (0
by default). Each copy moves the brightness of its solid fills and
strokes, type included, by its own amount up to that many points either
way, after the colorization and the hue and saturation jitter. The
amounts come from the stroke's path and the brush name, drawn apart from
the hue and saturation jitter's, so a stroke draws the same colors on
every redraw, after Save and Open, and in export, and turning it on does
not change their amounts.
A color keeps its hue and saturation and moves in its own model: RGB in
the HSB of its values, Gray by its ink, Lab by its lightness with a and b
kept, and CMYK by its K over the brightness its C, M and Y leave. A CMYK
color that goes brighter than its C, M and Y show with no K loses its K
and takes less C, M and Y. The brightness stops at black and at full.
White, black and grays move too. A brush at 0 saves no brightness_jitter
key; a brush without the key reads as 0.
- brush.options takes brightness_jitter, and brush.get shows it for every
scatter brush. Brush Options shows a Brightness Jitter field
(ui.brushOptions field brightnessJitter).
- Options of Selected Object sets a path's own brightness_jitter
(brush.objectOptions).
- The brightness goes through the per-copy recolor step hue and
saturation jitter use, with its own salt.
- The .ai editing data writer does not write the amount, so such a brush
is left out of the Brushes panel there and reported.
Docs: docs/mcp.md, docs/target-app-parity.md.
File › Open and File › Place read layered raster .pcraft documents
through craft-doc and store them as one PNG, sized by the document's
resolution. A placed file links like any image.
- The image is the file's full-size composite when it has one.
- Without one, the layers are combined at the canvas size when the
document is RGB at 8 or 16 bits and every visible layer is a raster
layer that blends Normal, with no clipping, layer effects, vector
mask, frame, advanced blending or feathered layer mask. Hidden layers
are not read, and an RGB ICC profile the document names is kept.
- Otherwise the composite preview comes in at the canvas's size, and
Open, Place, links.update, links.relink and links.replaceEmbedded
warn when it has fewer pixels than the canvas, naming both sizes and
why the layers were not combined.
- A full-size composite or preview the file names but doesn't hold,
can't decode or, for the full-size one, of another size than the
canvas is an error. The Links commands decode the kept PNG before
taking it.
The import fuzz tests cover mutated bundles and manifests.
The private data streams of a .ai file, or of a PDF saved with its
editing data, were joined into one buffer of at most 256 MiB before
they were decoded, while the decoded editing data may take up to an
eighth of installed memory (512 MiB to 2 GiB). A file whose streams
passed 256 MiB opened as its PDF part without a note, and a file whose
PDF part can't be read failed with "it is larger than 256 MB".
The streams are now read one after the other and decoded as they are
read, so they are never joined. The decoded data keeps its limit, and
no more of the streams is read than that limit and a sixteenth more.
The data is decompressed after the first compression marker in it.
A click on a path's direction handle picks it, a Shift-click adds it to
the picked handles or takes it away, and Escape lets them go. Picked
handles show ringed. Dragging one of two or more picked handles moves
all of them, on one path or several, by the same offset in one undo
step. A Shift-press on a handle reshapes only once the pointer has moved
3 pixels, so a Shift-click leaves the handle where it is.
The new command path.moveHandles does the move: an anchor with one
handle listed places it as path.setHandle does, an anchor with both
listed moves both and becomes a corner, and independent (Alt during the
drag) makes every listed handle's anchor a corner.
Docs: docs/mcp.md, docs/target-app-parity.md.
When object.setLiveShape carries a pixel-aligned shape with patterns on, the
final snap to the pixel grid now moves its patterns as well, so the pattern
keeps its place on the shape. With patterns off the pattern stays where it was.
A scatter brush takes a Saturation Jitter amount from 0 to 100 percent (0
by default). Each copy moves the saturation of its solid fills and
strokes, type included, by its own amount up to that many points either
way, after the colorization and the hue jitter. The amounts come from the
stroke's path and the brush name, drawn apart from the hue jitter's, so a
stroke draws the same colors on every redraw, after Save and Open, and in
export, and turning it on does not change the hue jitter's amounts.
A color keeps its hue and brightness and moves in its own model: RGB in
the HSB of its values, CMYK over C, M and Y with K kept, Lab by moving its
chroma with its lightness and hue angle kept (a and b stay within 127).
The saturation stops at none and at full. White, black and grays stay as
they are. A brush at 0 saves no saturation_jitter key; a brush without
the key reads as 0.
- brush.options takes saturation_jitter, and brush.get shows it for every
scatter brush. Brush Options shows a Saturation Jitter field
(ui.brushOptions field saturationJitter).
- Hue and saturation jitter share one per-copy recolor step, which takes
a salt and a color adjustment.
- Options of Selected Object showed Hue Jitter but dropped a change to it
on OK, since a path could not set it for itself. A path now sets its own
hue_jitter and saturation_jitter (brush.objectOptions).
- The .ai editing data writer does not write the amount, so such a brush
is left out of the Brushes panel there and reported.
Docs: docs/mcp.md, docs/target-app-parity.md.
expand_to took in the target without checking that it is editable, so a
locked or hidden object inside a selected group replaced the group with
its contents. It now leaves the selection unchanged for such a target.
select.anchors with mode toggle decided whether a path was selected whole
from the rest of the selection, so after a Shift-click had opened a group,
a Shift-click on an anchor of another path in it selected only that
anchor. A toggle on a group member now decides it from the member's own
selection; paths directly on a layer keep the existing rule.
path.moveAnchors with dx and dy both 0 (omitted, null or 0) ran the edit
anyway and added a Move step that changed nothing. It now returns before
the edit, as object.nudge does for a move by 0, and its params text
says so.
layer.setProps with no options, or with every option a row already has,
added a Layer Options step that changed nothing. It now applies the
options to a copy of each row first and records no step when no row
changes. As object.setProps does, a call that hides, locks or makes a
template still deselects the art that is no longer editable.
The Command Palette test that checks what a pick of a left-out command
does no longer skips the two commands.
Create Object Mosaic refused an image changed by Perspective Distort or
Free Distort. It now places each tile's cell of pixels between the
image's corners through the image's projective map, so the tiles are
four-sided shapes that follow the perspective. A new size scales them
from the top left of the image's bounds, as it does for any image, and
the spacing and Use Ratio measure a pixel by the mean length of the
image's two sides along each axis. Plain images are tiled as before.
Docs: docs/mcp.md (Create Object Mosaic and the distorted-image
paragraph), docs/target-app-parity.md.
A group's or layer's visual box grew by Appearance::outset(), the farthest
any of its strokes can reach from any path. For a miter-joined stroke that
is the miter limit times half the weight, so a 10 pt stroke of the group's
own round a square measured 50 pt past it instead of the 5 pt it paints.
The container's own strokes are now measured along each member path and
compound path, at any depth in its groups, as a path measures its own
strokes (Appearance::stroked_bounds). They add nothing round hidden members,
guides, images and symbol instances, which they do not paint, and grow the
box of other members (type, clip groups, live objects) by their reach as
before. visual_of_members keeps the old growth for callers that have only
boxes at hand.
The box of a group measured in a turned frame (Node::bounds_in) and
object.setBounds with Use Preview Bounds, which measures plain groups member
by member and symbol art object by object, measure a group's own strokes the
same way, so the size setBounds gives matches the visual box. There, too,
the strokes stop at hidden members and guides, and setBounds measures a
compound shape as one object, as its visual box takes it. A group's
own beveled or mitered stroke along a path with slanted segments now counts
as a slanted stroke corner (Node::has_slanted_stroke_corners), so setBounds
measures such a group as drawn when it sizes it out of proportion.
A double-click on the Normal style's row, or Style Options... in the panel
menu, now opens Character Style Options or Paragraph Style Options on it.
The Character Styles panel treats [Normal Character Style] as a base
style (craft-libs#3629), so it also takes Duplicate and Redefine, as
[Normal Paragraph Style] already does. Style Name is disabled for a
Normal style, and charStyle.edit and paraStyle.edit refuse to rename
one. The first edit of a Normal style that was never redefined gives it
a definition, and the type set in it takes the new attributes. The help
page on the default font for new documents changes it this way:
https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/change-the-default-font-in-illustrator.html
object.setLiveShape rewrote only the path after a new Rectangle, Ellipse
or Polygon Angle, Polygon Radius, Side Length, Make Sides Equal, Line
Length or Line Angle, so a linked opacity mask, placed gradients and
pattern tiles stayed where they were. The edit now applies the transform
between the old and new shape to the object, as object.scale and
object.rotate do, and then sets the new shape. Scale Strokes & Effects
and Transform Patterns come from the new `strokes` and `patterns` params
or the preferences. Corner radii in the mask keep their size, an object
named twice moves once, and the bounding box keeps its angle.
Transform Patterns is now noted in the journal when only the art of a
linked opacity mask uses a pattern, so a replay of object.move,
object.scale and the other transforms moves those tiles alike.