Commit Graph
15426 Commits
Author SHA1 Message Date
BFlat fd24176ec8 Merge pull request #8127 from dotCooCoo/feat/isolate-selected-path
Isolation mode: the canvas context menu isolates one selected path
2026-11-16 23:07:46 +07:00
BFlat d9870d379f Merge pull request #8137 from dotCooCoo/perf/symbols-panel-current-symbol
Symbols: the panel reads the current symbol without running symbol.list
2026-11-16 23:07:36 +07:00
BFlat b86585d1b4 Merge pull request #8109 from dotCooCoo/feat/ai-graph-filled-lines
.ai graphs: Draw Filled Lines and its Line Width open live and save through the Gy record
2026-11-16 23:07:27 +07:00
BFlat cf99cd708f Merge pull request #8124 from dotCooCoo/feat/radial-repeat-splitter
Repeat: dragging a Radial Repeat's splitter hides instances and the others keep their places
2026-11-16 23:07:16 +07:00
BFlat 7d90d4ad8e Merge pull request #8115 from dotCooCoo/feat/split-resets-stroke-align
Scissors: paths a cut makes have every stroke aligned Center
2026-11-16 23:07:06 +07:00
BFlat 421c98f057 Merge pull request #8139 from dotCooCoo/perf/character-panel-stories-once
Character panel: work out the selected stories once, not once per field
2026-11-16 23:06:56 +07:00
BFlat b00aa7cd98 Merge pull request #8136 from dotCooCoo/fix/export-screens-single-pdf
Export for Screens: Single file PDFs are refused for assets, layers and each object
2026-11-16 23:06:47 +07:00
BFlat a6a2919b2c Merge pull request #8112 from dotCooCoo/fix/similar-fonts-no-numbers
Type: Show Similar Fonts lists a family with no numbers in common after the measured ones
2026-11-16 23:06:36 +07:00
BFlat 9dbd107205 Merge pull request #8126 from dotCooCoo/feat/shape-drag-grave-copies
Shape tools: Backtick held while dragging leaves copies of the shape
2026-11-16 23:06:28 +07:00
BFlat efe519a81a Merge pull request #8140 from dotCooCoo/feat/isolation-bar-click-exits
Isolation mode: a click on the isolation bar's empty space exits isolation mode
2026-11-16 23:06:19 +07:00
BFlat e157e9c737 Merge pull request #8111 from dotCooCoo/perf/eps-readhex-readline-one-pass
EPS import: readhexstring and readline read the data in one pass
2026-11-16 23:06:11 +07:00
BFlat f09d3777c2 Merge pull request #8133 from dotCooCoo/feat/layers-target-to-delete
Layers: a target circle dropped on Delete Selection reduces the item to basic appearance
2026-11-16 23:06:02 +07:00
BFlat ace89049c1 Merge pull request #8125 from dotCooCoo/feat/graphic-styles-empty-preview
Graphic Styles: a style with no fill and no stroke shows an outlined shape with a red slash
2026-11-16 23:05:53 +07:00
BFlat 942a65b16c Merge pull request #8144 from dotCooCoo/fix/flat-logo-soft-edge-slivers-v2
Image Trace: Flat Logo traces blurred black edges beside gray without gray slivers
2026-11-16 23:05:43 +07:00
BFlat 75e3b7b4d3 Merge pull request #8147 from dotCooCoo/feat/color-guide-save-selected-cells
Color Guide: Save Color Group to Swatches saves the selected cells as the group
2026-11-16 23:05:34 +07:00
BFlat 3275ae1951 Merge pull request #8132 from dotCooCoo/feat/magic-wand-cmyk
Magic Wand: Fill Color and Stroke Color tolerances compare CMYK values in a CMYK document
2026-11-16 23:05:25 +07:00
BFlat ee59999a00 Merge pull request #7982 from dotCooCoo/feat/common-tangents
Path Precision Tools: Common Tangents draws the lines touching two closed paths
2026-11-16 23:05:15 +07:00
BFlat a6e94de555 Merge pull request #5484 from ruchirguitar/feat/4943-more-indian-languages
Complete #4943: Nepali, Konkani and Sindhi language options
2026-11-16 21:48:41 +07:00
BFlat ac0465a4e8 Merge pull request #8031 from ruchirguitar/feat/4028-recolor-lab-swatches
feat(ui): recolor lab entry and swatch libraries access (#4028)
2026-11-16 21:48:33 +07:00
dotCooCoo eb72830339 Color Guide: Save Color Group to Swatches saves the selected cells as the group
With variation cells selected, the Save Color Group to Swatches button
now saves those cells as one swatch group, in grid order (row by row,
left to right, each cell once), named after the harmony rule, in one
undo step, each color in its own model. With no cell selected it saves
the harmony colors as before.

A cell selection now ends when the guide it was made in changes: the
base, the Color Guide Options, the variation mode, the harmony rule, the
library limit, or the colors the grid shows. Before, changing the
variation mode or the options kept the old cell positions selected, so
Save Colors as Swatches could save colors that were never picked.
2026-11-16 06:37:00 -08:00
dotCooCoo a1dac2c27f Image Trace: Flat Logo traces blurred black edges beside gray without gray slivers
With a gray between black and white, an edge pixel of black on white
took the black-and-white blend only when one of its eight neighbors lay
past the gray on each side and the flat black and white areas lay nearer
than the flat gray. On an edge blurred by a pixel or more neither holds,
so gray slivers lined black shapes: a black disc beside a gray square on
white traced up to 35 gray paths at blurs of 1 to 3 pixels.

The check now walks from the pixel along the line between the two outer
colors, up to 5 steps each way, each step to the neighbor that lies
farthest toward one of them while the pixels keep getting darker (or
lighter). The blend of the outer two lies as near as the farther of
their flat areas, or as the larger of the two step counts to a pixel of
each outer color when that is smaller. The first step is the old
neighbor check. The same disc and square now trace with one gray path
at blurs of 1 to 2 pixels. At 3 pixels, with the colors named, a gray of
128 is one path, a gray of 200 leaves 4 slivers with no area, and a gray
of 230 leaves 8 slivers of up to 21 pixels (14 gray paths before).

On edges blurred by a pixel or more, gray near black loses pixels. A
soft-edged gray band up to 4 pixels wide along black traces as black
and white at blurs of 1.5 and 2 pixels, and one up to 3 pixels wide at
blurs of 1 and 3 pixels. A soft-edged gray stroke 2 pixels from black
can lose some or all of its gray, and one 4 pixels away a few pixels. A
soft-edged gray stroke running out of black, blurred by 1 or 1.5
pixels, loses 3 or 4 of the 16 pixels nearest black. Sharp-edged bands
and strokes keep their gray.

Docs: docs/image-trace-adjustments.md, docs/target-app-parity.md.
2026-11-16 06:18:09 -08:00
dotCooCoo 2a464df744 Magic Wand: test that magicWand.set refuses a reset that is not true, false or null
The rejection test now gives `reset` a string and checks that the call returns an error and leaves the settings unchanged.
2026-11-16 06:10:21 -08:00
dotCooCoo 9973247dfc Type: test that Show Similar Fonts puts a family without numbers first when asked about it
The test now lists that family last, so it passes only when the family
asked about is moved to the front and the others keep their order.
2026-11-16 06:00:19 -08:00
dotCooCoo 8ca9613337 Isolation mode: a click on the isolation bar's empty space exits isolation mode
A click on the isolation bar's empty space, or on the isolated object's
name at the end of the breadcrumbs, leaves isolation mode altogether, as
Exit Isolation Mode does, nested isolation included. The back arrow, the
breadcrumbs of the levels above and the pattern buttons keep their own
actions, and a drag across the bar does not exit.

While an opacity mask is edited the click stops editing the mask. In
symbol editing mode it leaves the mode, also from a group isolated inside
the symbol's art and together with the isolation the mode was entered
from. While a pattern is edited it does nothing; Save a Copy, Done and
Cancel end pattern editing.

Docs: docs/target-app-parity.md.
2026-11-16 05:56:36 -08:00
dotCooCoo 70fdab8445 Export for Screens: Single file PDFs are refused for assets, layers and each object
With `pdfs: "single"` and several assets, layers or selected objects
(`selection: "each"`), document.exportForScreens wrote one PDF named
after the document holding only the first item's art, and every other
item's PDF was left out. Single file puts artboards on the pages of one
PDF; each asset, layer or object is cut out of the document with its own
art, so the export now refuses that combination before it writes any
file, and the Example line refuses it too. `pdfs: "multiple"` still
writes a PDF of each item, and `selection: "one"` writes one PDF either
way.

Docs: params text, docs/mcp.md, docs/target-app-parity.md.
2026-11-16 05:50:00 -08:00
dotCooCoo 756341ddc9 Character panel: work out the selected stories once, not once per field
With the Selection tool, every Character and Paragraph field read its
value through selected_stories, which walked the selected objects and
looked up each type object's story again. With the default panels open
that was 24 builds of the same list per frame.

selected_stories and selected_story_texts now keep the last list,
with the document (a held Weak keeps its address from being reused),
its revision and a copy of the selected objects. A change to any of
them builds the list again. Type objects are still resolved from the
current document on every read, so the panels show the same values.

Tests compare the kept list with a fresh build after an edit, a
reordered or replaced selection, a selection set without a new
revision, a selected group and a switch to another document at the
same revision; compare what both panels draw and their field values
with and without the kept list; and count one build per frame.
2026-11-16 05:41:04 -08:00
dotCooCoo f76735fcb4 Merge main into fix/similar-fonts-no-numbers 2026-11-16 05:38:12 -08:00
dotCooCoo c6046dacec Graphic Styles: the white fill of a no-paint preview covers type's characters
A style with no fill and no stroke whose Characters row sits above some of
its rows showed its type preview with the characters' own fill over the
white backing when Override Character Color was off. The backing now puts
every row above the contents, so the white fill covers the characters.
2026-11-16 05:37:33 -08:00
FredApps b352745d44 Merge pull request #8117 from storytold/imoto/svg-writer-consumer
svg: write the document wrapper through craft-svg
2026-11-16 14:36:56 +01:00
dotCooCoo 69b4f3ae96 Shape tools: Backtick held at the press measures the first copy from there
A drag that starts with Backtick already down set the copy spacing origin at the first drag event, so a short first stretch of the drag could leave no copy. The press now sets it.
2026-11-16 05:34:43 -08:00
dotCooCoo 75b02ea8df Symbols: the panel reads the current symbol without running symbol.list
The Symbols panel and its panel menu asked for the current symbol on
every frame by running symbol.list, which builds a row per symbol and
walks the whole document once per symbol to count its instances. They
now read it from the active document with cmd::current_symbol, the
rule symbol.list itself uses for its `current`: the stored name while
a symbol has it, else the first symbol. symbol.sortByName,
symbol.place, symbol.options and text.insertInline use the same
function, and symbol.list's reply is unchanged.

An idle frame of the panel or its menu now runs no command, so on
macOS the native menu is not brought up to date on every frame while
the panel is open. In a document with 200 symbols and 50,000 objects
the read takes 0.035 us instead of 48.5 ms in a release build (thread
CPU time on Linux, median of 7 runs). The gain matters on large
documents; on small ones it is too small to notice.
2026-11-16 05:29:31 -08:00
dotCooCoo 3a3bafd006 Layers: a target circle dropped on Delete Selection reduces the item to basic appearance
Dropping a layer, group or object's target circle on the Layers panel's
Delete Selection button now runs Reduce to Basic Appearance on that item
instead of Clear Appearance. The item keeps its topmost visible fill and
stroke, loses its other rows and its effects, and is not deleted. A drop
that changes nothing records no undo step. The help page describes this
drag as the alternative to Reduce To Basic Appearance:
https://helpx.adobe.com/illustrator/using/appearance-attributes.html

Before this change the drop also removed the remaining fill and stroke
and reset the object's opacity and blend mode.
2026-11-16 05:29:10 -08:00
dotCooCoo 8a47799f17 Magic Wand: Fill Color and Stroke Color tolerances compare CMYK values in a CMYK document
In a CMYK document the Fill Color and Stroke Color tolerances run from 0
to 100 and measure the Euclidean distance between the C, M, Y and K
percentages; RGB, Gray and Lab colors are converted to CMYK. RGB
documents keep the 0 to 255 RGB distance. The panel's fields take the
range of the active document.

A tolerance above 100 set in an RGB document is kept and applies as 100
while a CMYK document is active. magicWand.set now returns an error for
a tolerance that is out of range or not a number, and for a switch that
is not true or false, and then changes no setting, reset included;
before, it clamped the values and applied reset first.
2026-11-16 05:15:24 -08:00
dotCooCoo 0897b32a78 Isolation mode: the canvas context menu isolates one selected path
With one path selected, a member of a group or a compound path included,
the canvas context menu now has Isolate Selected Path (object.isolate),
next to where Isolate Selected Group shows for one group or compound path.
Neither item shows for an object that object.isolate refuses: a hidden or
locked object, one in a hidden or locked group or layer, a guide while
Lock Guides is on, and, while a symbol is edited, an object outside the
symbol's art.

Help page: https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=324
2026-11-16 05:06:04 -08:00
dotCooCoo 101e4625e9 Graphic Styles: a style with no fill and no stroke shows an outlined shape with a red slash
A style whose rows paint nothing showed as a blank white tile. Its
thumbnail now shows the preview square or type outlined in black and
filled with white, with the style's effects, under a red slash. The
panel's views, the Control bar's Style picker and chip, the dragged
chip, graphic style library panels and the large preview on the
selected object all show it. A row that paints None does not count as a
fill or stroke; a hidden row or one with zero opacity does.
2026-11-16 04:59:07 -08:00
dotCooCoo 9ecc8087c3 Shape tools: Backtick held while dragging leaves copies of the shape
Holding Backtick while dragging out a rectangle, rounded rectangle,
ellipse, polygon, star or line leaves a copy of the shape being drawn
each time the pointer has moved 8 screen points with the key down, up to
128 copies a drag. Each copy is its own object, drawn as the drag showed
it then. The release keeps the copies and the last shape as one undo
step, and Escape takes them all back. The spacing and the limit are
VectorCraft's own values.

The `backquote` descriptions of `pointer_gesture` name the shape tools.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 04:53:06 -08:00
dotCooCoo 64dfd6ca14 Repeat: dragging a Radial Repeat's splitter hides instances and the others keep their places
With one radial repeat selected, the Selection tool shows a splitter on
its circle, half a step past the last instance shown. Dragging it back
around the circle hides the instances it passes, and dragging it forward
shows them again; one instance stays shown at least. The instances left
keep their places: the repeat keeps the count shown in instances and
spaces them a full circle's step apart with endAngle, and the full
circle's count is read back from that step. Each drag previews and
commits object.repeat.options as one undo step, Escape cancels it, and a
drag that ends where it began leaves no undo step. There is no splitter
when the step does not divide a full turn, for one instance to a turn or
with a radius of 0. The radius handle of a single instance sits opposite
it.
2026-11-16 04:50:48 -08:00
dotCooCoo 4e8ff28cb4 .ai graphs: a filled-line series keeps no stroke, so turning Draw Filled Lines off draws its thin line
A series read from bands with unstroked markers, or bands alone, kept an
explicit no-stroke paint. With Draw Filled Lines turned off, the thin line
took that paint and was not drawn. Such a series now keeps no stroke, as a
graph drawn here does, and its thin line is drawn in the series color at
1 pt. A series whose markers carry a stroke keeps it.
2026-11-16 04:36:43 -08:00
dotCooCoo 70a8ccc8a2 Merge main into feat/radial-repeat-splitter 2026-11-16 04:13:30 -08:00
ruchirguitar d7a1877e98 #8053: keep French tangent punctuation nonbreaking 2026-11-16 17:41:20 +05:30
FredApps 631441ce86 svg: write the document wrapper through craft-svg (#778, #789)
The XML declaration, DOCTYPE entity subset and root <svg> open now go
through SvgWriter. Mapping and the rest of the document stay in the app.
Width and height stay unitless in one place so #7105 can rebase.
2026-11-16 13:10:03 +01:00
FredApps 7452b6f383 Merge pull request #7669 from storytold/feat/cutover-remaining-codecs
refactor(codecs): partial shared image-codec cutover, preserving remaining readers
2026-11-16 12:50:00 +01:00
ruchirguitar 49637d63ac 4028: merge main and exercise picker and row-menu UI 2026-11-16 17:18:38 +05:30
dotCooCoo 52bbca2ecb Type: Show Similar Fonts lists a family with no numbers in common after the measured ones
FontLikeness::distance left out every number either face does not give,
so a family whose faces give none of them (static faces with no OS/2 or
post table) was 0 from every family, and Show Similar Fonts could list
it right after the chosen family, as an exact match. Faces that share
no number to compare are now f32::INFINITY apart, so such a family
comes after every family of its script group that shares one, and
families equally far keep their order. The order of measured families
does not change. This is VectorCraft's own rule.

Builds on #7983, which added Show Similar Fonts.
2026-11-16 03:47:51 -08:00
dotCooCoo a10c403df6 Scissors: paths a cut makes have every stroke aligned Center
path.split (Scissors) and path.cutAtAnchors (Cut Path at Selected
Anchor Points) keep the source path's fill and stroke settings on the
paths they make, and now set every stroke's alignment to Center in the
same undo step, as the help page describes:
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-paths/split-paths.html

Every stroke row is reset, hidden ones included. A path of several
subpaths has one appearance, so its other subpaths' strokes are
centered too, and a cut member of a compound path centers the compound
path's strokes. An appearance whose strokes are already centered is
left shared. Knife, the erasers and Divide are unchanged.
2026-11-16 03:46:53 -08:00
dotCooCoo 160207e9f2 EPS import: readhexstring and readline read the data in one pass
readhexstring and readline called the one-byte file read for every input
character, copying each byte into a new vector. They now scan the bytes
left in the file in one slice and advance the file by the bytes they used.

The results are unchanged: the same bytes, the same boolean, the same next
unread byte, from the program's own file (after the whitespace that ends
the last token), a decoded buffer and a filter decoded when first read.
readhexstring stops on the digit that completes the last byte and drops a
lone digit at the end of the data; readline takes CR LF as one line ending,
leaves the byte after a lone CR unread, and leaves the line ending unread
when the line fills the string.

Tests run the new readers next to copies of the byte-at-a-time loops over
13 stream forms and several hundred inputs, comparing the result and
everything left to read; an image read through a readhexstring procedure
is compared with the same samples given as a hexadecimal string. The
import fuzz tests gain readline and a case for both operators.

data_op allows clippy::cognitive_complexity. Without the allow, clippy
rates it 54 against the limit of 30; with the old loops in place it
passes.
2026-11-16 03:39:00 -08:00
dotCooCoo f8fe5f06e1 .ai graphs: Draw Filled Lines and its Line Width open live and save through the Gy record
A line graph whose style record draws its lines as shapes now opens as a
live graph with Draw Filled Lines on, and its lineShapeWidth becomes the
Line Width (3 pt reads as the default). The flag is ignored when the
points are not connected, as the published file format specification
says (printed pp. 147-148). Saving writes both values in the Gy record.

- Widths from 0.01 to 100 pt are kept. A wider Line Width, a width under
  0.01 pt with filled lines, and filled lines without connected points
  are saved as the graph's art with the existing warning.
- In a filled-line series, a filled path with the thin black band
  outline is read as a band and does not set the series stroke. A
  filled path with another outline must be a square marker or legend
  swatch; otherwise the graph keeps its art as plain objects.
- The reader in crates/eps/src/import/ai/read/graph.rs reads each value
  the writer in crates/eps/src/ai_graph.rs writes; the save-then-open
  tests cover the default, 8 pt and 150 pt widths in both .ai forms.
2026-11-16 03:32:59 -08:00
ruchirguitar 713252db57 #4943: avoid duplicate Swedish language labels 2026-11-16 16:34:36 +05:30
FredApps 808ebc5bac fix(ci): keep pdf-deps on the craft-libs pin, and classify tests for Sonar
xtask pdf-deps still expected craft-pdf and the patched hayro/krilla
backends at main's 9be9a637 revision after this branch pinned them to
a499742a. Point REV at that pin (still on craft-libs main). Classify
test files in sonar-project.properties the way craft-libs does, so the
quality gate measures the product. Give the EPS operation-budget test
the same 300s cap as the other budget tests; under instrumented coverage
it overran the old 120s cap, while the Ubuntu gate finished in time.
2026-11-16 11:31:29 +01:00
ruchirguitar eecefd7c9f Merge current main into #4943 language-list PR 2026-11-16 15:17:05 +05:30