Commit Graph
6903 Commits
Author SHA1 Message Date
dotCooCoo 2d1ecbab32 Place: a Shift-click with the loaded place cursor shows the file's import options
A Shift-click with the place cursor now opens the current file's import
options (Text, DXF, Place PDF or Place PSD) before it is placed, whether
the cursor was loaded with Show Import Options on or off or by
file.place.queue. OK places the file at the click and the cursor moves to
the next file. The options the cursor was loaded with for the file's
format are put aside so the dialog opens, and are used when no dialog
opens for the file (a PNG image, a one-page PDF, a linked PSD file). A
Shift-drag places at the dragged size, as a drag does. Headless, where no
dialog can open, a Shift-click places as a click does.

The place tool marks a Shift-click's file.place with
showImportOptions: true.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 14:18:21 -08:00
dotCooCoo 8970de7da5 Magic Wand: compound and selection membership checks use hash sets
select.magicWand searched lists in three places: paintable looked up
each object's parent in the list of compound paths, add mode looked up
each hit in the selection, and subtract mode looked up each selected
object in the hits. These lookups now use HashSets. The output is still
built by walking the lists, so the wand selects the same objects in the
same order as before.

A test compares paintable, added, subtracted and select.magicWand in
set, add and subtract mode with copies of the earlier searches on a
20,000-path document. An ignored release-build probe times both.
2026-11-16 14:18:19 -08:00
dotCooCoo 00f42826ef Effects: each copy of a Transform effect listed after Rasterize carries the Rasterize image
On a path or compound path, a Transform effect with copies listed after
the object's own Rasterize effect now places the one image Rasterize
makes of the art before it on the original and on each copy: copy k
through the effect's map applied k times, with its pixel grid and its
room around the art, the last copy lowest and the original on top.
Before, the Transform effect copied the art and Rasterize made one image
of all the copies on a grid square to the page.

The image is made once for every placement, also when a shadow or glow
is listed between the Rasterize and Transform effects. The canvas, the
object's bounds, Expand Appearance and PDF export use the same
placements; Expand Appearance and PDF export make a group of images that
share the one image's pixels. Copies stop where the copied art stops,
and a copy scaled to nothing is left out.
2026-11-16 13:55:27 -08: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
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 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 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
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 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 7036cfb67c Merge main into feat/print-custom-scale-link 2026-11-16 12:16:47 -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 473b887542 Merge main into feat/flare-alt-click-default 2026-11-16 11:59:16 -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 d5aea15674 Merge main into feat/symbols-drag-to-delete 2026-11-16 11:56:24 -08:00
dotCooCoo d33d008010 Merge main into fix/expand-pieces-raster-budget-ids 2026-11-16 11:56:08 -08:00
dotCooCoo 52fcf89a80 Save for Web: holding Alt or Option turns Cancel into Reset
While Alt (Option on macOS) is held, the dialog's Cancel button reads
Reset. Reset puts the remembered settings back, or the defaults when none
are remembered, on the current document's active artboard. It drops a
pending preset, a pending Done left by a Done that failed, the preset name
being typed and the selected color table entry, and keeps the view, zoom,
connection speed and path. It does not remember or write anything, and the
dialog stays open. `ui.dialogReset` does the same.
2026-11-16 11:52:29 -08:00
dotCooCoo ca14cf5a11 Merge main into feat/font-menu-recently-added 2026-11-16 11:51:53 -08:00
BFlat 5fd8cf2c45 Merge pull request #7378 from dotCooCoo/fix/svg-filter-messages-tr-labels
i18n: SVG filter refusals are translated, and side-by-side menu items differ
2026-11-17 02:51:10 +07:00
BFlat 3e75a7eae7 Merge pull request #8013 from dotCooCoo/fix/transform-copies-raster-effects-groups
Effects: each copy of a group's or layer's Transform effect carries the raster effects before it
2026-11-17 02:50:52 +07:00
BFlat fb6845b07a Merge pull request #8161 from dotCooCoo/perf/cut-selection-one-pass
Cut: take the cut objects out of the selection in one pass
2026-11-17 02:50:44 +07:00
BFlat 3e9947ac9d Merge pull request #8179 from dotCooCoo/feat/graphic-styles-drag-to-new-duplicates
Graphic Styles: a style dropped on New Graphic Style is duplicated at the end of the list
2026-11-17 02:50:36 +07:00
BFlat d481433eb9 Merge pull request #8163 from dotCooCoo/feat/symbols-drag-to-new-duplicates
Symbols: a symbol dragged onto New Symbol is duplicated
2026-11-17 02:50:27 +07:00
BFlat 40e2aecad3 Merge pull request #8174 from dotCooCoo/perf/anchors-many-set
Select: anchorsMany updates the selected objects in one pass
2026-11-17 02:50:10 +07:00
BFlat d430836ed9 Merge pull request #8158 from dotCooCoo/feat/color-guide-drag-to-swatches
Color Guide: a harmony color or variation dragged onto the Swatches panel becomes a swatch
2026-11-17 02:49:44 +07:00
BFlat 762439edfb Merge pull request #8151 from dotCooCoo/feat/rounded-rect-dialog-corner-radius
Rounded Rectangle: the click dialog opens on General › Corner Radius, and OK makes its radius the default
2026-11-17 02:49:33 +07:00
BFlat d31f346d44 Merge pull request #8056 from dotCooCoo/feat/direct-marquee-blend-spine
Direct Selection: a marquee picks the points of a selected blend's spine
2026-11-17 02:49:23 +07:00
dotCooCoo 02e8f3eb54 Flare: an Alt-click draws a flare at the click with the tool's options
With the Flare tool, an Alt-click (Option-click on macOS) now draws a flare
centered at the click at once, with the tool's current options, instead of
opening the Flare Tool Options. Alt counts when it is held as the button goes
down; a drag with Alt draws the flare in two stages as before. While the
perspective grid shows with an active plane, the flare is drawn on that plane
from the click, as the dialog's OK draws it, and a click the plane cannot take
reports the error. A plain click still opens the dialog.
2026-11-16 11:47:43 -08:00
dotCooCoo 0c1c4f3076 Docs: the Recently Added line cites the user guide page and the text crate's test paths 2026-11-16 11:46:16 -08:00
dotCooCoo bd624ac39f Merge feat/print-overprint-black into feat/print-custom-scale-link 2026-11-16 11:41:11 -08:00
Sven Lafebre 7f65d38906 Properties: the Character section shows the Type tool selection's font style
While the Type tool edits text, the Properties panel's Character section
showed the font family and style of the text object's first run. It now
reads character::text_style, as the Character panel, the Control bar and
the Contextual Task Bar do: the first selected character's style, or the
style of the character before the caret. With the Selection tool it still
shows the first run's.

Fixes #8189.
2026-11-16 20:32:28 +01:00
dotCooCoo 8b0effde6b Trim at Crossings: the selection is updated in one pass
A trim checked and changed the selection once for every trimmed path
and every piece, and each check or removal went through all selected
objects, so a trim of thousands of selected paths spent time
quadratic in their number on the selection alone. The command now
reads the selection through a set and removes and adds objects once
at the end. The resulting selection is the same as before, including
object order, the key object and key anchor, the direct-selected
anchors and segments, and the fields that a change to the object
selection clears.
2026-11-16 11:30:08 -08:00
dotCooCoo 4133419a31 Merge main into feat/print-overprint-black 2026-11-16 11:23:14 -08:00
dotCooCoo 8107d05d35 Merge main into perf/variables-panel-rows-per-revision 2026-11-16 10:57:27 -08:00
dotCooCoo 841acbf583 Merge main into feat/symbols-drag-to-delete 2026-11-16 10:57:16 -08:00
dotCooCoo 145941530e Merge main into fix/expand-pieces-raster-budget-ids 2026-11-16 10:53:39 -08:00
dotCooCoo 8ebe85dd08 Merge main into feat/prefs-descriptions-general 2026-11-16 10:52:59 -08:00
dotCooCoo 57904698e3 Merge main into fix/issue-8063 2026-11-16 10:50:24 -08:00
dotCooCoo 68e0aee65a Merge main into fix/issue-8047 2026-11-16 10:50:23 -08:00
dotCooCoo cee1dbaa96 Merge main into feat/intertwine-layers-drop 2026-11-16 10:49:58 -08:00
dotCooCoo e5baf0d20a Merge main into fix/export-screens-pdf-bleed 2026-11-16 10:49:54 -08:00
dotCooCoo 16719913ae Merge main into perf/curved-stroke-edges 2026-11-16 10:49:53 -08:00
dotCooCoo 896e5c0c90 Merge main into feat/windows-screen-color 2026-11-16 10:49:10 -08:00
dotCooCoo efd9f07a3a Merge main into feat/context-check-spelling 2026-11-16 10:47:32 -08:00
dotCooCoo b20f0325a8 Merge main into fix/ai-editing-perceptual-stops 2026-11-16 10:47:13 -08:00
dotCooCoo dd05a39106 Merge main into feat/type-on-path-desired-spacing 2026-11-16 10:46:53 -08:00
dotCooCoo 3b3f82b600 Merge main into feat/align-3d-preview-bounds-1302 2026-11-16 10:45:35 -08:00
dotCooCoo 7e769b611c Merge main into feat/circle-through-three-points 2026-11-16 10:43:27 -08:00