A symbol dragged from the Symbols panel, in thumbnail view or a list
view, and released on the New Symbol button is copied as Duplicate
Symbol copies it (symbol.duplicate), with no Symbol Options dialog, in
one undo step. The drop works while no art is selected and the button
is disabled for clicks. The copy is made of the dragged symbol, not the
current one, and the current symbol and the selection stay as they
were. The button is outlined while a symbol of the document is held
over it; a library symbol, art or a name the document no longer has is
ignored.
A click with the Rounded Rectangle tool opened the size dialog at a fixed
12 pt radius, and the radius typed there drew one shape without changing
General › Corner Radius. The dialog now starts from the preference, and OK
sets the preference to the radius drawn (in any unit), so the next dialog
and the next drag use it. A radius equal to the preference sets nothing.
A radius outside the preference's range of 0 to 1296 pt, or one that is
not a length, is refused with an error: the dialog stays open, nothing is
drawn and the preference keeps its value.
With variation cells selected, the Save Color Group to Swatches button
now saves those cells as one swatch group, in grid order (row by row,
left to right, each cell once), named after the harmony rule, in one
undo step, each color in its own model. With no cell selected it saves
the harmony colors as before.
A cell selection now ends when the guide it was made in changes: the
base, the Color Guide Options, the variation mode, the harmony rule, the
library limit, or the colors the grid shows. Before, changing the
variation mode or the options kept the old cell positions selected, so
Save Colors as Swatches could save colors that were never picked.
With a gray between black and white, an edge pixel of black on white
took the black-and-white blend only when one of its eight neighbors lay
past the gray on each side and the flat black and white areas lay nearer
than the flat gray. On an edge blurred by a pixel or more neither holds,
so gray slivers lined black shapes: a black disc beside a gray square on
white traced up to 35 gray paths at blurs of 1 to 3 pixels.
The check now walks from the pixel along the line between the two outer
colors, up to 5 steps each way, each step to the neighbor that lies
farthest toward one of them while the pixels keep getting darker (or
lighter). The blend of the outer two lies as near as the farther of
their flat areas, or as the larger of the two step counts to a pixel of
each outer color when that is smaller. The first step is the old
neighbor check. The same disc and square now trace with one gray path
at blurs of 1 to 2 pixels. At 3 pixels, with the colors named, a gray of
128 is one path, a gray of 200 leaves 4 slivers with no area, and a gray
of 230 leaves 8 slivers of up to 21 pixels (14 gray paths before).
On edges blurred by a pixel or more, gray near black loses pixels. A
soft-edged gray band up to 4 pixels wide along black traces as black
and white at blurs of 1.5 and 2 pixels, and one up to 3 pixels wide at
blurs of 1 and 3 pixels. A soft-edged gray stroke 2 pixels from black
can lose some or all of its gray, and one 4 pixels away a few pixels. A
soft-edged gray stroke running out of black, blurred by 1 or 1.5
pixels, loses 3 or 4 of the 16 pixels nearest black. Sharp-edged bands
and strokes keep their gray.
Docs: docs/image-trace-adjustments.md, docs/target-app-parity.md.
The Expand dialog now keeps the Object, Fill, Stroke, Expand Gradient
To and steps choices that OK last expanded with, until the app quits,
and opens on them. Cancel and an OK that fails leave them as they were.
Choosing Object › Expand… in the in-window menu bar with Alt (Option on
macOS) held expands the selection at once with those choices, in one undo step, as OK would.
Before any OK it uses the dialog's defaults. When none of the choices
has something to expand in the selection, the dialog opens on them
instead and nothing changes. The help page describes the shortcut for
gradients:
https://helpx.adobe.com/illustrator/desktop/manage-objects/arrange-objects/expand-objects.html
ui.expandDialog takes immediate?: bool for this. A null immediate is
treated as omitted, and any other value that is not true or false is
an error.
A click on the isolation bar's empty space, or on the isolated object's
name at the end of the breadcrumbs, leaves isolation mode altogether, as
Exit Isolation Mode does, nested isolation included. The back arrow, the
breadcrumbs of the levels above and the pattern buttons keep their own
actions, and a drag across the bar does not exit.
While an opacity mask is edited the click stops editing the mask. In
symbol editing mode it leaves the mode, also from a group isolated inside
the symbol's art and together with the isolation the mode was entered
from. While a pattern is edited it does nothing; Save a Copy, Done and
Cancel end pattern editing.
Docs: docs/target-app-parity.md.
With `pdfs: "single"` and several assets, layers or selected objects
(`selection: "each"`), document.exportForScreens wrote one PDF named
after the document holding only the first item's art, and every other
item's PDF was left out. Single file puts artboards on the pages of one
PDF; each asset, layer or object is cut out of the document with its own
art, so the export now refuses that combination before it writes any
file, and the Example line refuses it too. `pdfs: "multiple"` still
writes a PDF of each item, and `selection: "one"` writes one PDF either
way.
Docs: params text, docs/mcp.md, docs/target-app-parity.md.
With the Selection tool, every Character and Paragraph field read its
value through selected_stories, which walked the selected objects and
looked up each type object's story again. With the default panels open
that was 24 builds of the same list per frame.
selected_stories and selected_story_texts now keep the last list,
with the document (a held Weak keeps its address from being reused),
its revision and a copy of the selected objects. A change to any of
them builds the list again. Type objects are still resolved from the
current document on every read, so the panels show the same values.
Tests compare the kept list with a fresh build after an edit, a
reordered or replaced selection, a selection set without a new
revision, a selected group and a switch to another document at the
same revision; compare what both panels draw and their field values
with and without the kept list; and count one build per frame.
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.
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`).
Type › Size ends with a separator and Other…, which runs the new UI
command type.highlightFontSize. It shows the Character panel and gives
its Font Size field the keyboard focus with the value selected, so a
size the list does not hold can be typed and applied with Enter.
Without selected type it fails with the existing error, as Highlight
Kerning does, and the menu item is dimmed, as Bold and Italic are.
The Font Size field now takes an armed focus: unit_field_from selects
and focuses the field as bounded_field_reading already does.
Docs: docs/mcp.md, docs/target-app-parity.md.
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.
Under automation read roots, every output that carries the native document
(a native file or template, an EPS file, a .ai or .ait file of every
artboard, a PDF of every artboard with Preserve Editing, from
document.serialize, document.export, document.exportSelection,
document.exportPdf, the saves, file.exportAs and Export for Screens rows)
is refused with "a linked image file is outside the read roots" when that
document names a linked image or placed file, a kept relative path or a
data set's image outside the roots, or holds a stored brush entry that
does not read as a brush. Nothing is written and the error names no file
or folder. Outputs without the native document are written as before.
The native document these files carry, and the documents file.package
writes or rewrites, leave out an Export for Screens folder outside the
read roots, as SVG with Preserve Editing already did. file.package refuses
a linked file it copies as it is (a PDF, .ai or EPS file, or a native
document with relink off) whose native document keeps such a folder, with
"a linked file's export folder is outside the read roots".
Export for Screens rows that write one artboard as a native, .ai or EPS
file are checked against that artboard's art. Each asset, layer or
selected object now writes its own native, .ai or EPS file: the per-artboard
document cache was keyed by artboard index alone, so every piece after the
first wrote the first piece's document.
Both messages get rows in the complete-message catalogs.
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.
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).
A spiral dragged out with the Spiral tool now turns about its center so
that its outer end is at the pointer, so dragging around the center turns
it. A pointer within 0.01 pt of the center keeps the last direction. Alt,
Ctrl/Cmd, Up/Down, Space and Escape work as before, and Shift does not
change the direction.
With General > Constrain Angle other than 0 degrees or a whole turn, a
spiral placed from the Spiral dialog starts along the turned x axis, with
its bounding box turned.
shape.spiral takes an optional rotation (degrees clockwise about cx, cy).
Without it, or at 0 or a whole turn, spirals are drawn as before; a
rotation that is not a number is an error and adds nothing.
Expand Appearance expanded a group's or layer's evaluated members, and the
object of a Crop Marks effect, before giving them new ids. When the raster
budget refused the image for such a member that held a random Transform
effect, the member stayed unexpanded, but its new id gave that effect a new
seed, so the member moved while its effects stayed live.
The group, layer or Crop Marks object now stays as it is in that case, as
it does when its own raster effects go past the budget. The rollback also
removes the images its other members added to the document and gives their
charge back to the budget.
- With art in some of the group's colors, a second Save Changes after
another edit of a row kept the color the first save gave that row's
swatch, and OK gave the group's colors by row order, which could
overwrite a swatch no row lists. Both now match each swatch to its row,
also through the color that row listed when an earlier save gave the
swatch its color.
- An excluded row leaves its swatch its own color at Save Changes and at
OK, with or without art. `recolor.apply` takes "keep" in `groupColors`
for a swatch that keeps its color without the Global Adjust.
- `swatch.editGroup` given the color keys of the group's own colors keeps
those colors unrounded and records no undo step.
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.
docs/mcp.md still said a Shift marquee dragged with Group Selection toggles the anchors inside it. It toggles the objects it touches, whole; Direct Selection's Shift marquee still toggles anchors.
A Shift-press on a member selected inside a group still toggled the outer
group at once, so a Shift-drag moved the whole group, and Alt over the
member drew Distance Guides from the selection to the group holding it.
Both now use the same selected-art test as a plain press: a Shift-drag
moves the selected members, constrained, a Shift-click takes the pressed
member out of the selection, and Alt over it shows no Distance Guides.
Docs: docs/target-app-parity.md.
- Screen readers now call the search icon "Search commands" with the
shortcut, as they call the field; its tooltip stays "Search commands
and tools". paint_icon_button_named gives an icon button a name apart
from its tooltip.
- While a dialog is open the field and the icon are drawn disabled and
screen readers report them disabled, since a click on them does
nothing then.
- The titlebar test now checks that the field shows "Search commands" in
a wide window, and its comments describe the field.
- The fitting code and its tests call the community button's width and
flag `community`, and the new struct fields have doc comments.
- The new "Search commands" catalog rows move a few rows down, next to
"No recent commands" or "Switch workspace", away from the rows other
open pull requests change.
- The docs line says the app's existing rule for a focused control keeps
the app's keys off while the field has the focus, and that the
community button and Explore tutorials go at wider bars than they did
beside the icon.
- swatch.library.add lists a library pattern swatch that stands for a
swatch added earlier in the same call under existing, not twice
under added.
- An empty library file (.gpl, .ase, .vcswatches) loads as an empty
library again; only a document with no swatches is refused. A
PostScript file whose swatches are only the default ones is refused
like a .ai or .eps.
- The Swatch Libraries filter of Other Library… also lists .ait and
.epsf files.
- The library panel finds a loaded library's pattern swatch by looking
only at libraries that have pattern swatches.
- The Czech message for Copy to User Defined names pattern swatches.
- Color spelling in the new params text and comments; docs/mcp.md
rewrapped.
A Linear point picked near the end of another dimension's line landed
beside it when zoomed in: the tool's own pick skipped dimension artwork,
so that end pulled the point only within the Smart Guides tolerance,
while an anchor of the art pulls it from 8 pixels.
- With Smart Guides or Snap to Point on, a point that no anchor of the
art within 8 pixels takes lands on the end of a visible, unlocked
dimension's dimension line, or on the far end of its extension line,
within 8 pixels, with no link to that dimension. The end of an
extension line next to the point it measures is not an end, so an
anchor that a dimension already measures still takes the point.
- A point that nothing else places lands on the closest point of such
a line within 8 pixels, as it does on a segment of the art.
- With Smart Guides and Anchor/Path Labels on, a point on an anchor or
a line end shows the "anchor" label, and a point on a segment or line
shows the "path" label. A point on a line end is marked as an anchor.
- A press on a line end that moves a few pixels picks it, as a press on
an anchor does.
Docs: docs/dimensions.md, docs/target-app-parity.md.
A Group Selection marquee selected the anchor points inside it, as a
Direct Selection marquee does, so a path it crossed was only partly
selected. The Selection tool hides its bounding box while anchors are
picked, so after switching to it no box appeared around the objects.
The marquee now selects every object it touches, whole (members of
groups too, and with Shift it toggles them), as an Alt-drag marquee
with Direct Selection already does; a compound path it touches is
selected whole, as that marquee selects it. E during the drag still
selects only the objects entirely inside the marquee.
Fixes#8047
Preferences › Performance › Low-Latency Drawing (lowLatencyDrawing, off by
default) is read when the app starts and asks for wgpu's AutoNoVsync. The
present mode comes from --present-mode, then VECTORCRAFT_PRESENT_MODE, then
the preference, then the default; with the preference off and no override
the window surface is unchanged. The startup log names "(preference)" or
"(override)" after the mode.
Whenever the window presents without vsync, from the preference or an
override, main-window frames start at most 240 times a second (about
4.17 ms apart). The wait comes before egui reads the frame's input, and
the frame's time moves on by it. With vsync the display paces the frames
and no cap applies.
The checkbox shows on the desktop with the note that it applies the next
time VectorCraft starts. A value that is not a boolean is an error.
Fixes#6013
Swatches › Open Swatch Library › Other Library… read a document's
swatches without its pattern swatches, so a pattern from a .ai swatch
library came in only as the colors it uses.
- swatch.library.load keeps a document's pattern swatches, and keeps
the document for a library that has them. swatch.library.add brings
the pattern with its tile and art, as a pattern swatch with the
library swatch's name, placement and color group.
- The library panel draws those pattern swatches from their pattern.
- The Swatch Libraries filter of Other Library… lists .ai and .eps
files.
- A file with no swatches, and a .ai or .eps whose swatches are only
the default ones, are refused with "`<file>` has no swatches of its
own". Copy to User Defined refuses a loaded library with pattern
swatches, since a .vcswatches file can't hold them.
Docs: docs/mcp.md, docs/target-app-parity.md.
The magnifier at the right of the app bar becomes a field showing the
magnifier, "Search commands" and the Help › Search Commands… shortcut,
or no shortcut when it is cleared or too long to fit. A click on it, or
Enter or Space with the keyboard focus on it, toggles the command
palette as the shortcut does, and the palette's popup holds the text
field. While a dialog is open the field and the icon do nothing, as the
shortcut does; the icon used to open the palette over a dialog. Screen
readers name the field "Search commands" with the shortcut, and its
tooltip stays "Search commands and tools".
As the bar narrows, the community button goes first, then Explore
tutorials, then the field becomes the 28-point icon, then the workspace
switcher narrows to 64 points, then the icon goes. Safe Mode's label
keeps its room first. The order is the same as before, with the field's
collapse to the icon as a new step after Explore tutorials goes.
The canvas flattened a stroke's outline at 0.25 device pixels with chords
inside each curve, so a wide curved stroke's outer rim drew too light and
its inner rim too dark. A stroke at least 32 drawing tolerances wide now
draws each curve of its outline that spans 128 tolerances or more as lines
placed by its bend, with each line end moved outward by half the line's
bulge, so the lines lie on both sides of the curve. That is 8 and 32
device pixels at 25% and 1:1, and as little as just over 4 and 16 device
pixels at other zooms, where the cached outline's tolerance is the largest
power of two at or below a quarter device pixel.
At 25% zoom an 80 pt ring's worst edge pixel is 24 levels off the exact
coverage at the outer rim and 32 at the inner rim, where it was 54 and 61;
at 1:1 it is 30 and 29, where it was 64 and 58. Curve ends at corners,
lines and short curves stay on the curve. Outlines are cached per zoom
level as before, with refined and plain outlines kept apart.
Raster exports draw the same refined edges as the canvas. Fills, narrower
strokes, strokes with a width profile, strokes in an unevenly scaled view
and vector exports are unchanged.
Tests: render::tests::curvedstrokeedges and
longstroke::a_long_wide_curved_stroke_draws_the_same_pixels_outlined_near_the_view.
Save Changes now gives the group the same colors OK would: a color removed
with the Remove Color tool removes its swatch, and a color added with the
Add Color tool joins the group after its other colors, also when the art
holds colors of the group. `swatch.editGroup` takes `null` in `colors` to
remove the swatch at that place.
After the save, the rows follow the saved group, so a later edit or OK does
not remove or add a color a second time.