A press on an edge (Shift with Paint Fills alone, or a plain press with
Paint Strokes on) now starts a drag, as a press on a face does. The drag
paints the edge and every visible edge of the same group that it crosses
or comes within 0.0001 pt of, between pointer events and on the release,
as one undo step; Escape cancels it. Edges of other groups and hidden
edges keep their strokes, a drag over edges that already have the stroke
records no undo step, and a drag that starts on a face still fills only
faces. A double-click after such a drag joins through the edges the drag
stroked as the paint they had before it.
livePaint.strokeEdge takes the drag's points and continuation as
livePaint.fill does, and both refuse them with scope connected or
samePaint.
Help page: https://helpx.adobe.com/illustrator/desktop/paint-and-fill/learn-painting-basics/paint-with-the-live-paint-bucket-tool.html
The Symbols panel and its panel menu asked for the current symbol on
every frame by running symbol.list, which builds a row per symbol and
walks the whole document once per symbol to count its instances. They
now read it from the active document with cmd::current_symbol, the
rule symbol.list itself uses for its `current`: the stored name while
a symbol has it, else the first symbol. symbol.sortByName,
symbol.place, symbol.options and text.insertInline use the same
function, and symbol.list's reply is unchanged.
An idle frame of the panel or its menu now runs no command, so on
macOS the native menu is not brought up to date on every frame while
the panel is open. In a document with 200 symbols and 50,000 objects
the read takes 0.035 us instead of 48.5 ms in a release build (thread
CPU time on Linux, median of 7 runs). The gain matters on large
documents; on small ones it is too small to notice.
Dropping a layer, group or object's target circle on the Layers panel's
Delete Selection button now runs Reduce to Basic Appearance on that item
instead of Clear Appearance. The item keeps its topmost visible fill and
stroke, loses its other rows and its effects, and is not deleted. A drop
that changes nothing records no undo step. The help page describes this
drag as the alternative to Reduce To Basic Appearance:
https://helpx.adobe.com/illustrator/using/appearance-attributes.html
Before this change the drop also removed the remaining fill and stroke
and reset the object's opacity and blend mode.
The canvas took carried artwork only while the pointer was over it at the
end of the frame. A release inside the canvas followed in the same frame by
a move onto the tab strip kept the drag alive past cleanup, and the drop was
lost when the frame ended. The canvas now checks the release position
against its own rect and layer, as the tiled and floating panes do
(canvas/panes.rs artwork_over).
In a CMYK document the Fill Color and Stroke Color tolerances run from 0
to 100 and measure the Euclidean distance between the C, M, Y and K
percentages; RGB, Gray and Lab colors are converted to CMYK. RGB
documents keep the 0 to 255 RGB distance. The panel's fields take the
range of the active document.
A tolerance above 100 set in an RGB document is kept and applies as 100
while a CMYK document is active. magicWand.set now returns an error for
a tolerance that is out of range or not a number, and for a switch that
is not true or false, and then changes no setting, reset included;
before, it clamped the values and applied reset first.
With one path selected, a member of a group or a compound path included,
the canvas context menu now has Isolate Selected Path (object.isolate),
next to where Isolate Selected Group shows for one group or compound path.
Neither item shows for an object that object.isolate refuses: a hidden or
locked object, one in a hidden or locked group or layer, a guide while
Lock Guides is on, and, while a symbol is edited, an object outside the
symbol's art.
Help page: https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=324
A style whose rows paint nothing showed as a blank white tile. Its
thumbnail now shows the preview square or type outlined in black and
filled with white, with the style's effects, under a red slash. The
panel's views, the Control bar's Style picker and chip, the dragged
chip, graphic style library panels and the large preview on the
selected object all show it. A row that paints None does not count as a
fill or stroke; a hidden row or one with zero opacity does.
Holding Backtick while dragging out a rectangle, rounded rectangle,
ellipse, polygon, star or line leaves a copy of the shape being drawn
each time the pointer has moved 8 screen points with the key down, up to
128 copies a drag. Each copy is its own object, drawn as the drag showed
it then. The release keeps the copies and the last shape as one undo
step, and Escape takes them all back. The spacing and the limit are
VectorCraft's own values.
The `backquote` descriptions of `pointer_gesture` name the shape tools.
Docs: docs/mcp.md, docs/target-app-parity.md.
With one radial repeat selected, the Selection tool shows a splitter on
its circle, half a step past the last instance shown. Dragging it back
around the circle hides the instances it passes, and dragging it forward
shows them again; one instance stays shown at least. The instances left
keep their places: the repeat keeps the count shown in instances and
spaces them a full circle's step apart with endAngle, and the full
circle's count is read back from that step. Each drag previews and
commits object.repeat.options as one undo step, Escape cancels it, and a
drag that ends where it began leaves no undo step. There is no splitter
when the step does not divide a full turn, for one instance to a turn or
with a radius of 0. The radius handle of a single instance sits opposite
it.
A button under the Add Color and Remove Color tools switches both Edit
tab wheels between hue with saturation and hue with brightness. On the
brightness wheel a marker's distance from the center is its brightness
(black at the center, full at the edge), a drag sets hue and brightness,
the slider under the wheel edits saturation, and Add Color adds the hue
and brightness clicked at the base color's saturation. The segmented
wheel's five rings become brightness steps. Switching changes no color,
the button is off for the color bars, and each opening shows hue and
saturation. The dialog field is `wheelAxes` (`hueSaturation`,
`hueBrightness`).
A frame can carry the primary button's release and then a pointer move or
a change of modifiers. The tiled pane, the floating window and the canvas
read the pointer position and Alt at the end of the frame, so a move after
the release could change where the artwork landed or which pane took it,
and Alt let go in the same frame moved the originals instead of copying
them. The drop now takes its position and Alt from the release event, as
the canvas already does for its own drags (canvas/input.rs release_pos).
A clip group whose clipping path clips by nothing (an empty group) hides its
members on the canvas, but Pathfinder skipped the group altogether, so
Intersect gave the other objects' overlap. Its members now get an empty
region and count as hidden like any other masked art.
A series read from bands with unstroked markers, or bands alone, kept an
explicit no-stroke paint. With Draw Filled Lines turned off, the thin line
took that paint and was not drawn. Such a series now keeps no stroke, as a
graph drawn here does, and its thin line is drawn in the series color at
1 pt. A series whose markers carry a stroke keeps it.
The Glyphs panel asked the face for its characters on every frame, and
each call read the whole cmap, sorted it and removed repeated
characters. A face now keeps the list the first time it is asked for
(FontFace::mapped_chars) and shares it; FontFace::chars returns a copy
of it, in the same order. The panel finds a Unicode subset's characters
by searching the sorted list, and Entire Font uses the face's shared
list of unencoded glyphs instead of copying it each frame. The cells the
panel shows do not change.
Measured in one release process, old read and shared list alternating,
median of 7 samples of 100 calls, wall-clock times from a single run:
- Source Sans 3 Regular, 1,614 characters: 0.0101 ms to 0.000004 ms
- a test font of 50,000 characters: 0.2347 ms to 0.000004 ms
The saving matters for fonts with large character maps, such as CJK
fonts.
When a placed EPS or PostScript .ai file is gone, File > Package writes
the PostScript bytes the document holds only for a placed document whose
file name ends in .eps, .epsf, .ps, .ai or .ait. Under any other name,
or for a linked image, the link is reported as missing and nothing is
written for it.
A selected object its clipping masks hide altogether was left out of the
operation. For Intersect, Minus Front (hidden at the back), Minus Back
(hidden in front) and Crop (hidden on top) that changed the result: the
others' overlap or the next object down took its place. It now stays in as
an empty shape for those four, which then give nothing. The other operations
still leave it out, which gives the same art and keeps its style off the
result.
- A crease that runs past the cut outline by the tolerance or more is
reported as outside, though its hinge is still built.
- Two lines that fold, of any role, on top of each other are reported as
duplicate; a line drawn twice is still checked for where it lies.
- Hidden lines are left out in every scope, members of a selected group
included.
- The ids scope gets its own noCut message.
- The notStraight, ambiguous and summary texts say what the check finds:
the summary counts hinges, not creases.
- The fold angle fields, which nothing in this change reads, are removed.
- A window drawn as open cut lines stays a hole when a cut line crosses
it or when slits join it to an outline of open lines, so that three
lines meet at a corner. Cut lines drawn whole that cross a cell leave
it material.
- A slot drawn across the outline is a notch, not a hole, as when the
notch is drawn in the outline; a crease in it lies outside the blank.
- notStraight measures each hinge piece at its farthest point from the
hinge line instead of at five samples.
- Cut lines drawn on top of each other so many times that the gap search
would look at more than 16,777,216 pairs are reported as tooComplex
before the search.
The XML declaration, DOCTYPE entity subset and root <svg> open now go
through SvgWriter. Mapping and the rest of the document stay in the app.
Width and height stay unitless in one place so #7105 can rebase.
shape.arc returns an error for a reference that is not a whole number
from 0 to 8, a baseAlong other than x or y (either case), null included
for both, and a slope outside -100 to 100, in both of its forms. Before,
such a value drew the arc from reference point 0 or 8, along the X axis
or with the nearest slope. shape.rectangularGrid and shape.polarGrid
return an error for a divider count that is not a whole number of at
least 0; before, it took the default 5. Each error names the key,
nothing is drawn and no undo step is added. Left-out values keep their
defaults.
FontLikeness::distance left out every number either face does not give,
so a family whose faces give none of them (static faces with no OS/2 or
post table) was 0 from every family, and Show Similar Fonts could list
it right after the chosen family, as an exact match. Faces that share
no number to compare are now f32::INFINITY apart, so such a family
comes after every family of its script group that shares one, and
families equally far keep their order. The order of measured families
does not change. This is VectorCraft's own rule.
Builds on #7983, which added Show Similar Fonts.
path.split (Scissors) and path.cutAtAnchors (Cut Path at Selected
Anchor Points) keep the source path's fill and stroke settings on the
paths they make, and now set every stroke's alignment to Center in the
same undo step, as the help page describes:
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-paths/split-paths.html
Every stroke row is reset, hidden ones included. A path of several
subpaths has one appearance, so its other subpaths' strokes are
centered too, and a cut member of a compound path centers the compound
path's strokes. An appearance whose strokes are already centered is
left shared. Knife, the erasers and Divide are unchanged.
A release over another document's floating window is handled before the frame's drag cleanup, so a tab transfer whose source document was edited or closed since the last frame could still be copied into the window. The pane drop now checks that the source document still holds the content the drag started with, as the canvas drop does.
File > Place with Link (the default) now places an EPS file, a PostScript file or a PostScript .ai from a path as one locked placed document instead of an embedded group. It shows the art that placing without Link gives (clipped to the bounding box, or the art's bounds with crop: "bounding"). Links check, update and relink it, Break Link and Object > Expand give the Link-false group, a save keeps its preview, every output draws its vectors, and Package copies the file, also from the bytes the document holds when the file is gone. Links lists it as EPS or PostScript, also after a save that kept only its preview. A DCS file stays a linked image; Link off and dataBase64 still embed.
readhexstring and readline called the one-byte file read for every input
character, copying each byte into a new vector. They now scan the bytes
left in the file in one slice and advance the file by the bytes they used.
The results are unchanged: the same bytes, the same boolean, the same next
unread byte, from the program's own file (after the whitespace that ends
the last token), a decoded buffer and a filter decoded when first read.
readhexstring stops on the digit that completes the last byte and drops a
lone digit at the end of the data; readline takes CR LF as one line ending,
leaves the byte after a lone CR unread, and leaves the line ending unread
when the line fills the string.
Tests run the new readers next to copies of the byte-at-a-time loops over
13 stream forms and several hundred inputs, comparing the result and
everything left to read; an image read through a readhexstring procedure
is compared with the same samples given as a hexadecimal string. The
import fuzz tests gain readline and a case for both operators.
data_op allows clippy::cognitive_complexity. Without the allow, clippy
rates it 54 against the limit of 30; with the old loops in place it
passes.
A line graph whose style record draws its lines as shapes now opens as a
live graph with Draw Filled Lines on, and its lineShapeWidth becomes the
Line Width (3 pt reads as the default). The flag is ignored when the
points are not connected, as the published file format specification
says (printed pp. 147-148). Saving writes both values in the Gy record.
- Widths from 0.01 to 100 pt are kept. A wider Line Width, a width under
0.01 pt with filled lines, and filled lines without connected points
are saved as the graph's art with the existing warning.
- In a filled-line series, a filled path with the thin black band
outline is read as a band and does not set the series stroke. A
filled path with another outline must be a square marker or legend
swatch; otherwise the graph keeps its art as plain objects.
- The reader in crates/eps/src/import/ai/read/graph.rs reads each value
the writer in crates/eps/src/ai_graph.rs writes; the save-then-open
tests cover the default, 8 pt and 150 pt widths in both .ai forms.
With Window › Arrange › Float in Window, a Selection move released over
the art area of another document's floating window copies the artwork
into that document with edit.dropSelection, as a release over a tiled
pane does. The window becomes the current one, and the grab point lands
under the pointer in that window's own zoom and rotation. While the
current document floats, a release over the pane the main window draws
copies the artwork into the main window's document. A floating window
with another view of the source document takes a move, and Alt copies.
The release is taken at the start of the frame, before any canvas sees
it, so a release in the first frame over a window still drops the
artwork, and the source move is rolled back first. A release on a
window's title bar, rulers or scroll bars, or after Escape, changes
neither document. This covers floating windows drawn inside the main
window (the web, Wayland and a control channel). A floating window that
is an OS window of its own does not take the artwork yet.
Docs: development.md, target-app-parity.md, gaps.md, roadmap.md,
ui-parity.md.
Pathfinder collected a clip group's members as if it were a plain group, so
Divide cut the hidden art too and the result lost the mask. Each member is
now cut to the group's clipping region first (nested clip groups by each
region in turn): its area is intersected with the region, and Divide's
cutting lines keep only their parts inside it. A member the mask hides gives
no piece, a group among other objects takes the style of its top member that
shows, and a selection the masks hide altogether is refused with a reason.
This applies to every object.pathfinder.* operation, which also covers Merge
on masked art (#3367).
xtask pdf-deps still expected craft-pdf and the patched hayro/krilla
backends at main's 9be9a637 revision after this branch pinned them to
a499742a. Point REV at that pin (still on craft-libs main). Classify
test files in sonar-project.properties the way craft-libs does, so the
quality gate measures the product. Give the EPS operation-budget test
the same 300s cap as the other budget tests; under instrumented coverage
it overran the old 120s cap, while the Ubuntu gate finished in time.
Object › Plug-ins › Packaging Tools › Check Fold Lines, and the Fold Lines
panel's Check button, check the fold lines of the selection, or of the
document while nothing is selected (`addon.packaging.check`).
- Cut lines bound the material: each connected piece that encloses an
area is one blank, its largest closed cut line is the outline, and a
closed cut line inside it is a hole. A slot drawn as a rectangle across
the outline leaves the same material as a notch drawn in it, and an
outline drawn as several open cut lines works too.
- Creases, partial cuts and perforations divide a blank into panels; the
pieces between the same two panels form one hinge.
- 15 issue codes, errors and warnings, each naming its lines; cut line
ends within a tolerance (0.1 pt, 0.01 to 10) are joined and reported as
a gap. With `select`, the lines the issues name are selected.
- The panel lists the issues in the interface language, with a summary
line; clicking an issue or its Select button selects its lines. The
list is kept until the document changes.
`vectorcraft_pathops::adjacency` maps paths as live_paint does and keeps,
for each edge, every input it lies on and the faces on both sides; the
blank model is `vectorcraft_three_d::fold::blanks`. The engine now depends
on vectorcraft-three-d directly.
Docs: docs/mcp.md (Check Fold Lines), crates/pathops/README.md, ROADMAP.
header_size now reads a BMP BITMAPINFOHEADER when the probes refuse the file,
so Paste of a 30,000² poked header reports "too large to draw" instead of
that the size can't be read. through_jpeg encodes with the image crate again
so the block-artifact trace test stays calibrated; the JPEG writer is still
on main's code. Also use a no-break space before ":" in three French typography
rows (unchanged from main) so the catalog check is green.
Under Window › Arrange › Tile, a Selection move dragged from the current
pane and released over another document's pane copies the artwork into
that document with edit.dropSelection, with no tab hover first. The pane
becomes the current window, and the grab point lands under the pointer in
that pane's own zoom and rotation. A release over another view of the
source document moves the artwork with object.move, and Alt copies it.
The source move is rolled back before the canvas sees the release, also
when the pointer enters the pane and the button goes up in one frame.
Artwork carried to a document through its tab can also be released in a
third document's pane. A release over a pane's rulers or scroll bars, or
after Escape, changes neither document, and a press in another pane with
no artwork carried still only makes its document current. Dragging into a
floating document window and the tab overflow menu are not covered.
Docs: development.md, target-app-parity.md, gaps.md, roadmap.md,
ui-parity.md.
decode_within mapped every LimitExceeded to Ok(None) ("oversized, accept
unread"). craft-image-codecs raises that for its decompression-bomb guard
when a tiny file declares a large image, so Place accepted a header-only
23,170² gray PNG instead of reporting that its pixels can't be read.
Ok(None) now only when the header says the image would take more than the
allowance as samples or as RGBA. A decode that hits a limit stays an error.
With a Constrain Angle other than 0° or a whole turn, an arc dragged out
with the Arc tool or placed from the Arc Segment Tool Options click dialog
is drawn along the turned x and y axes, with its bounding box turned. The
drag's box and Shift's equal lengths are measured along those axes, the
reference point stays at the drag's corner or the click, and F, C and
Up/Down keep the turn. At 0° and whole turns arcs are drawn as before.
shape.arc takes an optional rotation (degrees clockwise, about x1, y1 or
about the reference point x, y); a rotation that is not a number is an
error and adds nothing.
Expand Appearance gave each copy of a group's or layer's Transform effect
new ids after expanding it. When the raster budget refused the image for a
copy that held a random Transform effect, the copy stayed unexpanded, but
its new ids gave that effect a new seed, so the copy moved.
The group or layer now stays as it is in that case, as it does when its
own raster effects go past the budget. That rollback also removes the
images its earlier copies added to the document and gives their charge
back to the budget, so later objects in the same command can still use it.
With one radial repeat selected, the Selection tool shows a handle below
it and a handle on its circle between the first two instances. Dragging
the first one down adds an instance for every 16 px and dragging it up
removes them (1 to 1,000). Dragging the second one outward or inward
makes the radius larger or smaller (0 or more); only the part of the drag
along the line from the center counts. Each drag previews and commits
object.repeat.options as one undo step, Escape cancels it, and a drag
that ends where it began leaves no undo step. The handles hide with the
edges or the bounding box and for a locked or hidden repeat, and
bounding-box handles keep priority where they meet, as with Grid Repeat.
A stored texture longer than the codec's default 2^18-pixel side still
reads back, and a gray PNG is not expanded to RGBA just to get its
levels. The AI writer and the EPS scene refuse an oversized image from
its header, then decode within MAX_IMAGE_PIXELS, keeping the pixels at
their stored depth. Flatten's see-through check uses ImageBlob's
allowance, and links.unembed decodes within MAX_RASTER_ALLOC.
When the colors of an image lie on one line, as a pale gray ground, a
gray panel and a charcoal disc do, an edge pixel between the panel and
the disc is also reproduced by a mix of the ground and the disc. Flat
Logo switches such a pixel to the mix of the classes beside it only when
its neighbors lie on both sides of the class it drops, which a class
beyond both classes of the edge never satisfies. A charcoal disc on a
gray panel on a paler ground traced with 28 slivers of the ground, of at
most two pixels each, around it when its edges were sharp, and with one
sliver when they were blurred by 0.7 pixel, with the colors found or
named.
A pixel now also takes the mix of the classes beside it when the class
it drops lies beyond both of them on their line, the pixel's own
neighbors lie on each side of it, no neighbor lies past the nearer of
the two toward the dropped class, and a chain of neighbors, each nearer
that class than the one before, leads from the pixel, in at most 6
steps, to that class's color or to a flat area of that class. A class
named some levels off the color of its flat areas still counts. The pixels of a pale line on the disc, whether one pixel wide,
blurred over three pixels or falling between two pixels, and the edge of
a gap of the ground's color between the disc and the panel keep the
ground in their mixes. An edge blurred by a pixel or more can still
leave slivers of the ground.
Docs: docs/image-trace-adjustments.md, docs/target-app-parity.md.
The Actions panel menu has Reset Actions. It asks first: OK replaces
every set in the panel with the built-in Default Actions set, which
becomes current and selected, and Append adds the built-in set after the
sets there are, with the next free number when its name is in use
(Default Actions 2). Cancel changes nothing. The item is off while an
action records or plays, and the reset records no undo step.
- ui.actionSet.reset {mode?: "replace" | "append"} runs it; omitted
params count as {}, and another type, key or mode is an error.
- Replace clears the panel's selected action and step, expanded actions
and a dragged step, and closes an open dialog that holds a set index.
On the built-in set already shown that way it changes nothing.
- New strings have rows in every catalog. Three French messages about
tangents get the no-break space before the colon that fr.tsv uses.
Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
Embedded and linked images read their pixels with decode_within: the
size from the header against the allowance first (as samples and as
RGBA, #1717), then the pixels as stored. map_rgb, sampling, coverage,
link previews and checked_with_pixels all go through it.
decoded_pixels_are_those_the_image_crate_read compares PNG, GIF, WebP,
TIFF and BMP at each depth the image crate writes with its pixels, and
JPEG within two steps, including the pixels checked_with_pixels hands
on. The 11,586² allowance test is a compact PNG; craft-image-codecs
refuses a GIF whose unbacked logical screen is past 256 MiB.