Commit Graph
16974 Commits
Author SHA1 Message Date
dotCooCoo a487e20cee Save for Web: Optimize to File Size starts at the size of the art as it is now
The starting desired size came from the preview cache, matched by settings
only, so an edit made after the preview drew and before the button's click
was handled gave the previous art's size. The cache is now used only when
it holds the active document at its current revision; otherwise the image
is made once and kept for the preview drawn in the same frame.

The size in K is computed with a u128 product, so a file past about 4 MiB
on a 32-bit target (wasm32) no longer reads smaller than it is.
2026-11-16 13:36:05 -08:00
dotCooCoo d9895e3831 .ai import: a live blend keeps its record's orientation and no spine
Two settings of a blend read from the editing data came from rounding
instead of from the file:

- The orientation was whichever of Align to Page and Align to Path laid
  the steps out closer to where they are drawn. The check compares the
  steps' centers, which turning the steps along the spine leaves in
  place, so on a straight spine both fit and the rounding of the drawn
  steps decided. The reader now reads the record's word 5 (0 is Align to
  Page; a 32-bit float of 8 or more is Align to Path) and keeps that
  orientation when it lays the steps out as drawn: in place, at their
  drawn sizes and with each one's outline where it is drawn, which
  turning a step moves. Otherwise it takes the closest, as before.
- A blend with no spine part opened with a straight spine and an anchor
  at each key. When its record names the keys in their order, it now
  opens with no spine of its own, which lays out the same straight
  lines between the keys' centers. A record that names them in another
  order still gets the straight spine in the record's order.

Blend Options, orientation and spines:
https://helpx.adobe.com/illustrator/desktop/manage-colors/apply-transparency-and-blending/blend-options-overview.html

Tests: the record's word 5 (0, 8, 8 plus an angle, and values that name
no orientation); the record's orientation kept where both lay out alike,
and not taken where it would turn the drawn steps (rectangles on a
vertical spine, triangles on a spine running right to left); outlines
that match whatever anchor a path starts at, with another anchor on a
side, with contours in another order and with a lone anchor, and live
art compared by its size; a blend with no spine part in record order
and in the other order.
2026-11-16 13:30:18 -08:00
dotCooCoo e32f5878cd Merge feat/prefs-descriptions-selection into feat/prefs-descriptions-guides-grid 2026-11-16 13:29:54 -08:00
dotCooCoo f36ce0de37 Merge main into feat/prefs-descriptions-guides-grid 2026-11-16 13:29:27 -08:00
dotCooCoo 1061d645ea Recolor Artwork: Save Changes snaps the group's colors to Limit to Library
With Limit to Library set and the Global Adjust at 0%, Save Changes and
New Color Group gave a group each row's new color as it was, while OK gives
the library's nearest color. A row set without being snapped, for example
through `ui.dialog.set`, saved a color outside the library. Both now give
the group the library's nearest color, as OK does.
2026-11-16 13:26:54 -08:00
dotCooCoo c97258428a i18n: Georgian type size step description fits in three lines 2026-11-16 13:22:45 -08:00
dotCooCoo 4557e10248 Save PDF: Reset with a deleted preset is an error
When the saved preset the Save PDF dialog has chosen is deleted while
the dialog is open, Reset now returns an error naming it, shown in the
status bar, and leaves every field, passwords included, as it is. A
dialog's reset callback returns a Result for this; Flare Tool Options
and Objects on Path Options return Ok. The ui.dialogReset params text
and docs/mcp.md name the error.
2026-11-16 13:21:14 -08:00
dotCooCoo 63e7bf0719 Recolor Artwork: OK with a new name after Save Changes keeps the group's exact colors
After Save Changes, OK with only a new name sent the group's saved colors
as color keys, which hold hundredths of a unit. A swatch with finer
components, such as a CMYK swatch no row lists, was rewritten with the
rounded color. OK now sends `"keep"` for each saved swatch, so the rename
leaves every color as it is.
2026-11-16 13:15:05 -08:00
Dylan M. Taylor ca7ad8db03 fix(deps): pin PackBits and PDF cohort to merged shared revision 2026-11-16 16:04:48 -05:00
dotCooCoo 99ccdb790a Image Trace: Flat Logo docs count a gray stroke's loss at black in pixel centers
The parity line said a soft-edged gray stroke running out of black loses
"3 or 4 pixels" where it meets black. It now says 3 or 4 of the 16 pixel
centers along its middle nearest black, as docs/image-trace-adjustments.md
and the test count them.

In docs/image-trace-adjustments.md, gray near black on blurred edges now
traces gray at fewer of its pixel centers instead of "losing pixels", a
wider band loses some or most of its gray instead of part of it (bands 3
and 4 pixels wide at a blur of 1 pixel keep about 60 of 336), and the
paragraph is wrapped to the file's line width.
2026-11-16 13:04:10 -08:00
datatimp ffea517835 Docs: #8217 evidence in target-app-parity 2026-11-16 16:02:02 -05:00
dotCooCoo 772c7c2ce5 Graphic Styles: a style dragged onto Delete Graphic Style is deleted
A graphic style dropped on the Graphic Styles panel's Delete Graphic Style
button is deleted the way the button deletes: after asking, or at once with
Alt held, in one undo step. The button takes the drop with no style
highlighted and is outlined while a style is held over it. A highlighted
style brings the other highlighted styles with it; art linked to a deleted
style keeps its look and is no longer linked. Other drags are ignored.

Docs: docs/mcp.md (graphicStyle.delete), docs/target-app-parity.md.
2026-11-16 13:00:45 -08:00
dotCooCoo e32b7cdc4b Merge main into feat/print-ink-spot-to-process 2026-11-16 13:00:09 -08:00
Dylan M. Taylor 9c61c0b66e Merge pull request #8103 from storytold/refactor/eps-shared-write
refactor(eps): delegate PostScript write primitives to craft-ps
2026-11-16 15:55:40 -05:00
dotCooCoo 2d9b36ec7e Image Trace: Flat Logo band test checks the widths left unchecked at blurs of 1 and 3 pixels
The band test now also sums the samples traced gray for bands 3 and 4
pixels wide blurred by 1 pixel (about 60 of 336 over the three grays;
16 without the sharp-edge stop) and for bands 4 pixels wide blurred by
3 pixels (about 39 of 192).

across_edge decides from the first step alone whether one side's edge is
sharp, so each side's path is walked once. On 856 code-drawn band and
stroke cases and 39 images the results are the same as before.

The docs count pixel centers instead of pixels, write "0.6 pixels"
throughout, give the parity line's band claim its bound of 1 in 16, and
state again that a light gray stroke 6 or 8 pixels from black keeps its
gray because its pixels do not reach black in 5 steps.
2026-11-16 12:54:49 -08:00
dotCooCoo 8871799a0a Docs: UI chrome row records the Preferences field descriptions
The UI chrome area row names the General and Selection & Anchor Display descriptions; score and hours are unchanged.
2026-11-16 12:52:56 -08:00
dotCooCoo 3c7222b27e Metafile import: each line of text with advances splits and underlines on its own
Text on more than one line is placed a line at a time at every
alignment, and each line splits where an advance that tracking can't
give puts its characters, as a single line does. An underline or
strikethrough also runs on to the end of a line's last advance when
tracking can't reach it.
2026-11-16 12:50:23 -08:00
dotCooCoo 0661f0409f Tabs: dragging a tab stop draws a guide through the selected text
While a stop is dragged on the Tabs panel's ruler, the canvas draws a
line through the text whose stops the ruler shows, where the stop would
land. For area type it crosses the frame cell the paragraph starts in,
measured from where the first line starts (inside the inset, or past a
text wrap object); for point type it crosses the paragraph's lines from
the type's origin. It turns with rotated type and runs across the
columns of vertical type. In a Ctrl-drag (Command on macOS) it follows
the grabbed stop. No line shows while a release would delete the stop,
and it goes on release, Escape, when no button is down, or when the
panel is not drawn. It is not a document object and records no undo
step.

A stop drag whose release the ruler does not get now ends once no
button is down, as a marker drag already did.

The help page describes this guide:
https://helpx.adobe.com/illustrator/desktop/measure-and-align/grids-and-guides/manage-tab-stops.html
Its extent, color and the rules above are VectorCraft's own.
2026-11-16 12:49:07 -08:00
datatimp 79ef644847 Layers panel: Alt shows the copy cursor while rows are dragged (#8217) 2026-11-16 15:48:45 -05:00
dotCooCoo 3e3c95ec37 Blend: options on several blends set only the values given; id edits one blend
object.blend.options wrote the first selected blend's spacing, orientation,
type, ramp and shift onto every selected blend, whatever the call gave. Each
blend now takes only the values given and keeps its own for the rest, through
one closure used for the selection and for `id`.

- `id` edits that blend alone. A hidden or locked blend and an object that
  is not a blend are errors, and the blend's own spine decides whether
  easing is allowed.
- A call that changes no blend records no undo step.
- The Blend panel's Ramp and Shift sliders share one helper: a drag
  previews on the canvas and records one undo step on release, instead of
  one per frame.

Builds on #8022 by ruchirguitar.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 12:42:53 -08:00
dotCooCoo 86ed096f82 Recolor Artwork: the Color Picker leaves the dialog in place with the Color Groups list shown
A double-click on a new color or Pick from Swatches turned the dialog into
the Color Picker before the Color Groups list was drawn, so that frame drew
the window without the list. The window then remembered the narrower size,
and when the picker closed it came back off center for one frame and moved
95 points to the side. A right-click on a row in that frame missed the row.

The picker now opens after the list is drawn, and the window keeps its size
and position. A new test checks the window's rectangle while the picker is
open and in each frame after its Cancel.
2026-11-16 12:42:28 -08:00
dotCooCoo 9adda33c8c Command palette: the opening-click test clicks the app bar's search field
The test looked for the app bar's search icon by its old name. The bar
now shows a search field named "Search commands" in its place, so the
test finds and clicks the field.
2026-11-16 12:42:27 -08:00
dotCooCoo 8d673ff0f7 i18n: French output-black options and halftone screens use printing terms
Preferences › Appearance of Black's output options read "Rendre tous
les noirs…", which calques "render". They now read "Reproduire tous les
noirs…", the printing sense of output; the display options keep
"Afficher".

The Vector Halftone dialog's Screens choice (Mono or CMYK) read
"Écrans", the word for a display. It now reads "Trames", the French
term for halftone screens, next to the dialog's "Linéature".

Part of #7991. Reported by bortekfr.
2026-11-16 12:42:02 -08:00
dotCooCoo 30d5552795 Select: Object > Direction Handles selects the paths with one set call
Direction Handles cleared the selection and then added each path on its
own, and each add searched the paths already selected, so building the
selection took time that grows with the square of the path count. The
command now selects the paths with one Selection::set call and adds the
anchor sets in one extend. The selection is the same: paths keep their
order, a repeated path keeps its first place and its last anchor set,
and the side fields are cleared as before.

crates/engine/examples/direction_handles_bench.rs times both ways on the
same paths in one process. With 20,000 four-anchor paths, building the
selection takes 1.9 ms of thread CPU time against 69 ms one path at a
time.
2026-11-16 12:39:16 -08:00
dotCooCoo 4351143a2a Metafile import: multi-line text with advances aligns each line by its own advances
Centered or right aligned text on more than one line was placed by the
span of all its advances together, so a second line moved the first.
Layout also leaves the tracking after each line's last character out of
the width it aligns, so one object can't align every line by its
advances. Such text now becomes one point type object per line, each
aligned by its own advances and placed on its line's baseline. Left
aligned text stays one object.
2026-11-16 12:38:25 -08:00
dotCooCoo 6be2ef508b Save for Web: Optimize to File Size picks the settings that bring the image under a typed size
Optimize to File Size… under Preset opens rows for a desired size in K (1024 bytes), Start With
(Current Settings, Auto Select GIF/JPEG) and, with slices, Use (Total of All Slices, Each Slice,
Current Slice). OK takes the settings whose files fit, measured by encoding, and the dialog shows
the size found or says that no setting tried fits.

- webExport.optimizeToFileSize searches JPEG quality or GIF/PNG-8 colors, then GIF lossy 100,
  encoding at most 32 trial settings. A lower value can give a larger file, so it measures up to
  6 values spread over the range before it narrows the step. It writes no file and changes no
  remembered setting.
- A desiredK that is missing, not a number, 0 or less, or above 1048576 is an error, as are an
  unknown startWith or use and a bad slice.
- The slices share one setting, so every Use choice changes all of them.
- The result line is dropped when the art or the selection changes.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 12:37:47 -08:00
dotCooCoo 2f7e60dd54 WebP: Lossy with a Quality setting writes a lossy WebP file
WebP Options has a Compression menu (Lossless, Lossy) and a Quality
slider from 0 to 100 that is enabled for Lossy. document.export,
document.serialize and Export for Screens take lossless: false with
quality (default 90) and write a VP8 file, with an ALPH chunk that keeps
the alpha exactly when some pixels are not opaque. Lossless stays the
default. A WebP quality above 100, or one that is not a whole number,
is refused with an error.

The encoder is the one craft-image-codecs already provides; no
dependency changes. The note that lossy WebP isn't available, its
catalog rows and the format text that described it are removed.
2026-11-16 12:30:56 -08:00
dotCooCoo 0b87940421 Packaging Tools: Fold Preview halves the print down to one pixel and reads #-named swatches
The print raster stopped after two halvings, so a 2,048-pixel print seen
far out sampled a 512-pixel level and fine art aliased. It is now halved
down to one pixel, and each halving weighs an odd last row or column by
the part of the print it covers, so an edge color does not spread across
a small level.

A swatch whose name starts with # could not be the inside color, and one
named like a hex color drew that hex color. The inside is now looked up
as a swatch first and read as #rrggbb only when no swatch with a plain
color has that name.
2026-11-16 12:26:28 -08:00
dotCooCoo d00e3b6ecd Packaging Tools: Fold Preview picks the print level by a pixel's longer side and draws the board opaque
A print tipped away from the view shrinks up and down but not across, so
the level of the print raster is now chosen by the longer of a pixel's
two sides in flat terms, not its width alone, and fine print lines no
longer alias when the view is tipped.

The board's inside and outside colors were premultiplied by their alpha
and then drawn with full alpha, so a see-through color drew darker
instead. The depth buffer treats every panel as opaque, so the board is
now drawn opaque in its colors' RGB and their alpha is not used.

The tray test now checks that each wall's print faces away from the base
on its own side and that the walls fold below the base.
2026-11-16 12:26:28 -08:00
dotCooCoo c0667364ed Navigator: View Artboard Contents Only is on by default and hides art outside the artboards
The Navigator panel menu item View Artboard Only is renamed View Artboard
Contents Only and is now on by default. While it is on, the thumbnail
fits the artboards and draws only the art inside them: art on the
pasteboard and in the gaps between artboards is left out, and a shape
that crosses an artboard's edge is cut there. Before, the option only
narrowed the thumbnail to the artboards' bounding box, so art in the
gaps and past an artboard's edge still showed.

The choice is kept with the UI state for every document, instead of
being lost on restart. UI state saved without it reads it as on, and a
saved off stays off. A user who wants the pasteboard art in the
thumbnail turns the menu item off, or runs
ui.navigatorPanelOptions {viewArtboardContentsOnly: false}.

- ui.navigatorPanelOptions takes viewArtboardContentsOnly (true or
  false; any other value is an error and changes nothing) and answers
  {color, solidDashes, viewArtboardContentsOnly}.
- The renamed label has a row in every catalog that had the old one.

Docs: docs/mcp.md (Navigator panel options), docs/target-app-parity.md.
2026-11-16 12:25:17 -08:00
dotCooCoo 9aa937549f Font menu: Recently Added finds its families again when the clock goes back
The filter kept the list it found while the clock stayed before the instant the list may change at. When the system clock was set back, a family dated after the new time, or one whose 30 days had ended, could stay listed. The filter now also remembers the time it found the list for and finds the families again when the clock goes back before it.
2026-11-16 12:21:00 -08:00
dotCooCoo 7036cfb67c Merge main into feat/print-custom-scale-link 2026-11-16 12:16:47 -08:00
dotCooCoo 51efeba7b4 Save PDF: holding Alt turns Cancel into Reset
While Alt (Option on macOS) is held, the Save PDF dialog's Cancel button
reads Reset. Reset (or ui.dialogReset) puts every option back to the
chosen preset's settings, clears the passwords and their checkboxes, and
leaves the dialog open with its preset, path, artboard range and section.
A saved preset deleted while the dialog is open leaves the options as
they are.

Choosing a preset now also clears the Security section's password
checkboxes, which stayed checked with an empty password before.
2026-11-16 12:11:49 -08:00
dotCooCoo 4044496105 Merge main into feat/prefs-descriptions-selection 2026-11-16 12:10:24 -08:00
dotCooCoo 886450010a Transform: the Align to Pixel Grid state is worked out once per document revision
The Transform panel measured the selected objects' Align to Pixel Grid state on every frame, looking up each object and its parent and collecting their ids. With Select All in a large document that cost tens of milliseconds a frame. The state (on, off or mixed, and whether every object can be aligned) is now kept in the canvas cache for the document's uid and revision, and the ids are listed only when the box is clicked.
2026-11-16 12:08:55 -08:00
dotCooCoo ad237a3552 i18n: French rows take a no-break space before the colon 2026-11-16 12:05:41 -08:00
dotCooCoo db630b401a Merge main into feat/arrange-documents-layouts 2026-11-16 12:05:18 -08:00
dotCooCoo cb060a0ea7 Merge main into feat/packaging-fold-preview 2026-11-16 12:04:49 -08:00
dotCooCoo 5171378fd5 Merge main into fix/symbol-drop-across-documents 2026-11-16 12:02:44 -08:00
dotCooCoo aac6250a07 Merge main into fix/blob-params-rejected 2026-11-16 12:01:23 -08:00
dotCooCoo 46c8a86fbd Window: Arrange Documents tests find the search icon by its current label
The command palette's search icon is labeled "Search commands, tools,
panels and effects" since 44f75df965. The two application bar tests
still looked for "Search commands and tools", so the narrow-bar test
saw Arrange Documents without the search icon at every width.
2026-11-16 12:01:11 -08:00
dotCooCoo 473b887542 Merge main into feat/flare-alt-click-default 2026-11-16 11:59:16 -08:00
dotCooCoo 10054f611b Merge main into fix/issue-8047-group-marquee 2026-11-16 11:58:46 -08:00
dotCooCoo a616ccfd09 Merge main into fix/shortcut-row-names-translated 2026-11-16 11:57:36 -08:00
dotCooCoo 7953a12116 Metafile import: EMF and WMF text keeps the character advances the file gives
Follows #7608. Text from EMF, WMF and EMF+ pictures was laid out with the
font's own spacing, so the per-character advances the file gives
(ExtTextOut's lpDx, EMF+ DrawDriverString glyph positions) were dropped.

- Characters are spaced by their advances as tracking, with pair kerning
  off. When a ligature forms at one tracking and breaks at the next,
  standard ligatures are turned off for that text.
- On a single left to right line, an advance that tracking can't give
  (wider than its range, or a tab) starts a new point type object where
  the advance puts it, also between the letters of a ligature the
  tracking breaks apart. An underline or strikethrough is filled across
  the space between. Right to left and multi-line text stays one object.

ExtTextOut: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-exttextoutw
DrawDriverString: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emfplus/b794b780-e9a8-4682-af65-9b614aecfbe6
2026-11-16 11:57:10 -08:00
dotCooCoo c8142c33b6 Merge main into feat/windows-screen-color 2026-11-16 11:56:57 -08:00
dotCooCoo 825cfdd750 Shapes: double-clicking a live shape's corner widget with a shape tool shows the Transform panel
With Rectangle, Rounded Rectangle, Ellipse, Polygon or Star active, a
double-click on a visible corner widget of a selected live rectangle or
polygon shows and selects the Transform panel (window.panel.activate),
wherever it is: closed, docked behind another tab, floating, in an icon
column or in a dock hidden by Tab. A second double-click keeps it on show.
The tool, the selection, the document and the undo history stay as they
were. Pie widgets, spots off the widgets, Line Segment, plain paths and
hidden or angle-excluded widgets do nothing; the Selection and Direct
Selection tools keep their double-click behavior.

Tools return the new Action::Panel, which the engine forwards as
UiRequest::Panel; the desktop app activates the panel, and a headless
pointer_gesture reply carries {"panel": id} in its requests.

Docs: docs/ui-parity.md (#5477 row, also correcting its statement that the
bounding-box handles scale only with the Selection tool) and
docs/target-app-parity.md.
2026-11-16 11:56:38 -08:00
dotCooCoo d5aea15674 Merge main into feat/symbols-drag-to-delete 2026-11-16 11:56:24 -08:00
dotCooCoo f9f311d081 Dependencies: take craft-image-codecs from craft-libs main at 3af718585c
craft-image-codecs moves from a499742a93 to 3af718585c on craft-libs main.
It brings in storytold/craft-libs#1758: a deep EXR file with more than one
part now finds each part's chunks after every part's offset table, and an
offset table that runs past the end of the file is an error.

The move also brings in the other merged changes to craft-image-codecs and
the craft-jpeg, craft-metadata and craft-tiff copies it uses: #1646, #1686,
#1837, #1838, #1867 and #1889. #1774 moves DDS reading and writing into the
new craft-dds crate, which adds BC4 and BC5 textures. The other craft-libs
crates stay at their current revisions. craft-svg keeps its own
craft-image-codecs at 431f704478, which it only uses for PNG, JPEG, GIF and
WebP images.
2026-11-16 11:56:21 -08:00
dotCooCoo d33d008010 Merge main into fix/expand-pieces-raster-budget-ids 2026-11-16 11:56:08 -08:00