Commit Graph
21712 Commits
Author SHA1 Message Date
dotCooCoo bbc183f793 Tests: fetch a pinned public script corpus and report its headless pass rate
Part of #1210.

- `cargo xtask corpus --scripts` fetches 397 scripts and 1 included file
  from 19 MIT and Apache-2.0 repositories at pinned commits into
  corpus/scripts, each repository's license file beside its scripts.
  xtask/script-corpus.txt lists every file with its size and SHA-256; a
  download replaces the previous copy only when both match. One more
  candidate is listed as excluded because it is over the 1 MiB limit for
  one script. The fetch caps 64 MiB of scripts and 128 MiB of transfer,
  refuses `..`, absolute paths, reserved names, case-fold collisions and
  links, and holds a lock file while it runs.
- `cargo xtask corpus` takes at most one of --download, --affinity and
  --scripts, and refuses other arguments with the usage text.
- `cargo xtask scripts --pass-rate [--report <path>]` runs each script in
  a process of its own (the ignored `row` test in
  crates/engine/tests/script_corpus.rs): a new document, 5,000,000
  instructions, no dialog answers, file reads only in the script's
  repository folder and a new folder of its own, file writes only in that
  folder, stopped after 10 seconds. It writes a JSON report with the pass
  rate overall, per repository and for scripts without dialogs or
  windows, how many parse, and each script's outcome, with local folders
  removed from messages. Script failures never fail the command, and
  without the corpus it prints a skip line and exits 0.
2026-11-20 16:47:30 -08:00
dotCooCoo b501ea0222 Docs: the File formats rows leave out blends a saved .ai keeps live
Since #8289 a saved .ai's editing copy keeps live the blends the .ai
reader opens with their settings and as they are drawn. The three File
formats rows in docs/target-app-parity.md still listed every live
object other than four graph types as read back as art. They now name
those blends as kept live too. Blends written as their steps stay in
the gap, and file-format-parity.md lists them.
2026-11-20 16:44:28 -08:00
dotCooCoo 91e2551f47 Kinsoku sets: tests for pasted type and shaped lines under a custom set
Pasted type whose custom set was edited after the copy is checked against
a fresh layout by its line ends, which move from A to B while the line
count stays the same, so the test fails without the relayout in Relink.

The every-line composer's first-word measure is checked in a frame whose
top is narrower than the word the custom set's Cannot End Line makes, so
the test fails when that measure uses the built-in setting instead.
2026-11-20 16:38:04 -08:00
dotCooCoo 1e18a7e9fc i18n: Indonesian translates the banner hem and grommet errors and the save failure
Indonesian joined the complete-message languages on main, so it needs the
twelve banner and recovery rows the other complete catalogs carry.
2026-11-20 16:31:59 -08:00
dotCooCoo d3985afb34 i18n: the message scan reads string escapes the way Rust does
The untranslated-strings scan kept only the letter after a backslash for
every escape other than \n, \t and a line continuation, so a message with
\r, \0, \x41 or \u{e9} was checked against text the program never shows.
It now decodes every character escape the Rust Reference lists
(https://doc.rust-lang.org/reference/tokens.html#character-escapes), and
leaves out a literal whose escape Rust rejects, such as \q, \x80 or
\u{D800}, instead of building a key from it.

The interface-string and message dumps are byte-identical before and
after the change, so no catalog row matches differently.
2026-11-20 16:21:13 -08:00
dotCooCoo 5721f96931 Expand Appearance: Safe Mode checks symbol art that a group's raster effect draws
A plain symbol instance does not expand on its own, so the Safe Mode
plug-in check skipped its symbol's art. When a group or layer around the
instance has a raster effect (its own, or on one of its fills or
strokes), the group's image draws that art, plug-in effect included, and
Expand Appearance committed pixels without the plug-in effect instead of
returning the Safe Mode error. The check now looks into every object of
such a group or layer, symbol art included.
2026-11-20 16:14:07 -08:00
dotCooCoo 8d0a50ffa0 Type: Show Hidden Characters and Auto Spell Check list the type once per revision
Both overlays visited every object of the document in every frame to find
its type. They now draw from one list of the active document's text
objects, kept for the document's uid and revision, so a frame that changes
nothing visits only the type. An edit, Undo, Redo or a switch to another
document makes a new list, and the canvas drops the list while it draws
neither overlay.

Show Hidden Characters no longer draws marks over type in a hidden group or
layer, which the canvas does not draw. Auto Spell Check already left such
type out.
2026-11-20 16:10:38 -08:00
dotCooCoo 0ddd5539ad Transform: Polygon Properties' Sides row has a 3 to 20 slider beside the field
The Sides field of Polygon Properties (Transform panel, the Properties
panel's Transform section and the task bar's Shape Properties) gets a
slider after it over 3 to 20 sides, as the help page describes
(https://helpx.adobe.com/illustrator/using/live-shapes.html); the field
still takes 3 to 1000.

- A drag previews the count through object.setLiveShape {sides} and its
  release adds one undo step, none when it ends at its starting count.
  Escape during the drag puts the count back. A click or an arrow key on
  the rail sets the count in one undo step.
- A count above 20 shows the handle at the rail's right end; the field and
  screen readers show the real count until the rail moves.
- A drag whose rows stop being drawn keeps its preview as one undo step at
  the end of that frame.
2026-11-20 16:02:34 -08:00
dotCooCoo 7884babf0a Path Precision Tools: the Tangent Circle Tool finds both circles where two second segments touch close together
With a radius, each second segment is searched on its own, and each
circle is then checked against all of them. Before, one search over the
nearest of the second segments found one circle where two segments
touched circles between the same two places tried along the first
segment, so the tool could not pick the other.

Follows #8526.
2026-11-20 16:00:24 -08:00
dotCooCoo c4e360fec2 Align: align.toSelection returns "artboard" only for one object with no anchor points selected
The align.toSelection params text and docs/mcp.md said the command
returns "artboard" while one object is selected. With anchor points
selected (Direct Selection) it returns "selection", because the points
align to each other, and with the Artboard tool chosen it returns the
stored choice, Selection. The texts now name both cases, and
crates/mcp/src/ui_catalog.rs is regenerated with cargo xtask ui-commands.

A test covers two anchor points of one path selected while Artboard is
the stored choice.
2026-11-20 15:57:41 -08:00
dotCooCoo f7555d088b Links: test Show in Folder with two images selected
With two images selected, Link Info shows the first selected one, while
the list puts the other (on top) first. The test clicks Show in Folder
in that state and checks that only the file of the image Link Info
shows is handed to the file manager.
2026-11-20 15:57:31 -08:00
dotCooCoo 9455a3f10e Dimension: a first Linear point keeps its link when the art moves before the second click
A first point picked on a corner of a path's preview bounds was linked to
the path only at the second click, by fitting the coordinate from the first
click to the path's anchors as they were then. When the path moved in
between, the dimension measured from where the corner had been: picking the
upper-left corner of a stroked rectangle, moving the rectangle 20 points
right and picking its upper-right corner measured 121 points instead of 101.

The tool now records the first point's link at its click (held against the
corner's path, or on the segment under it) and keeps that link for the
dimension while it still resolves. The first point, the rubber band, Shift
and the dimension start from where the art puts the point now, and a first
point on an anchor follows its anchor the same way. A link that no longer
resolves falls back to the point as picked.
2026-11-20 15:56:57 -08:00
dotCooCoo 2ea35324b7 Pathfinder: Outline of a compound shape with no fill adds no stroke of its own
The paint source for a compound shape's area held every painting item of
the shape, strokes included. When the shape had no fill, Outline fell
back to that stroke and gave the edges a 1 pt stroke in its paint, while
the shape's own appearance stroked the result again. The area now takes
only the shape's top painting fill, so an unfilled compound shape's
Outline edges carry no paint of their own.
2026-11-20 15:53:47 -08:00
dotCooCoo 664e73cf19 Merge main into fix/banner-hem-and-grommet-messages-and-saving 2026-11-20 15:53:44 -08:00
dotCooCoo 34c961a5ce Tests: the widget order benchmark checks editability once in its baseline
The baseline of widget_order_perf kept the selection's editable objects and
then asked each widget about the whole selection in the same document, so a
widget that checks editability itself (corners of any path on 128 rectangles
on a locked artboard) measured each object twice. The baseline now asks the
widget about the kept objects in a copy of the document with everything
editable, as the_widgets_are_the_same_as_when_editability_came_first does.
2026-11-20 15:49:07 -08:00
dotCooCoo f88a6b5877 Eraser: a drag's outline takes the tip halfway along each step in two more cases
The outline of an Eraser drag takes, at each step, the tip the pen gives
halfway along it, as path.eraseRegion erases. Two cases still used the
tips at the step's ends:

- A round tip whose Size follows the pen drew each step as wide as the
  mean of the tips at its ends. Where an end is held at the 0.1 pt least
  size, that mean differs from the tip halfway along: with Size 10 pt on
  Pressure by 20 pt, a step from no pressure to full pressure showed
  15.05 pt wide where the release erases 10 pt.
- A pen turned or tilted in place at the last point updated the last
  step only when the tip at that point changed. With Size 10 pt on Tilt
  by 20 pt, tilting from 80 to 85 degrees after an upright point keeps
  the end tip at 0.1 pt while the tip halfway along goes from 12.22 pt to
  11.11 pt, and the outline kept the old one. The area outline now keeps
  and compares the tip halfway along the last step.
2026-11-20 15:47:54 -08:00
dotCooCoo adda7c1c6e Tests: font changes on other threads wait while a Type layout count runs
The Type overlay layout-count tests in vectorcraft-tools held a read lock
that only tests which add fonts or change hyphenation exceptions take for
writing. Other tests still load system fonts on demand (a fallback for a
character no loaded font covers, a cataloged family on first use), which
changes FontDb::global()'s generation, the key of every kept frame layout.
type_overlays_keep_at_most_frame_layouts_max then laid out 2051 frames
instead of 2 in 18 of 21 full `cargo test -p vectorcraft-tools --lib`
runs on Linux.

vectorcraft_text::test_fonts::steady_fonts (test and test-fonts builds
only) now holds back font changes on other threads: adding faces, a
rescan and setting or removing a composite font wait before they publish
anything. A first scan does not wait, and steady_fonts catalogs the
database before it returns. steady_layout_inputs() takes it for the
global database. With it, 0 of 20 full runs failed.
2026-11-20 15:40:31 -08:00
dotCooCoo 830cf56430 Save for Web: Save Color Table and Load Color Table write and read .act files
The color table's menu gains Save Color Table… and Load Color Table…,
as the help page describes
(https://help.adobe.com/archive/en_US/illustrator/cs4/illustrator_cs4_help.pdf#page=404).

- document.exportForWeb.saveColorTable writes the GIF or PNG-8 table the
  preview shows as a color table file in the published layout
  (https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/): 256
  RGB entries in file order, zero-padded, then the color count and the
  transparent index, two bytes each, big-endian (65535 for none). It
  always writes 772 bytes and writes shifted colors as written.
- webExport.loadColorTable reads the 768-byte and 772-byte forms and
  returns the settings with the file's colors, other than the transparent
  entry, as the fixed Custom palette and Colors set to the file's count.
  The table's other edits and its sort are cleared and Web Snap is set
  to 0, so the loaded colors are written as they are. It reads at most
  773 bytes, rejects other sizes, counts of 0 or above 256, both or
  neither of path and dataBase64, and JPEG or PNG-24, and remembers
  nothing. Load Color Table… is disabled on the web.
- document.exportForWeb.preview rejects a slice that is not a whole
  number from 1 up instead of ignoring it.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-20 15:38:27 -08:00
dotCooCoo 4ed194779e Type: tests check where the Single-line Composer sets lines around text wrap
composer_x_mixed_sizes_around_text_wrap and
composer_x_mixed_sizes_overflow_around_text_wrap compared only the
Single-line Composer's line texts with the Every-line Composer's. Both
tests now run their room, overflow and wrap-object checks on each
composer, so a Single-line layout that breaks the same lines but sets a
span past its room or into the object fails.
2026-11-20 15:37:59 -08:00
dotCooCoo 5c46288a71 i18n: file pickers name Tracing presets, Action sets and Composite fonts in every language
The Edit > Tracing Presets... Import and Export pickers and the save
panel showed the Tracing presets, Action sets and Composite fonts file
types in English in every language: no catalog had a row for them.
Each catalog now has a file-filter row for the three, made from its
own Tracing Presets, Action Set and Composite Fonts terms, and the
Gujarati catalog gains its missing Perspective grid presets row.

The Hindi file-filter block also names Export presets as a noun
instead of as an instruction, and All readable files in the plain
plural form.

save_panel_file_types_are_in_complete_catalogs checks that every
complete catalog translates each file type in the save panel's list.
2026-11-20 15:34:06 -08:00
dotCooCoo e60afb9ea3 Path Precision Tools: the Tangent Circle Tool leaves out a circle that would reach past the canvas
A circle tangent to two segments near the canvas edge could show in the
preview and then fail on release, because `shape.circleThroughPoints`
refuses a circle that reaches more than 4,000,000 pt from the origin.
The tool's check of the three points now goes through
`circle::circle_of`, which applies the same bounds, so such a circle
counts as no circle: the note shows, a click draws nothing and the first
segment stays picked.
2026-11-20 15:28:58 -08:00
dotCooCoo 14e22a1dff Mesh: a Lasso click that deselects also unpicks the mesh points
A plain Lasso click away from the art deselects everything but kept the
mesh points the tool held, so the Mesh tool chosen next showed the
deselected points as picked, nudged them with the arrow keys and
recolored them with a fill color. The click now unpicks them. Shift and
Alt clicks still change nothing.

docs/target-app-parity.md also lists the Eyedropper among the tools that
keep the picks, and docs/mcp.md describes the Lasso click.

Test: a_lasso_click_that_deselects_unpicks_the_mesh_points in
crates/engine/src/tests/mesh_picks.rs.
2026-11-20 15:28:27 -08:00
dotCooCoo 55611881a4 Docs: a blurred 3D shadow expands to an image
The 3D shadows section of docs/mcp.md said Expand Appearance keeps the
shadow as a path. Since #7761 a shadow blurred by the first light's
Softness expands to an image; only a hard shadow stays a path, as
docs/three-d.md already says.
2026-11-20 15:23:48 -08:00
dotCooCoo 662acb72ff Dimension: pointer moves read a compound path's members once per revision
With Use Preview Bounds on, every pointer move near a corner of a
compound path's preview bounds scanned all of its members to find the
one holding that corner. A compound with tens of thousands of members
cost one visit from the walk budget and then a full member scan on
each move.

- The holder of each of the four corners is found in one pass over the
  members when the compound is measured, and cached with the bounds
  for the document's revision. Later moves read it from the cache.
- Measuring an object not yet measured (its geometric bounds, its
  preview bounds and its holders) counts its members against a
  separate limit of 20,000 per move. An object with more members than
  are left gives no corner on that move, and nothing is cached for it.
2026-11-20 15:23:41 -08:00
dotCooCoo 4051d6c9ca Command Palette: docs state the order for two typo words
With more than one query word matched through a typo, a result whose
label holds every such word comes first, and then the other words'
grades and how many such words the menu path holds decide. Two results
that hold the two words in label and menu path the other way round tie
on these grades.
2026-11-20 15:17:45 -08:00
dotCooCoo ef9d602240 Docs: name the clipping path tolerance and the distorted image case on Update Links
A clipping path counts as changed in the document when an anchor or handle moves by a thousandth of a point or more, and links.update leaves a distorted image's clipping as it is.
2026-11-20 15:16:47 -08:00
dotCooCoo 5ca427ff2d Dimension: a guide member of a compound path does not hold a preview-bounds corner
With Use Preview Bounds on, the member of a stroked compound path whose own
box reaches nearest a corner holds the Linear point placed there. A
visible, unlocked member made into a guide could hold it, so the dimension
was linked to the guide, although paths made into guides give no corners.
A guide member now gives no corner, as a hidden or locked member does.
2026-11-20 15:15:06 -08:00
dotCooCoo a82de18956 Symbols: in Draw Behind a placed instance goes directly below the selection
symbol.place, symbol.placeFromDocument and symbol.addFromLibrary with
`place` now read the drawing mode: in Draw Behind the new instance goes
directly below the selected object, or at the bottom of the current
layer when nothing is selected, as the help page describes for placing
symbols
(https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/learn-drawing-basics/drawing-modes-overview.html).
Place Symbol Instance in the Symbols panel and a symbol dragged onto
the canvas from the Symbols panel or a symbol library all go through
these commands.

VectorCraft's own rules: with several objects selected the instance
goes below the bottommost one, a selected path in a compound path puts
it beside the compound path, and a clipping path stays at the bottom of
its clip group or clipping layer. Draw Normal and Draw Inside keep the
instance on top of the current layer, and a locked or hidden layer
still refuses it with no edit.
2026-11-20 15:14:53 -08:00
dotCooCoo 7703c42c31 OpenType: Proportional Metrics in the panel menu with the East Asian options
With Show East Asian Options on, the OpenType panel menu has a
Proportional Metrics item before H or V Style. The help page
(https://helpx.adobe.com/illustrator/using/formatting-asian-characters.html)
lists it among the OpenType panel options that this setting shows.

The item sets the proportionalMetrics character attribute that the
Character panel menu's item sets (palt in horizontal type, vpal in
vertical type), through text.setFormat for selected type and
text.setRangeStyle while the Type tool edits text. It is checked when
every character it changes has the attribute, read like H or V Style
and Roman Italics (at a caret, every character of the text), and a
click turns it on for all of them, or off when checked, in one undo
step. It is disabled with no type selected. Its place in the menu and
the check rule are VectorCraft's own.

Docs: docs/target-app-parity.md, docs/type-parity.md, docs/mcp.md.
2026-11-20 15:08:28 -08:00
dotCooCoo 125ab66348 Selection: on-canvas widgets check an object's kind before its editability
The type, pie, side count and corner widgets, the Objects on Path, Mirror,
Grid and Radial Repeat controls, the Image Trace Split divider and the
center point now check that a selected object is of a kind that has the
widget before asking whether it is editable. With an artboard locked, the
editability check measures the art of the layer object holding the object,
so a large selected group of another kind was measured on every repaint and
pointer move. The widgets shown are the same.

A test-only counter (vectorcraft-doc feature locked-artboard-count) counts
those measurements; widget_order_tests checks that objects of other kinds
are not measured, compares every widget with the editability-first result
on a mixed document, and holds an ignored timing test, widget_order_perf.
2026-11-20 15:03:29 -08:00
dotCooCoo 5c9b0004fe Command Palette: docs order typo matches by the field the word is met in
Among results matched through a typo, the ranking key compares the typo
grade (a word met in the label grades better than one met in the menu
path) before the other words' grades and the label's length, so two
results can come in a different order than the word spelled right gives
them. The paragraph now states that order.
2026-11-20 15:02:41 -08:00
dotCooCoo d9dba9c467 Legacy .ai: gradient definitions are found by a key of their gradient
Each gradient fill looked for its definition by comparing its gradient
with every definition written so far, so a document with thousands of
distinct gradients spent most of the export in these comparisons.

The writer now keeps each definition's place under a key made from
every field of its gradient, the same key the editing data's writer
uses, which moves to a module both writers share. Each candidate under
a key is still compared in full, and the first equal definition in
definition order is used. Spot color names, written spot colors and
fonts are also found through maps and sets, while the lists the file is
written from keep their order. The written file is unchanged, byte for
byte.

On Linux, writing 10,006 gradient fills (5,000 distinct and 5,000 of 50
others) took 79 ms of thread CPU time through the index and 291 ms
comparing each definition in turn (median of 7 runs, release build).
2026-11-20 15:02:27 -08:00
dotCooCoo eb5635d040 Docs: Relink and Update Links keep a clipping mask edited in the document
The PSD clipping-path entry said that links.update and links.relink leave
a plain group whenever the new file names no clipping path. A clip group
whose clipping path was changed in the document, and a clipping mask made
in the document, are kept when Placement Options do not clip the image:
a new file with no clipping path leaves the mask clipping the image, and
a new file's clip group goes inside the mask.
2026-11-20 15:02:12 -08:00
dotCooCoo 0a33781158 Links: the Unembed code comment names TIFF among the stored formats
An image that keeps CMYK inks is stored as TIFF, and Unembed writes it as a .tif file when the path has no extension. The comment above the format choice now lists TIFF with PNG, JPEG, GIF and WebP.
2026-11-20 15:02:06 -08:00
dotCooCoo 073a654e6a Packaging Tools: list Set Fold Angle's angle with the angles that are not turns
The turn-direction test asks every angle param to say whether it turns
clockwise or counter-clockwise. A fold angle folds a panel out of the
page; the command's description says a positive angle folds it away
from the printed side and a negative one toward it. The test now lists
the param with the other angles that are not turns.
2026-11-20 14:46:11 -08:00
dotCooCoo 2d0389c8fd Gradient: moving out of a freeform object ends the Lines mode line
In freeform Lines mode, moving the pointer out of the object and back
now ends the line being drawn, so the next click on the object starts a
new line. The help page describes this way of starting another line in
the same object:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=262

The line ends on the first pointer move, with no button held, that
leaves the object. The object counts as its path's area inside any
clipping masks above it, plus its own painted art (stroke, glyphs);
other art lying over it does not end the line, and outline view, a
layer with Preview off and the path-only selection preferences do not
shrink the area. Escape and a click off the art still end the line.
2026-11-20 14:44:44 -08:00
dotCooCoo a321546b4a Links: the Location row in Link Info has a button that shows the file in its folder
Link Info's Location row gets a folder button, Show in Folder, that runs
links.reveal with the id of the image Link Info shows, so the system's
file manager opens that file's folder. The button is off while the file
is missing and when no file manager is available (the web build). An
embedded image has no Location row and no button.

The help page describes a folder icon on this row that opens the file's
folder: https://helpx.adobe.com/illustrator/using/links-info.html
The button's name and its off state are VectorCraft's own.
2026-11-20 14:40:50 -08:00
dotCooCoo a04159b287 Graphic Styles: Redefine Graphic Style keeps the own style of a path inside a series group linked to the target
graphicStyle.redefine passed the redefined style to every path directly in a
graph series group linked to it, and to every line and label of a linked Axes
or Legend group, so a member linked to another style (the `from` style or a
third one) was restyled and relinked to the target. Such a member now keeps
its look and its link, in the `from` and the object forms; unlinked members
and members still linked to the target follow as before. The group is still
cleared and unlinked, and one undo takes it all back.
2026-11-20 14:39:10 -08:00
dotCooCoo 7048d47a0a Merge main into feat/retype-installed-fonts 2026-11-20 14:36:46 -08:00
dotCooCoo d30f0e8c52 Merge main into fix/followup-8269 2026-11-20 14:34:47 -08:00
dotCooCoo e5380cd796 Tabs: a position typed in X or Y adds a stop when the paragraph has none
When the shown paragraph has no tab stops and no indent marker is
selected, a position typed in the Tabs panel's X field (Y in vertical
type) and committed with Enter now adds a stop there with the chosen
alignment and selects it, in one text.tabs.set and one undo step, as a
click on the ruler does. Before, the typed value was dropped. The
archived user guide gives typing a position as another way to set a new
stop:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=521

The typed value keeps its hundredths of a point and is read in the
General unit unless it names another unit. A negative position becomes
0 pt and a position past 100,000 pt adds nothing; these are VectorCraft's
own limits. With the Selection tool on several texts, the new stop is
set on every selected text, as a ruler click already does.

The ruler click and the typed position share one helper, so a click
whose text.tabs.set fails no longer moves the selection.
2026-11-20 14:34:28 -08:00
dotCooCoo d1b2fb9de5 Merge main into fix/select-widget-drags-settle 2026-11-20 14:34:25 -08:00
dotCooCoo 691201b748 Layers: a layer or sublayer with all its art selected shows the full-sized square
The selection square of a layer or sublayer is full-sized while all of its
visible, unlocked art is selected, and small while only some of it is. Hidden,
locked and template art does not keep the square small, a group counts as one
item (a selected member is not the group), and a layer with no such art shows
no square. Group rows are unchanged.

The panel finds these layers once per frame, in one pass over the layers and
their direct children, and the untargeted target circle of a layer reads the
same set.

Help page: https://helpx.adobe.com/illustrator/desktop/manage-layers/create-and-organize-layers/layers-overview.html
2026-11-20 14:30:03 -08:00
dotCooCoo 3023335b59 Mesh: picked points stay picked between the mesh-point tools
Gradient mesh points picked with the Mesh tool, Direct Selection, the
Lasso or the Polygonal Lasso now stay picked when another of these tools
is chosen, and when one of them lends Direct Selection for a Cmd/Ctrl
click, so a fill color chosen afterwards recolors just those points.
Before, only a switch to or from the Eyedropper kept them. Any other
tool, Group Selection included, drops them.

Session::switch_tool, lend_selection_tool and give_back_tool share one
test of which tools pick mesh points. Giving the tool back leaves the
lender's picks alone when they did not change, so the Mesh tool keeps
the point whose handles it shows.

Tests: crates/engine/src/tests/mesh_picks.rs.
Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-20 14:14:48 -08:00
dotCooCoo 4df75635da Tests: a confined single-file PDF of several artboards checks every artboard it carries
A single-file PDF with Preserve Editing of an artboard range carries the
whole document, so a confined export of it checks the links on every
chosen artboard. The new test exports artboards 1-2 as one PDF, then
places an image linked outside the read roots on the second artboard
only and checks that the export is refused without writing its folder.
It also checks that assets.export refuses pdfs `single`, the source
that pdfs `single` does not accept.
2026-11-20 14:14:26 -08:00
adambelis c871e7858a Width profiles: only reuse points that lie inside the segment
Boundary points alone cannot show whether the width bends inside a segment:
two collinear vertices on the segment's ends let a single midpoint probe
accept a curve that leaves the chord nearer the ends. Require a flattened
point strictly inside the segment, and cover it with collinear vertices at
both boundaries of the rising span in the regression test.
2026-11-20 22:52:18 +01:00
adambelis ccd107d344 Width profiles: measure a wrapped window where its widths wrap
Two follow-ups from the review of #8846. A profile segment with no flattened
point of its own is a straight run, and a single midpoint probe can match the
chord while the curve leaves it nearer the ends, so let the sampler measure
it. A window past the seam of a closed path (a dash crossing it) probed
profile positions past 1, where the widths wrap; shift the probes to the
window's own positions, as the sampler already does.

Both have a regression test that fails without its fix.
2026-11-20 22:35:12 +01:00
adambelis b333a0b23e Width profiles: judge a segment's samples by its own flattened points
Whether a profile segment can reuse the flattened path's points was decided
from the whole subpath's point density, so a long straight run beside a
densely flattened curve counted points it did not have: the run drew its
width as one straight chord across the segment. Compare the width curve
with the points inside the segment instead, and keep reusing them where
they already follow it.

Reported in review of #8846. A 200 pt line whose second half is 128
collinear pieces now draws the same lens outline as the two-segment line
(1167.2 pt² against 1168.3 pt²), where the density shortcut left it at
1000.6 pt².
2026-11-20 20:05:23 +01:00
ruchirguitar 6bca6cb51e Variables panel: add row context menu 2026-11-21 00:18:56 +05:30
Dylan M. Taylor 063f550802 doc: share CMYK TIFF read and write (#8751)
* doc: share CMYK TIFF read and write

* doc: fix craft_image_codecs encode/Image/Truncated calls and fmt

* cmyk: decode TIFF samples from the metadata directory

* doc: guard TIFF metadata tag sizes before decoding CMYK source

* doc: fix TIFF metadata preflight scan bound and repin craft-libs

* test(doc): distinguish shared craft-image-codecs CMYK TIFF read/write

* test(doc): pass written.bytes.as_slice() to Cursor

* chore: restore origin/main craft-libs pin (d7c9632bfb)
2026-11-20 12:45:50 -05:00