Commit Graph
19746 Commits
Author SHA1 Message Date
dotCooCoo f4f9fea582 Merge main into feat/palette-empty-search-recent 2026-11-16 17:45:40 -08:00
dotCooCoo 677d8a8c82 Docs: one Recent Commands line for the merged code 2026-11-16 17:45:16 -08:00
dotCooCoo f84fc7a6ae Packaging Tools: Fold Preview's White inside stays white beside a swatch named #ffffff
The built-in White inside is stored as an empty value instead of #ffffff, so a
swatch named #ffffff no longer replaces it. ui.foldPreview takes an empty
inside for white; a swatch's name still comes before a #rrggbb that reads the
same.
2026-11-16 17:44:20 -08:00
dotCooCoo 0314bd18cf Merge feat/palette-clear-recent into feat/palette-clear-counts
# Conflicts:
#	docs/target-app-parity.md
2026-11-16 17:42:43 -08:00
dotCooCoo 9ddfc2e00f Path Precision Tools: shallow crossings are placed where the paths meet
The crossing search splits curves into pieces until each lies within
0.0001 pt of its chord, and takes the place where two chords cross.
Where a line meets an arc at under a degree, that place sat up to
0.025 pt along the arc from the real crossing, so Trim at Crossings,
its hover and Add Points at Crossings cut there.

Each place found is now moved onto both curves with Newton's method on
a(s) = b(t). The move is kept only when it stays within both segments,
ends closer than 1e-9 pt, and moves no farther than a piece bent by
0.0001 pt can shift a crossing at that angle; otherwise the place stays
as it was.
2026-11-16 17:42:19 -08:00
dotCooCoo d63decba34 Merge feat/palette-use-counts into feat/palette-clear-counts 2026-11-16 17:42:08 -08:00
dotCooCoo e6d70c2591 Merge main into feat/palette-recent-rank 2026-11-16 17:39:57 -08:00
dotCooCoo 6dae0b77e5 Merge main into feat/webp-lossy-quality 2026-11-16 17:39:20 -08:00
dotCooCoo a0e8356a35 Merge main into feat/palette-dimmed-rows 2026-11-16 17:39:04 -08:00
dotCooCoo c07dabaa1d Merge main into feat/help-search-commands-first 2026-11-16 17:38:54 -08:00
dotCooCoo fb6e90c532 Merge main into feat/palette-clear-recent 2026-11-16 17:38:51 -08:00
dotCooCoo d99ac76c0e Merge main into feat/app-bar-search-field 2026-11-16 17:38:41 -08:00
dotCooCoo 423537497e Command Palette: Clear Recent Commands also empties the pick counts
Clear Recent Commands (help.clearRecentCommands) now empties the pick
counts that rank the results, with the recent list and the saved ids.
command_list reports it as enabled while a pick or a count is saved.

- A pick from the search is counted when Recent Commands records it,
  before it runs, so a pick of Clear Recent Commands is cleared with
  the rest and is not counted afterward. A refused pick puts the counts
  back as it puts the list back.
- The command's params text, docs/mcp.md and the two lines in
  docs/target-app-parity.md say so; crates/mcp/src/ui_catalog.rs
  carries the same params text.
- Test: clear_recent_commands_also_clears_the_pick_counts.
2026-11-16 17:37:51 -08:00
dotCooCoo 4b2868bd07 .ai save: the editing copy keeps live blends
The editing copy of a PDF-compatible .ai wrote every blend as its steps.
Blends the .ai reader opens live are now written live:

- The blend's key objects and, when it has a spine of its own, its
  spine are written as a group on hidden lines, each key's dictionary
  naming it a key and its id and the spine's naming it the spine. Its
  steps follow as a group, then the Path Blends record of its spacing
  (Smooth Color, Specified Steps, Specified Distance with its distance),
  orientation (Align to Page, Align to Path) and keys, then its
  dictionary (name, text wrap options, variables) and its opacity and
  blending mode as a group's after its end. A spine edited on the canvas
  is written with each key's anchor on the key. A replaced spine is
  written with an anchor where each key sits, so it opens with those
  anchors and lays out the same steps.
- Each blend is checked with the reader's own reading before it is
  written, and the blends together against the objects the reader lays
  out in one file. Written as their steps with a warning: blends with
  easing, a color shift or start points; with effects, an appearance or
  an opacity mask of their own; of objects other than paths, compound
  paths and groups, of clipping groups, of more than 62 key objects, of
  hidden keys or keys holding a blend; of keys with geometry or
  Pathfinder effects or a group's own fills and strokes, which the
  editing copy writes as their result; of keys the editing copy would
  change otherwise (empty paths or subpaths, paths and compound path
  members of several subpaths, several fills or strokes, strokes a plain
  line can't draw, dashes of more than 64 lengths, hidden fills or strokes, fills or strokes other than
  a color, in a Lab color or with transparency or effects of their own,
  effects, opacity masks); blends where one key has a fill or stroke of
  no paint or a stroke of no width and another has one that draws;
  blends whose spine has more than one part;
  blends whose step count is close to where rounding the written
  coordinates and colors changes it; blends the reader would open with
  other settings or not as drawn; blends inside objects with geometry or
  Pathfinder effects or a group's own fills and strokes; blends in
  opacity masks, pattern tiles, symbols and art cut to a clipping object
  or nested eight levels deep in art written in place of other objects;
  blends whose art would pass the most objects the reader reads; and
  every blend on a large canvas.
- The steps set their own transparency and lock and hidden state after
  the hidden lines, for readers of the printed form.

Each construct is written in the form the .ai reader reads (blend.rs,
read/document.rs blend roles, read/containers.rs end_blend, read/ops.rs
XP and transparency), and every object written counts toward the
reader's object limit as the reader counts it. The record's orientation
word and a blend with no spine part are read as #8243 reads them.

Blend Options, key objects and spines:
https://helpx.adobe.com/illustrator/desktop/manage-colors/apply-transparency-and-blending/blend-options-overview.html
https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=260

Tests: the round trip of blends of each spacing and orientation, with
no spine of their own, an edited spine and replaced curved spines,
named, at half opacity, hidden and locked, with text wrap options, of
compound paths, of groups and of 62 keys, each laying out the same steps
as the document's blend; the record's words (Align to Path's angle
included) and the dictionaries; the steps' own state after the hidden
lines; the same bytes on a second write; each case written as its
steps, with as many steps as are drawn, where they are drawn (among
them Specified Distance 0.03 pt from where its count changes, on a
spine of 200 segments, which comes back live on a spine of two); blends in
pattern tiles, opacity masks, symbols, art cut to a clipping object and
eight levels down; the object limit; the reader's blend limit; a large
canvas; fuzz cases for damaged written blends.

Docs: docs/file-format-parity.md.
2026-11-16 17:31:04 -08:00
dotCooCoo 5b5b3cf75c Merge main into feat/packaging-fold-preview 2026-11-16 17:27:15 -08:00
dotCooCoo a127200ec5 Command Palette: the pick-count reader and ranking test describe what they do
The saved-count reader's doc comment follows the other preference readers and links the UiState field, and its import moves to the top of the function. The ranking test's comment says why it uses a document with art selected.
2026-11-16 17:25:12 -08:00
BFlat db23daa318 Merge pull request #8059 from dotCooCoo/fix/find-font-escape-dropdown
Find Font: Escape over an open list closes only the list
2026-11-17 08:20:54 +07:00
BFlat edb2e447ce Merge pull request #8084 from dotCooCoo/fix/issue-8041
Fix #8041: the Swatches panel shows no Recent Colors or Swatch Tiles heading
2026-11-17 08:20:46 +07:00
BFlat 95aede8b49 Merge pull request #8195 from dotCooCoo/feat/trim-crossings-knife-flyout
Trim at Crossings: the tool is in the Scissors tool's flyout and shows a knife cursor
2026-11-17 08:20:36 +07:00
BFlat c8870d5bd6 Merge pull request #7998 from dotCooCoo/feat/palette-compact-rows
Command Palette: compact rows in a shorter list that scrolls and says how many matched
2026-11-17 08:20:27 +07:00
BFlat 3e1a6f7e51 Merge pull request #8072 from dotCooCoo/fix/ai-editing-perceptual-stops
AI editing data: a Perceptual gradient is written with the stops on its curve
2026-11-17 08:20:18 +07:00
BFlat 5232789973 Merge pull request #8076 from dotCooCoo/fix/export-screens-pdf-bleed
Export for Screens: Include Bleed keeps a PDF page's TrimBox at the artboard
2026-11-17 08:20:09 +07:00
BFlat 84a8d781fc Merge pull request #8043 from dotCooCoo/fix/issue-8024
Eyedropper: Escape ends a gradient stop's or Key Color's pick and returns to the previous tool
2026-11-17 08:20:01 +07:00
BFlat 3547934a09 Merge pull request #8186 from dotCooCoo/perf/variables-panel-rows-per-revision
Variables: the panel builds its rows once per document version
2026-11-17 08:19:53 +07:00
BFlat 1b14abbcdb Merge pull request #8080 from dotCooCoo/perf/curved-stroke-edges
Render: wide curved strokes draw their rims closer to the curves
2026-11-17 08:19:45 +07:00
BFlat b99a5cf798 Merge pull request #8091 from dotCooCoo/fix/issue-8047
Selection: a press on members picked with Group Selection drags only them
2026-11-17 08:19:37 +07:00
BFlat 7c65af31ce Merge pull request #8067 from dotCooCoo/feat/align-3d-preview-bounds-1302
Use Preview Bounds: Extrude & Bevel, Revolve, Inflate and Rotate are measured by their 3D art
2026-11-17 08:19:29 +07:00
BFlat 2510109da1 Merge pull request #8100 from dotCooCoo/perf/brush-targets-dedup-set
Brushes: brush_targets drops repeated paths with a set instead of a linear search of its output
2026-11-17 08:19:20 +07:00
BFlat 79d2536e8e Merge pull request #8089 from dotCooCoo/fix/issue-8063
Part of #8063: Dimension tool points snap to drawn dimensions and show anchor and path labels
2026-11-17 08:19:12 +07:00
BFlat f619888fe2 Merge pull request #8074 from dotCooCoo/feat/intertwine-layers-drop
Layers: dragging objects into an Intertwine group adds them to it
2026-11-17 08:19:04 +07:00
BFlat 374ff5b8c3 Merge pull request #8191 from dotCooCoo/fix/fold-check-per-document
Packaging Tools: each document keeps its own Check Fold Lines result
2026-11-17 08:18:55 +07:00
BFlat 05c7e0d559 Merge pull request #8071 from dotCooCoo/feat/type-on-path-desired-spacing
Type: type on a path takes Justification's Desired spacing and glyph scaling
2026-11-17 08:18:47 +07:00
BFlat be60816347 Merge pull request #8046 from dotCooCoo/perf/svg-glyph-shared-document
SVG glyphs: a glyph from a shared SVG document reads only what it refers to
2026-11-17 08:18:39 +07:00
BFlat f8855d748a Merge pull request #8054 from dotCooCoo/fix/swatch-css-gradient-midpoints
Swatches: CSS export writes gradient midpoints and curves as stops
2026-11-17 08:18:32 +07:00
BFlat f3a5d3788a Merge pull request #7973 from dotCooCoo/feat/palette-panels-and-effects
Command Palette: lists commands that run from a pick, plus panels and effects
2026-11-17 08:18:23 +07:00
dotCooCoo 0898ce37cc Merge feat/palette-clear-recent into feat/palette-clear-counts 2026-11-16 17:18:15 -08:00
BFlat 20ef08768a Merge pull request #8052 from dotCooCoo/feat/pathfinder-mixed-shape-mode
Pathfinder: Shape Mode buttons show a question mark for selected members in different modes
2026-11-17 08:18:15 +07:00
dotCooCoo f053c280a5 Command Palette: a menu item in the path is named as the menu bar draws it
The callout, the row's home and the search index translated a filter plug-in's name, which
Object › Plug-ins shows as written, and translated other items by their English label alone,
while the menu bar translates them by the command id first (File › Close is Cerrar archivo in
Spanish). They now use the menu bar's rule.
2026-11-16 17:14:07 -08:00
dotCooCoo 8051a7face Live Paint: art drawn in a group under a part's name is not counted as a part
Faces and edges are the group's paths named Face or Edge, so type or a
group drawn in an isolated Live Paint group under one of those names is
no longer counted by Gap Options, Info or Make, and Expand keeps it, as
it keeps type named like the sources group.

Exit Isolation Mode while editing a pattern, an opacity mask or a symbol
applies a shape still being drawn with Real-time Drawing and Editing off
before the paths drawn in an isolated Live Paint group join it.
2026-11-16 17:14:01 -08:00
yoriswind fb333e757d #8068: sample Image Trace ignore color from the source 2026-11-16 17:07:34 -08:00
dotCooCoo 54c415468b i18n: dialog labels use the language's colon
Dialogs and the toolbar editors added a plain ":" after a translated
label, so French showed "Points isolés:" without the no-break space
before the colon. A new `i18n::colon` helper appends the catalog's ":"
row instead. French writes U+00A0 before the colon, Chinese and Japanese
write a full-width colon, and English and the other languages are
unchanged.

- Field labels: the generic parameter dialogs, Text Flow, Radial Blur's
  Horizontal and Vertical, the graph type dialog, and the headings of
  the toolbar drawer and the Add Tool menu.
- A label followed by a value: Radial Blur's Blur Center value for
  screen readers, the Simplify point count, the Dimension preview, the
  Revolve reset tooltip, Smart Punctuation's report, the PDF and print
  option summaries, the PSD import layer count, the Recolor color share
  tooltip, the Revolve light names and the script check's problems.
- The style dialogs' attribute list showed two colons ("Font Size::
  12"). It now shows one.

Part of #7991 (reported by bortekfr).
2026-11-16 17:06:34 -08:00
dotCooCoo 7690527892 Merge feat/palette-recent-rank into feat/palette-use-counts 2026-11-16 17:04:18 -08:00
dotCooCoo d1c1fa6345 Command Palette: saved pick counts are bounded while they are read
Reading the saved counts keeps at most the 200 most recent picks as it
goes, instead of collecting every entry and sorting them before cutting
the list to 200. The counts that load are unchanged.
2026-11-16 17:00:56 -08:00
dotCooCoo d1b588279f Text: a variable font's Windows cell height takes its MVAR changes
FontFace::win_cell_height adds the MVAR `hcla` and `hcld` deltas to
usWinAscent and usWinDescent at the face's location, so EMF and WMF
type with a positive font height is sized against the instance it is
drawn in. The variable test font gains the two records, and a test
checks that Bold's cell is 200 units taller than Regular's.

The comments and docs/mcp.md also say that characters the mapped face
has no glyph for are drawn from other faces at the same size and
Horizontal Scale.
2026-11-16 17:00:27 -08:00
dotCooCoo 76acc2e16c WebP: lossy export refuses a frame whose first partition overflows its size field
A VP8 key frame stores its first partition's size in 19 bits (RFC 6386
section 9.1). The encoder writes 524,287 for a larger partition too, and
a decoder then reads the token partition from the wrong offset. A lossy
WebP whose size field is at that limit now fails with an error that
suggests a lower resolution or Lossless, instead of writing a file that
does not decode.
2026-11-16 17:00:02 -08:00
dotCooCoo 6c2ac07b6b i18n: Rasterize dialog labels its fields in the UI language
Object › Rasterize… labels its fields from the command's parameter
names. Add Around, Anti Alias and Color Model had no catalog rows, so
they stayed in English in every language, and the resolution field was
labeled by its unit, "Ppi".

- A `ppi` field in a parameter dialog is labeled Resolution, and shows
  its unit after the value from the catalog's "{n} ppi" row (French
  "ppp").
- Each complete catalog gets rows for Add Around, Anti Alias, Color
  Model and Resolution. Anti Alias, Color Model and Resolution use the
  catalog's own "Anti-aliasing:", "Color Model:" and "Resolution:"
  rows without the colon.

Part of #7991.
2026-11-16 16:59:18 -08:00
dotCooCoo 4c73ed73e0 Merge feat/palette-recent-rank into feat/palette-use-counts
A pick is now counted only when Recent Commands records it: a refused
pick and a pick of Search Commands… are not counted, and a pick that
opens a dialog is. The test that counts an effect pick picks it with
art selected, since the effect is dimmed when nothing is selected.
2026-11-16 16:53:46 -08:00
dotCooCoo 937ca6a457 .ai import: a blend whose record's orientation fails the check takes the one drawn
When the orientation the record names didn't lay the steps out turned
as drawn, the import took the orientation whose steps sit closest to
the drawn ones by their centers alone. A half turn leaves the centers
in place, so a blend drawn Align to Path whose record named Align to
Page came in as Align to Page, with each step turned from its drawing.
The import now takes the closest of the orientations that pass the
check, and the closest of them all only when neither passes.

Test: grouped red and blue squares drawn turned on a spine running
right to left come in as Align to Path with a record naming either
orientation.
2026-11-16 16:51:46 -08:00
dotCooCoo b11e910baf Command Palette: the recent-pick ranking test checks that the second Enter runs the effect
The test asserted only the recent list, which already held the effect,
so a refused second pick would also have passed. It now checks that the
effect's dialog opens.
2026-11-16 16:50:30 -08:00
dotCooCoo 56d58735f7 i18n: Create Gradient Mesh dialog shows its labels translated
Object › Create Gradient Mesh… opens the generic parameter dialog with
rows, cols, appearance and highlight. The labels look up the strings
"Rows" and "Cols", which no catalog had, so they stayed in English.
The "cols" key is now labeled Columns, and every complete catalog gets
plain "Rows" and "Columns" entries with the wording of its existing
"Rows:" and "Columns:" entries. The heading is translated through the
heading lookup this branch builds on.

The "cols" label is shared by every generic parameter dialog, so Repeat
Options for a grid repeat and plug-in parameters named "cols" without a
label of their own now read Columns too. Repeat Options also labels
"flipCols" Flip Columns, to match.

Part of #7991.
2026-11-16 16:44:16 -08:00