Commit Graph
7161 Commits
Author SHA1 Message Date
dotCooCoo b10ceca2aa Use Preview Bounds: Extrude & Bevel, Revolve, Inflate and Rotate are measured by their 3D art
With Use Preview Bounds on, Align, Distribute, Distribute Spacing, the
Transform panel and the bounding box measured a 3D object by its flat
source path, so the drawn surface stuck out past the box and aligned
edges did not touch. They now measure the projected vector art the
renderer draws, built with the document's symbols as the renderer builds
it: effects on single fills and strokes, group and symbol members, a
symbol instance with its own 3D effect, appearance overrides on dynamic
symbols, and geometry effects after the 3D effect. An instance with its
own 3D effect counts toward the 4,096-instance limit. Raster effects are
still not measured, and with the preference off the geometric bounds
are unchanged.

Docs: params text of object.align, object.distribute and
object.distributeSpacing, docs/mcp.md, docs/target-app-parity.md.
2026-11-15 23:15:00 -08:00
dotCooCoo 934c999742 Scripts: File › Scripts shows a Loading scripts row until the folder is first read
Before the first read of the Scripts folder ended, File › Scripts showed only
Check Script… and Other Script…, the same as an empty folder. The menu now
shows a disabled "Loading scripts…" row above them until the first listing
arrives, and "The Scripts folder is still being read" once that read has
taken 2 seconds. A first read that cannot start, or ends without a listing,
shows "The Scripts folder cannot be read", and the next read tries again.
Later reads keep the last listing in the menu while they run.

The menu revision changes when the row appears, turns slow and goes away, so
the macOS menu bar rebuilds with it. Both labels have rows in every catalog,
and docs/mcp.md describes the row next to the other Scripts-folder notes.
2026-11-15 23:14:42 -08:00
dotCooCoo 43f48ba33f Selection: loaded text shows a link cursor over an object a click threads it into
With text loaded from a port, the pointer adds a link badge over a closed
path, area type or type on a path that a click threads the text into, and
keeps the loaded-text cursor over empty canvas and other art. The hover
and the click use one target test, the same rules text.thread.add applies
to `to`: not the frame the text came from, not a frame already in a
thread and not a path inside a compound path. A click on such a frame or
path now makes a new frame there instead of a text.thread.add error.

Docs: type-parity.md and ui-parity.md no longer say the loaded cursor
borrows the I-beam; target-app-parity.md gets a progress line.
2026-11-15 23:02:50 -08:00
dotCooCoo a6c3ffe90f Type: text hyphenates in Bulgarian, Turkish and Russian, and in German, Polish, Portuguese and Italian with CRAFT_I18N_DIR
A run whose language is German, Polish, Portuguese or Italian (any region)
now breaks at that language's hyph-utf8 patterns from craft-proof, and a
Bulgarian, Turkish or Russian run at that language's syllable rules. The
paragraph's Hyphenation options and the Preferences exceptions apply as
before, and points that would split a grapheme are dropped.

For Bulgarian, Turkish and Russian, craft-proof hyphenates a word outside
the language's script as English. For German, Polish, Portuguese and
Italian it can also return points from its own heuristics. Those points
are refused, so a word outside its language's script stays whole.
German, Polish, Portuguese and Italian need craft-proof built with
CRAFT_I18N_DIR; without it they keep today's behavior. Other languages,
English and the eleven Indian languages are unchanged.
2026-11-15 23:01:31 -08:00
dotCooCoo 7528f4963a Find Font: Escape over an open list closes only the list
Escape with the Replace With Font From or Find In list open closed the
whole dialog: the dialog checked Escape after drawing, when the list had
already closed itself, and also took Escape's key repeats. It now checks
whether a list was open before drawing and takes only a new press, so
the list closes, Find Font stays open with its choices and its search,
and the next press closes the dialog.

The replacement search also survived a close by Escape, which goes
through Cancel, and Find in Folder... when the Missing Fonts dialog takes
Find Font's place, so the next Find Font opened with the old search.
Cancel and a successful Find in Folder... now clear it as Done and Enter
do; with no folder picked, Find Font stays open with its search.

Tests run the app's key handling and dialogs together, as a frame does.
2026-11-15 23:00:51 -08:00
dotCooCoo b4e45fa93c Direct Selection: a marquee picks the points of a selected blend's spine
A Direct Selection marquee now picks the spine points inside it on the
topmost selected blend, and the picked points drag together as
Shift-clicked ones do. With Shift the marquee adds points or takes
picked ones away, and the blend stays selected. A plain marquee around
none of them drops the picks, and Escape during the marquee keeps them.
Unselected, locked and hidden blends are skipped.
2026-11-15 22:51:59 -08:00
dotCooCoo 87b21ebe55 Selection: select.toggle and select.add with many ids go through the selection once
A Shift-drag marquee sends every object it reaches as one select.toggle
{ids}. Each id used to scan and rebuild the selected objects, so K ids
against S selected objects took O(K*(S+K)). Selection::toggle_all and
Selection::add_all now handle the ids in one pass with a map of each id's
current slot, and the commands use them. The result is the same as
toggling or adding each id in order: an id toggled twice is selected
again at the end, and a removal clears that id's anchors, segments, key
and key anchor.

Select > Inverse looks each selectable object up in a set of the
selected ones instead of scanning the selection for each.
Selection::toggle_target, set_slices and set_guides use the same set
lookups.

crates/engine/examples/selection_bench.rs times the old per-id loops
against the new ones in one process. With 50,000 objects, toggling every
object off took 528 to 655 ms before and 2.5 to 4.6 ms after in 7 runs
(wall clock on a machine that was running other builds).
2026-11-15 22:45:42 -08:00
dotCooCoo 7c71315468 Pathfinder: Shape Mode buttons show a question mark for selected members in different modes
When the selected compound-shape members do not share one shape mode,
each of the four Shape Mode buttons draws a question mark and screen
readers report its pressed state as mixed. A click still gives every
selected member the clicked mode in one undo step. A whole compound
shape, one member, or members in one mode show no mark.
2026-11-15 22:41:15 -08:00
dotCooCoo dd669d33fa Swatches: CSS export writes gradient midpoints and curves as stops
A gradient swatch saved as CSS wrote only its own stops, so CSS put an
off-center midpoint at the center and mixed a Perceptual or hue gradient
in a straight line between its stops. CSS mixes hex colors evenly in sRGB
between two stops (https://www.w3.org/TR/css-color-4/#interpolation-space),
so the export now writes the midpoints and the curve as stops of their
own, each with its color and opacity, also on repeated, reflected and
mirrored conic swatches. A gradient that would need more than
MAX_SPREAD_STOPS stops that way is written with its own stops.
2026-11-15 22:40:49 -08:00
dotCooCoo d738e7f0c0 Image Trace: Flat Logo traces a disc on a gray panel without slivers of a paler ground
When the colors of an image lie on one line, as a pale gray ground, a
gray panel and a charcoal disc do, an edge pixel between the panel and
the disc is also reproduced by a mix of the ground and the disc. Flat
Logo switches such a pixel to the mix of the classes beside it only when
its neighbors lie on both sides of the class it drops, which a class
beyond both classes of the edge never satisfies. A charcoal disc on a
gray panel on a paler ground traced with 28 slivers of the ground, of at
most two pixels each, around it when its edges were sharp, and with one
sliver when they were blurred by 0.7 pixel, with the colors found or
named.

A pixel now also takes the mix of the classes beside it when the class
it drops lies beyond both of them on their line, the pixel's own
neighbors lie on each side of it, no neighbor lies past the nearer of
the two toward the dropped class, and a chain of neighbors, each nearer
that class than the one before, leads from the pixel, in at most 6
steps, to that class's color or to a flat area of that class. A class
named some levels off the color of its flat areas still counts. The pixels of a pale line on the disc, whether one pixel wide,
blurred over three pixels or falling between two pixels, and the edge of
a gap of the ground's color between the disc and the panel keep the
ground in their mixes. An edge blurred by a pixel or more can still
leave slivers of the ground.

Docs: docs/image-trace-adjustments.md, docs/target-app-parity.md.
2026-11-15 22:32:15 -08:00
dotCooCoo 0f4cc60018 Actions: Reset Actions restores the default set
The Actions panel menu has Reset Actions. It asks first: OK replaces
every set in the panel with the built-in Default Actions set, which
becomes current and selected, and Append adds the built-in set after the
sets there are, with the next free number when its name is in use
(Default Actions 2). Cancel changes nothing. The item is off while an
action records or plays, and the reset records no undo step.

- ui.actionSet.reset {mode?: "replace" | "append"} runs it; omitted
  params count as {}, and another type, key or mode is an error.
- Replace clears the panel's selected action and step, expanded actions
  and a dragged step, and closes an open dialog that holds a set index.
  On the built-in set already shown that way it changes nothing.
- New strings have rows in every catalog. Three French messages about
  tangents get the no-break space before the colon that fr.tsv uses.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-15 22:30:25 -08:00
HassanKhan 836d8d4a1c PDF import: a stroke matches only a glyph placed alike, and strokes only it (#8015)
Match a stroke to a filled glyph by its whole placement (origin, size,
horizontal scale, slant and direction), not just its origin, so a stroke
drawn at another size over a filled word stays type of its own. Restyle
only the matched glyphs' text instead of the rest of their run: strokes
over neighbouring glyphs gather and restyle once, so a word filled and
stroked whole stays one run, while a stroke over one glyph of a filled
word strokes that glyph alone.
2026-11-16 11:24:49 +05:00
dotCooCoo 982c99da88 Merge main into feat/recolor-group-storage
# Conflicts:
#	crates/engine/src/cmd/swatch.rs
#	crates/ui-egui/src/dialogs/recolor.rs
#	docs/control-protocol.md
#	docs/mcp.md
2026-11-15 22:24:37 -08:00
dotCooCoo ad1c0573c3 Legacy .ai: write Perceptual gradients with the stops on their curve
In a legacy .ai gradient definition, each color stop holds only its
color, midpoint and ramp point, and VectorCraft's reader opens such a
gradient as a Classic gradient. A Perceptual gradient was written with
its own stops, so the file opened with different colors between them
and no warning.

The writer now treats a Perceptual gradient as it treats a gradient
mixed around the hue wheel: the colors on its curve become stops of
their own in process colors, at most 256, in a definition of their own,
with a warning that names Perceptual gradients.
2026-11-15 22:21:43 -08:00
dotCooCoo 069f6963c6 SVG glyphs: a glyph from a shared SVG document reads only what it refers to
A font's SVG table can keep many glyphs in one document. Each glyph's art
was read by handing the importer the whole document, with every other
glyph moved into defs. The importer now gets the glyph's element and only
what it refers to: elements named by its effective link (plain href, else
xlink:href) or by url(#id) in attributes, style attributes and sheets,
what those refer to in turn, the start and end tags of the elements
holding them, and every <style> sheet. A document whose references or
sheets cannot be followed this way (a DTD, xml:base, an id used twice, a
missing or escaped reference, a link to another file, a sheet with
sibling, attribute or pseudo-class selectors or at-rules) is read whole,
as before. Each element is queued at most once.

The color check now runs on the reduced text, so a glyph with fixed
colors no longer counts as using the text's color because another glyph
of its document uses currentColor. A glyph nested under an element that
gives a namespace prefix (or the default namespace) another URI than the
root does keeps its own after it is lifted out.

For 50 glyphs of a 2,000-glyph document (278 KB), thread CPU time went
from 547 ms to 113 ms (medians of 9 runs, the two paths alternating in
one process).
2026-11-15 22:18:48 -08:00
dotCooCoo 903a294946 Merge main into fix/svg-filter-messages-tr-labels 2026-11-15 22:17:04 -08:00
dotCooCoo c9fcfe9006 Merge main into fix/i18n-adjacent-placeholders 2026-11-15 22:14:56 -08:00
dotCooCoo f7401096cd Merge main into fix/transform-copies-raster-effects-groups 2026-11-15 22:13:06 -08:00
dotCooCoo 2e639f150a Help: Search Commands… is the first Help menu item
Search Commands… moves from the middle of the Help menu to the top,
with a separator after it. It runs the same help.commandPalette
command and shows its shortcut. In the native macOS menu bar it is
the first item below the system's search field.
2026-11-15 22:04:56 -08:00
dotCooCoo d998629b8d Eyedropper: Escape ends a gradient stop's or Key Color's pick and returns to the previous tool
Escape with a gradient stop's or Brush Options' Key Color eyedropper
armed now ends the pick without sampling and switches back to the tool
that armed it. The stop keeps its color. With Brush Options open, the
first Escape ends only the pick and the dialog stays open with its Key
Color; a new Escape cancels the dialog as before. The plain Eyedropper
keeps its Escape behavior, and a dropped touch leaves an armed pick
waiting for its click.

Fixes #8024
2026-11-15 22:02:30 -08:00
BFlat ed6f22a84c Merge pull request #7848 from dotCooCoo/fix/french-rows-use-a-no-break-space-before-as-fr
i18n: French rows use a no-break space before : ; ? ! and inside « »
2026-11-16 12:55:51 +07:00
BFlat 7180d01947 Merge pull request #7600 from dotCooCoo/fix/confined-exports-script-paths
MCP: confined exports refuse native files that name a linked JavaScript file outside the read roots
2026-11-16 12:55:43 +07:00
BFlat 4963507184 Merge pull request #7768 from dotCooCoo/feat/recolor-add-remove-color-tools
Recolor Artwork: the Edit tab's Add Color and Remove Color tools add and remove colors
2026-11-16 12:55:34 +07:00
BFlat 2f80541c48 Merge pull request #8000 from dotCooCoo/fix/transform-copies-raster-effects-rows
Effects: each copy of a fill's or stroke's Transform effect carries the raster effect listed before it
2026-11-16 12:55:24 +07:00
BFlat 3e3aa1e458 Merge pull request #7761 from dotCooCoo/feat/3d-soft-shadows
3D and Materials: the shadow is blurred by the first light's Softness
2026-11-16 12:55:16 +07:00
BFlat 9ed7881caa Merge pull request #8027 from dotCooCoo/feat/polygonal-lasso
Add Polygonal Lasso as an optional tool
2026-11-16 12:55:07 +07:00
BFlat 2babc877e7 Merge pull request #7375 from dotCooCoo/fix/graph-axis-paint-kept
Graphs: axis lines, tick marks and radar rings keep the paint set on them
2026-11-16 12:54:58 +07:00
BFlat 5d2a54b70f Merge pull request #8028 from dotCooCoo/fix/ai-save-unpainted-clip-object-dictionary
.ai save: a cut clipping object keeps its name, opacity mask and visibility variables
2026-11-16 12:54:49 +07:00
HassanKhan f17a218cfc PDF import: text filled and stroked in one operator is one Type object (#8015)
With text rendering modes 2 and 6 the reader fills every glyph of a
text-showing operator before stroking them, but the importer only joined
a stroke to the glyph filled last, so a word shown in one Tj came in as
a stroke-only Type over a fill-only one. TextLine now records the glyphs
it fills and stroke_filled matches each stroke to its filled glyph in
order, splitting a run where the stroke differs.
2026-11-16 10:51:59 +05:00
dotCooCoo aba7657b25 Command Palette: state that a whole-query tier ranks before a stem form
The search orders results by how the whole query matches before the word
grades, so "scale" lists Scalers, whose name starts with the query, above
Scaling. The progress line now says the stem rule applies among results in
the same whole-query tier, and a test pins both orders.

The test of Effect menu results reads the results and the Effect menu items
within one plug-in revision, so a live-effect plug-in that another test
installs between the two reads no longer fails it.
2026-11-15 21:28:01 -08:00
dotCooCoo fcc8bd2c83 Merge main into fix/blob-params-rejected 2026-11-15 20:51:54 -08:00
dotCooCoo 4e38d4f707 Command Palette: a plural or verb form finds the command
A query word in an English plural or verb form now meets the base word
of a result's English name or menu path: "rounded corners" lists Round
Corners… first, "scaling" finds Scale…, "rasterizes" finds Rasterize…
and "added anchor points" finds Add Anchor Points.

The index stores up to two stem forms per English word, and a query
word's stem forms are looked up exactly:
- 's is dropped, and sses becomes ss.
- es after s, x, z, ch or sh is dropped, and the word with only its s
  dropped is a second form.
- A final s is dropped in words of more than 3 letters, except after
  ss, us or is.
- ies becomes y or ie in words of more than 5 letters.
- ing (more than 5 letters) and ed (more than 4) are dropped. A doubled
  b, d, g, m, n, p, r or t left before them gives the single and the
  doubled letter, the single one only when at least 3 letters are left;
  otherwise the rest with an e added is the second form.
- series and species are left as they are.

A result whose name holds the base word of a query word ranks below one
that holds the query word whole and above one where the query word only
starts a word of the name, so "scale" now lists a name with Scaling
above one with Scalers. A partly typed word that is not itself a word
of any result ("scal") does not meet a stem form. The grades of the
other matches keep their order and their sums, so results matched
without a stem keep their order. Names shown in other languages and ids
are not stemmed, and the words as written stay in the index, so every
result found before is still found.
2026-11-15 20:41:44 -08:00
BFlat a9dc138ecd Merge pull request #7346 from dotCooCoo/fix/erase-region-params-refused
Eraser: path.eraseRegion refuses an angle or roundness outside its range
2026-11-16 11:38:26 +07:00
BFlat c1a2186976 Merge pull request #7966 from dotCooCoo/feat/graph-filled-line-width
Graph Type: Draw Filled Lines takes a Line Width
2026-11-16 11:38:16 +07:00
BFlat 8cf9cb9dca Merge pull request #8007 from dotCooCoo/feat/line-segment-common-tangent
Line Segment: a line from one curve to another snaps to their common tangent
2026-11-16 11:38:07 +07:00
BFlat 2c4fcea4e3 Merge pull request #7995 from dotCooCoo/feat/psd-export-writes-slices
PSD export: slices are written, so an opened PSD's slices survive an export
2026-11-16 11:37:59 +07:00
BFlat a358793ef1 Merge pull request #8023 from ruchirguitar/feat/1636-key-anchor-align
feat(tools): key anchor point alignment (#1636)
2026-11-16 11:37:51 +07:00
dotCooCoo 202f9e7bf8 Effects: document that type's own copying fill carries its raster effects per copy
Type is drawn as its outlines, so each copy that a fill's or stroke's own
Transform effect makes of type carries the raster effects listed before
it, as a path's copies do. A test checks this for the fill's first
Transform effect and for one listed after a Transform effect with
Transform Patterns on, drawn, expanded and baked.

The progress doc now lists type as covered, states when a later copying
Transform effect does not carry the raster effects before it, drops the
fill or stroke case from the older entry's limitation, and puts the
Rasterize entry back on its own line.
2026-11-15 20:28:28 -08:00
dotCooCoo ea42075eb8 Merge main into feat/3d-soft-shadows 2026-11-15 20:12:19 -08:00
dotCooCoo 8e51852c57 Merge main into fix/transform-copies-raster-effects-groups 2026-11-15 20:06:44 -08:00
dotCooCoo 1dfebb079b Merge main into feat/recolor-group-storage 2026-11-15 20:02:49 -08:00
ruchirguitar a724fd48e4 feat(ui): recolor lab entry and swatch libraries access (#4028) 2026-11-16 09:32:14 +05:30
dotCooCoo c71a1eb540 Merge main into fix/graph-axis-paint-kept
Main now stores a line's or label's added rows by kind (Keep::Kinds),
rewritten paint and row attributes (capture_line_row_writes) and no-op
reorders the way this branch did, so its versions are kept. The branch
adds on top: a stroke painted on a line after its kind lost its stroke
keeps that line's weight, a pasted graph's axis and ring line rows follow
a renamed swatch, and the paint.swap params text says only what the swap
changes is stored.
2026-11-15 19:56:47 -08:00
dotCooCoo 257ad5a6ce Merge main into fix/ai-save-unpainted-clip-object-dictionary 2026-11-15 19:55:57 -08:00
dotCooCoo e7f0cc66b6 Merge main into fix/french-rows-use-a-no-break-space-before-as-fr 2026-11-15 19:54:17 -08:00
dotCooCoo 1e5d3d5240 .ai save: a cut clipping object keeps its name, opacity mask and variables
A clipping object written as art cut to it (a group, an image, a symbol
instance, a live object, type, or a path inside art already cut to
another clipping object) lost its name, opacity mask and variable
bindings in the editing data: no written object carried its dictionary,
and a painted one put its name on each of its fill and stroke objects.

The unpainted path that carried its text wrap options now carries its
whole dictionary, in the form the .ai reader reads (art_dictionary in
crates/eps/src/import/ai/read/document.rs). Its fills and strokes keep
only the opacity mask they are drawn through. The path is admitted by
the object count, so at the object limit its dictionary is never left
on the object before it, and a path whose dictionary comes out empty is
taken out again.
2026-11-15 19:48:00 -08:00
dotCooCoo df446a98e8 Merge main into fix/transform-copies-raster-effects-rows 2026-11-15 19:38:47 -08:00
BFlat 3eb964bc1c Merge pull request #7948 from dotCooCoo/feat/crop-image-cropping-options
Crop Image: the Control bar sets the cropped image's resolution, reference point and linked size
2026-11-16 10:36:24 +07:00
BFlat b3c94280d4 Merge pull request #7974 from dotCooCoo/feat/composite-font-sample
Type: Composite Fonts' Show Sample draws the font picked with its metric lines
2026-11-16 10:36:14 +07:00
BFlat f9efd3ca0f Merge pull request #7983 from dotCooCoo/feat/font-menu-show-similar
Type: the font menu's Show Similar Fonts lists the families that look like a family first
2026-11-16 10:36:06 +07:00