Commit Graph
7032 Commits
Author SHA1 Message Date
dotCooCoo 1957c18c02 Layers: dragging objects into an Intertwine group adds them to it
An Intertwine group's row in the Layers panel now takes dragged rows and
selected art inside it, as a group's row does, and an object dropped
beside one of its members joins the group too. The new member has no
arranged areas and is drawn in its row's order; the other members keep
theirs. Alt-drag adds copies. layer.move and node.move refuse an object
that is or holds an Intertwine group, a Repeat, a graph or a Live Paint
group with the reason Make gives. For such an object the panel shows no
inside box on the group's row and no drop line beside a member's row.

A member moved out of the group, by a drag, node.move or Send to Current
Layer, drops its arranged areas. A group left with one member is
replaced by that member, or becomes a plain group of it when the group
has an opacity, blending, appearance, mask, lock or hidden state of its
own; a group left with none is removed. Each move is one undo step.
2026-11-15 23:54:08 -08:00
dotCooCoo e0f880ab1a Arc: arcs follow the axes General › Constrain Angle turns
With a Constrain Angle other than 0° or a whole turn, an arc dragged out
with the Arc tool or placed from the Arc Segment Tool Options click dialog
is drawn along the turned x and y axes, with its bounding box turned. The
drag's box and Shift's equal lengths are measured along those axes, the
reference point stays at the drag's corner or the click, and F, C and
Up/Down keep the turn. At 0° and whole turns arcs are drawn as before.

shape.arc takes an optional rotation (degrees clockwise, about x1, y1 or
about the reference point x, y); a rotation that is not a number is an
error and adds nothing.
2026-11-15 23:50:29 -08:00
dotCooCoo 4200156914 Repeat: a selected Radial Repeat has handles for its instances and radius
With one radial repeat selected, the Selection tool shows a handle below
it and a handle on its circle between the first two instances. Dragging
the first one down adds an instance for every 16 px and dragging it up
removes them (1 to 1,000). Dragging the second one outward or inward
makes the radius larger or smaller (0 or more); only the part of the drag
along the line from the center counts. 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. The handles hide with the
edges or the bounding box and for a locked or hidden repeat, and
bounding-box handles keep priority where they meet, as with Grid Repeat.
2026-11-15 23:18:17 -08:00
dotCooCoo 388044db13 Color: Sample Color from Screen works on Windows
Windows had no screen color sampler, so the Color Picker's eyedropper
button was gray and ui.sampleScreenColor returned an error there.

The new sampler copies the virtual screen (every monitor, including
ones at negative coordinates and at other display scales) and covers it
with a borderless topmost window that shows the copy under a crosshair.
A left click picks the copied pixel, read as sRGB. Escape, a click of
another mouse button, Alt+F4 or switching to another window cancels.
The window runs on its own thread, so the app keeps drawing, and the
copy's size is checked before it is allocated.

Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md
and the ui.sampleScreenColor params text.
2026-11-15 23:15:43 -08:00
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 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 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 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 fcc8bd2c83 Merge main into fix/blob-params-rejected 2026-11-15 20:51:54 -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
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
BFlat bdf33b1114 Merge pull request #7839 from dotCooCoo/fix/expand-appearance-nested-instance-effects
Expand Appearance: raster effects on a symbol instance's fill or stroke expand to art, nested instances included
2026-11-16 10:35:50 +07:00
BFlat 89c3a9c4ec Merge pull request #7946 from dotCooCoo/feat/revolve-cut-caps
Revolve: a partial sweep with Cap closes its cut sides
2026-11-16 10:35:40 +07:00
BFlat 59771c6566 Merge pull request #8002 from dotCooCoo/fix/tool-overlays-long-drag-copies
Tool overlays: long drags keep their line in shared pieces instead of rebuilding it every frame
2026-11-16 10:35:26 +07:00
BFlat 6d6dd28fad Merge pull request #8018 from dotCooCoo/feat/ellipse-tangent-radius
Ellipse: a circle drawn from its center snaps its radius to touch a nearby path
2026-11-16 10:35:17 +07:00