Commit Graph
16972 Commits
Author SHA1 Message Date
BFlat e1b12a5640 Merge pull request #8060 from dotCooCoo/feat/hyphenation-languages
Type: text hyphenates in Bulgarian, Turkish and Russian, and in German, Polish, Portuguese and Italian with CRAFT_I18N_DIR
2026-11-18 03:22:00 +07:00
BFlat 957881339f Merge pull request #8219 from dotCooCoo/chore/craft-libs-exr-deep-offsets
Dependencies: take craft-libs crates other than craft-plotter from craft-libs main at 64b181977a
2026-11-18 03:21:50 +07:00
BFlat a3a9b081e2 Merge pull request #8062 from dotCooCoo/feat/loaded-text-link-cursor
Selection: loaded text shows a link cursor over an object a click threads it into
2026-11-18 03:21:40 +07:00
BFlat b458f8f757 Merge pull request #7254 from dotCooCoo/fix/ai-xa-working-rgb
.ai save: Lab colors and type paints are written in the working RGB space
2026-11-18 03:21:30 +07:00
BFlat a85cb5cf8e Merge pull request #8332 from dotCooCoo/fix/issue-7095
Fix #7095: a double-click on a pattern swatch no longer paints its tile
2026-11-18 03:21:20 +07:00
BFlat 5088d9c6ec Merge pull request #8272 from dotCooCoo/feat/emf-font-width-scale
Metafile import: a LOGFONT average character width becomes Horizontal Scale
2026-11-18 03:21:07 +07:00
BFlat d7556fbae5 Merge pull request #8249 from dotCooCoo/feat/swatches-drag-to-delete
Swatches: swatches dragged onto the Delete Swatch button are deleted
2026-11-18 03:20:53 +07:00
BFlat 3ab5db4c64 Merge pull request #8092 from dotCooCoo/fix/issue-8047-group-marquee
Group Selection: a marquee selects the objects it touches, whole
2026-11-18 03:20:42 +07:00
BFlat aa8ef006da Merge pull request #7446 from dotCooCoo/fix/ai-transform-guide-reach
.ai import: guides past an object's art keep the drawn look under Transform and Free Distort
2026-11-18 03:20:32 +07:00
dotCooCoo 527d97bf7f Merge main into fix/ai-scatter-brush-art-upright 2026-11-17 12:20:28 -08:00
BFlat 0d681e804d Merge pull request #8339 from dotCooCoo/fix/bounds-reference-number
Fix #8334: setBounds reads whole-number float references correctly
2026-11-18 03:20:23 +07:00
BFlat 40f1080a86 Merge pull request #8215 from dotCooCoo/fix/trim-line-end-on-curve
Path Precision Tools: a path that ends on a curve still divides it after the curve is cut
2026-11-18 03:20:13 +07:00
BFlat a3a3f2dfec Merge pull request #8108 from dotCooCoo/feat/spiral-constrain-angle
Spiral: dragging turns the spiral to the pointer, and the click dialog starts it along Constrain Angle
2026-11-18 03:20:05 +07:00
BFlat 409b8ce9d1 Merge pull request #8058 from dotCooCoo/perf/selection-batch-toggle
Selection: select.toggle and select.add with many ids go through the selection once
2026-11-18 03:19:52 +07:00
BFlat 3bdc7400a3 Merge pull request #8045 from dotCooCoo/fix/ai-legacy-perceptual-gradient
Legacy .ai: write Perceptual gradients with the stops on their curve
2026-11-18 03:19:43 +07:00
BFlat ba6e0683a5 Merge pull request #8328 from dotCooCoo/fix/followup-8305
Color Guide: a script run or a resting link keeps the base color it showed
2026-11-18 03:19:34 +07:00
BFlat 36219a7c79 Merge pull request #7905 from dotCooCoo/fix/touch-point-on-sample
Smart Guides: tangent and perpendicular snaps find a touch point that falls exactly on a sample
2026-11-18 03:19:25 +07:00
BFlat 8ae0a0f516 Merge pull request #8384 from storytold/fix/mesh-outline-extent
Render: a gradient mesh past any buffer draws without flattening its outline
2026-11-18 03:19:17 +07:00
dotCooCoo 393fe5dc80 OpenType: the panel menu has a Stylistic Sets submenu
The OpenType panel menu gains a Stylistic Sets submenu after Reset
OpenType Features. It lists the same sets, labels and checks as the
panel's Stylistic Sets button, and a set chosen there turns on or off
for the characters the panel acts on in one undo step, keeping their
other features. The submenu is disabled with no text selected or when
the font offers no sets.
2026-11-17 12:16:59 -08:00
dotCooCoo 1480cb77da Shape Builder: the hover and drag hatch tests each line only against the edges spanning it
The hatch over the region under the pointer, and over each region a drag
has touched, tested every flattened edge of the region on every hatch
line, on every repaint. The edges are now sorted by their lower end once,
and each line tests the edges that span it (plus any edge with a NaN or
infinite end height, which keeps the old test on every line). The
crossing test, the crossing formula, the sort and the pairing are
unchanged, so the hatch lines are the same coordinate for coordinate.

Tests compare every coordinate's bits against a copy of the old function
on 12 paths at three gaps, check the sweep's crossings line by line
against the old test, and count the edges tested on a 2,000-sided region.
2026-11-17 12:14:51 -08:00
dotCooCoo 4a60b78b5c Actions: action.batch errors count steps from 1 and name the member they reject
action.batch refused a bad step before any file opened as `commands[i]`,
counted from 0, while a step that failed as it ran was named
`action step N (`id`)`, counted from 1. A step whose params its command
refused gave only the command's own error, without saying which step it
was.

- The checks before the batch (no command, an unknown command, a nested
  batch, prefs.import) now name the step as `action step N (`id`) failed:`,
  from 1, as the runtime errors do. A long unknown id is cut short in the
  message, as an unknown key is.
- The parameter check names the action.batch step whose params it
  refuses the same way. command.batch keeps passing the step's error on
  as it is.
- Override Open matches only document.open, and Override Save only
  document.save and file.saveAs: file.open, file.save and document.close
  are not engine commands, and a step with one is refused as unknown.
  The params text no longer lists them, and docs/mcp.md says a step with
  file.open or file.save is refused as an unknown command.
2026-11-17 12:09:17 -08:00
ruchirguitar d6ff2f54ce Production Preflight: add output checks and repair panel 2026-11-18 01:35:12 +05:30
dotCooCoo 6252d4b29e Pencil: path.freehand refuses connect without extend
path.freehand ignored a connect given without extend and drew a new
path. It now refuses it with "connect needs extend". A connect given
with extend is checked (its id, a path other than the one extended
with an open end, and an end of "start" or "end") before a stroke of
one point returns, so a bad connect is refused there too, and
brush.freehand no longer changes the path's brush or the selection
before refusing it. A null connect is still a key left out.

Docs: params text, docs/mcp.md, docs/target-app-parity.md. i18n: the
new message in the catalogs that carry the other connect messages.
2026-11-17 11:56:49 -08:00
dotCooCoo 0febd204d7 EMF/WMF: Use Artboards applies live effects once for all artboards
An EMF or WMF export with Use Artboards applied the document's live
effects (geometry effects, and symbol art with effects) once for each
chosen artboard. vectorcraft_metafile::export_regions now checks every
region, applies the effects once and writes one metafile per region.
export is its one-region case, and the engine's encode calls
export_regions once for all chosen artboards. Each file's bytes and
warnings are unchanged.
2026-11-17 11:56:35 -08:00
dotCooCoo 3919a1a5df Symbols: Shift with Redefine Symbol keeps the art as ordinary art
Redefine Symbol chosen from the Symbols panel menu with Shift held now
updates the symbol and its instances from the selected art and leaves
that art as ordinary art, as the Edit symbols help page describes
(https://helpx.adobe.com/illustrator/desktop/manage-objects/traces-mockups-symbols/edit-symbols.html).
Without Shift the art still becomes an instance.

- symbol.update takes keepArt (default false). With true the art keeps
  its ids, layer and stacking position and stays selected, apart from
  art that is hidden or locked, and the result's id is null. A keepArt
  that is not true or false is an error.
- Redefining the symbol being edited with keepArt still leaves symbol
  editing mode in the same undo step.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 11:51:44 -08:00
dotCooCoo 0da5bf3a0b Select: Select Behind in isolation looks up the objects it found in a set
Each round of the repeated hit test that Select Behind uses in isolation
mode and in Edit Contents skipped the objects already found by searching
the found list, which made one Cmd/Ctrl-click cubic in the number of
objects under the point. A set beside the ordered list answers the same
lookups, so the objects and their order do not change.

A test compares the set lookup with the list lookup on random documents
for every object isolated in turn, and an ignored timing test measures
both on 200 and 1,000 stacked objects.
2026-11-17 11:44:23 -08:00
dotCooCoo 7f801a3ec3 Panels: update native floating window geometry 2026-11-17 11:42:10 -08:00
dotCooCoo a29478bcca Font menu: Enter on a size button no longer picks the highlighted font
The size buttons are activated by Enter when focused. The key was still
read as the list's Enter, which applied the highlighted font and closed
the menu. The button now consumes the key when it handles it, and a test
presses Enter on the focused Large button.
2026-11-17 11:39:25 -08:00
dotCooCoo 15b3aa1d68 Brushes: Add original Pressure Sensitive library 2026-11-17 11:39:00 -08:00
dotCooCoo 0b25050130 Twist: compute exact directional derivatives 2026-11-17 11:34:31 -08:00
dotCooCoo a1e3d6b5bb Graphic Styles: a style dropped on another with Alt replaces that style
A graphic style dragged onto another style in the Graphic Styles panel
with Alt held gives that style the dragged style's look. The replaced
style keeps its name, place and id, and the art still linked to it
takes the new look in one undo step; the dragged style and its art stay
as they are. Without Alt the style moves, as before.

graphicStyle.redefine takes {name, from} for this. A style dropped on
itself, or on a style with the same look, records nothing. A `from` that
names no style or is not a string, or `from` with `id`, is an error.
2026-11-17 11:31:04 -08:00
dotCooCoo 58d53b477a Type: the font menu's Document filter counts type in scatter brushes
The Document filter listed the families of type in layers, symbols,
patterns and graph designs, but not type kept in the art of a stored
brush. A scatter brush draws copies of its art along a stroke, type
included, so a family used only there was missing from the filter.

The filter now reads the stored brush library and counts type in each
scatter brush's art. Art and pattern brushes leave type out when they
bend their art, so their type is not counted. Malformed library
entries are skipped.
2026-11-17 11:27:35 -08:00
dotCooCoo feed8f47b2 Transform: Ellipse Properties has a Constrain Pie Angle link that keeps the pie span
Ellipse Properties in the Transform panel and the Properties panel's
Transform section now has a Constrain Pie Angle link beside Pie Start and
Pie End Angle. While it is on, a typed angle moves the other angle by the
same amount, so the pie keeps its size, as the help page describes:
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-live-shapes/live-shape-properties.html

- object.setLiveShape takes constrainPie with one of pieStart and pieEnd.
  Every selected ellipse keeps its own span in one undo step; an angle
  equal to the current one records none. constrainPie with both angles,
  with neither, or with invertPie is a parameter error.
- VectorCraft's own rules: the link is off at every launch and is not
  saved; the two panels share it; the span is counted counterclockwise
  from the start angle to the end angle, across 0 degrees; a whole ellipse
  stays whole; after Invert Pie the swapped span is kept; the on-canvas
  pie widgets still move one angle at a time.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 11:24:44 -08:00
dotCooCoo a533aec0fe Transform: a line length too small to move its ends records no undo step, and both Line fields send together
object.setLiveShape reports no change when the rounded ends stay where they
are. The Line Length and Line Angle fields send every edited value in one
call, so a length committed in the same frame as an angle step is applied.
2026-11-17 11:18:57 -08:00
dotCooCoo 33b78f377e i18n: Turkish 3D messages name Revolve and Extrude & Bevel by their labels
The Turkish reset tooltip of the Revolve dialog kept the English word
Revolve. Sixteen Revolve messages used Döndür, the Turkish label of
Rotate, the list of 3D effects named Döndür for both Revolve and Rotate,
and one profile message used Döndürme. One Extrude & Bevel message used
Kalıp Çıkarma ve Eğim. These rows now use the catalog's labels, Eksen
Etrafında Döndür and Ekstrüzyon ve Eğim.

A test checks every Turkish row whose source names Revolve or
Extrude & Bevel for the catalog's label.
2026-11-17 11:00:29 -08:00
dotCooCoo c0e4624358 Links: frames that fetch nothing reuse the cached rows without copying them
The Links panel kept its links.list rows and Link Info in panel state by
value, so every frame copied the whole JSON list out of egui memory and
wrote another copy back, even when nothing was fetched. The cache is now
stored behind an Arc: a frame reads it without a copy and stores a new
one only when the list is fetched again (document revision, Show, Sort,
DCS option or the 2-second recheck) or Link Info changes. The flyout
reads the same cache by reference.
2026-11-17 10:59:10 -08:00
dotCooCoo bbf11feac3 Stroke: Delete and Escape skip width points hidden on a brushed stroke
Width points selected before their stroke took a brush show no handles,
but the Width tool still took Delete, Backspace and Escape for them. The
tool now leaves those keys to the app, as it does with no width points
selected.

- The Profile list shows its hover border whenever a click opens it,
  including on a brushed stroke with a profile, where it lists Uniform.
- A test checks that the list's hover text and the Width tool's status
  message are the same string, so the two share their catalog rows.
- An engine test checks that a press or a double-click on a brushed
  compound path puts the message in the status bar and runs no command.
- The doc comment of Session::brushed_strokes_profiled says when type
  counts, and the progress-doc line names the double-click and says that
  art and pattern brushes do not follow a width profile yet.
2026-11-17 10:45:44 -08:00
dotCooCoo ba3c7197f7 Twist: preserve boundary tangents 2026-11-17 10:45:19 -08:00
dotCooCoo 76078f1991 PDF import: a DeviceCMYK image in a PDF/X file opens with the output intent's profile
A file whose catalog has a CMYK /GTS_PDFX output intent describes its
DeviceCMYK colors with that intent's profile. A DeviceCMYK image in
such a file now opens tagged with that profile, so a CMYK image that a
PDF/X export writes as DeviceCMYK opens with its profile again.

An image drawn where a /DefaultCMYK is in scope keeps no profile, since
the default replaces DeviceCMYK there. The scope is read per image from
the resources it is drawn with, and the image cache keeps the tagged and
untagged reads apart.
2026-11-17 10:44:47 -08:00
dotCooCoo cc57835f8f Font menu: a new sample size keeps the list on its rows
A size picked from inside the open menu changed the row height while the
list kept its scroll offset in points, so the rows in view moved to other
families. The list now keeps the same row at the top of its view at the
new height.

Screen readers find Small, Medium and Large as radio buttons in a group
named Font Preview Size, with the current size chosen. Tests check both,
and the module doc is rewrapped to the file's width.
2026-11-17 10:42:53 -08:00
bflatastic 82c9631b57 Render: a gradient mesh past any buffer draws without flattening its outline
A damaged .ai can give a gradient mesh whose outline is enormous but finite.
draw_mesh_raster flattened that whole outline in device pixels (grown_outline),
and kurbo's flatten then asked for more segments than memory holds: a
"capacity overflow" panic (seen in import_fuzz's ai_written_meshes_never_panic).
An outline wider or taller than 2^24 device pixels now goes to the per-quad
drawing path the function already falls back to.
2026-11-18 01:41:52 +07:00
dotCooCoo a9ac500b1e Separations Preview: a second Alt-click on the only visible plate's eye shows every plate
An Alt-click (Option-click on macOS) on a plate's eye in the Separations
Preview panel shows that plate alone. Alt-clicking the same eye again,
while that plate is the only one of the document's plates shown, now
shows every plate, spot plates included, as the help page describes:
https://helpx.adobe.com/illustrator/using/printing-color-separations.html

- view.separationsPreview takes soloToggle: plate for this click. A
  plate shown among others becomes the only plate shown, as the help
  page describes for the first Alt-click. A hidden plate, another plate
  while one shows alone, or any plate while none is shown also becomes
  the only plate shown (VectorCraft's own rules). only still shows just
  the named plate when repeated. Neither adds an undo step.
- The eye's tooltip names the second Alt-click, in every catalog.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 10:40:17 -08:00
dotCooCoo 999e538fd6 Symbols: Alt-dragging art onto a symbol in the panel redefines it
Art dragged off the canvas and released on a symbol's tile or row in the
Symbols panel with Alt (Option on macOS) held now runs Redefine Symbol
(symbol.update) for that symbol, in thumbnail view and both list views.
The symbol under the pointer is outlined while the art is held over it
with Alt. A drop without Alt still makes a new symbol.

- A canvas art drag records the document it came from; art of another
  document, objects the document no longer has and an empty drag are
  not taken.
- symbol.update refuses art that holds an instance of the symbol it
  redefines, directly, in an opacity mask or through the art of the
  symbols it nests, so neither the menu nor the drop can make a symbol
  hold itself. The symbol-editing check shares the walk and now also
  looks inside opacity masks.
- Panel art drops take only a release of the primary button.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 10:36:06 -08:00
dotCooCoo 34587834ac SVG import: an image's bytes are hashed for its key once per import
Importer::image hashed the whole image buffer for its key on every <image> and <use> that showed it, and doc.images then kept only the first result. Every use of one data URL or linked file gets the same buffer, so the key is now kept for that buffer, by its address, for the rest of the import, with the buffer held so the address is not reused. Keys, stored images, links and warnings are unchanged; the tests compare the whole document with an import that hashes every image. With one 3.4 MB PNG data URL shown by 500 <use> elements, the import took a median 1,883 ms of thread CPU time when every image was hashed and 28 ms with the keys kept.
2026-11-17 10:28:46 -08:00
dotCooCoo f3fa4e0a17 PDF/.ai import: the text document reader moves its stories out instead of copying them
Texts::read copied the stories, the default styles, the paragraph
defaults and the frames out of the parsed text document and then
dropped the document. It now looks every required path up first,
reads the styles, Kinsoku sets and fonts from the whole document, and
then moves those four parts out. Every document that read before reads
to equal values, and every one that did not still does not.

Reading a synthetic editing copy with 2,000 point-type stories
(1.8 MB) takes a median of 60 ms of CPU time instead of 109 ms (7
alternating runs each, one process). The gain matters on documents
with a lot of type.
2026-11-17 10:26:17 -08:00
dotCooCoo 73e5d2e0f0 Merge main into fix/raster-supplied-options 2026-11-17 10:21:56 -08:00
dotCooCoo 6007ea7b06 PDF import: a Type 3 font's glyph procedures are checked for color once per document
The scan that looks for d0 glyph procedures ran every time a page or a
form listed a Type 3 font in a font dictionary of its own, and its result
was dropped once the font had been noted. It now runs when the font is
first noted for the document. Each page still maps the font's glyphs,
and the note the import keeps for the font is unchanged.
2026-11-17 10:11:06 -08:00
dotCooCoo 24e0208d31 Type: inline graphics are checked again only in the layer trees an edit changed
After an edit of a document with symbols, the refresh of inline graphics
walked every node of every layer. It now keeps the document the last
refresh left resolved, with the symbol bounds it measured, and checks
only the layer trees that are not the same nodes as that document's,
as long as the symbols, graph designs, pattern tiles and foreign data
(which holds the symbols' natural sizes and 9-slice guides) are the
same and each measured symbol still measures the same. Otherwise the
full pass runs, as before. Visit order is unchanged, so the document
and the ids of the texts laid out again equal the full pass's.
2026-11-17 10:08:24 -08:00
dotCooCoo f9e6399195 Layers: with Show Layers Only on, Locate Object becomes Locate Layer
With Panel Options > Show Layers Only on, the panel lists no object
rows, so Locate Object highlighted a row that was not there. The panel
menu, the bottom bar's button and a row's menu now read Locate Layer in
that mode and send layer.locate with layersOnly: true, which highlights
the innermost layer or sublayer holding the object (a layer locates
itself) and returns {id, objectId, ancestry}. The panel opens the layers
around it and scrolls to it. With the option off nothing changes.

Help page: https://helpx.adobe.com/illustrator/desktop/manage-layers/create-and-organize-layers/locate-objects-in-the-layers-panel.html

Adds Locate Layer rows to the 28 catalogs that translate Locate Object.
2026-11-17 09:58:54 -08:00
datatimp f531179713 Merge upstream/main into fix/8237-layers-alt-drop-copy-beside-itself 2026-11-17 12:58:32 -05:00