Commit Graph
1573 Commits
Author SHA1 Message Date
BFlat c5e2b4fbdd Merge pull request #8337 from dotCooCoo/fix/width-profile-brush-dimmed
Stroke: the Profile list is dimmed while the stroke's brush keeps its own size
2026-11-18 13:10:47 +07:00
BFlat ee989fe5a8 Merge pull request #8480 from dotCooCoo/feat/isolation-exit-one-level
Isolation: Exit Isolation Mode on a sublayer goes back one layer at a time
2026-11-18 13:10:37 +07:00
BFlat 62d9937c75 Merge pull request #8448 from dotCooCoo/feat/circle-tool
Shapes: the Circle tool draws a circle through two or three points
2026-11-18 13:09:51 +07:00
BFlat d9ad978f23 Merge pull request #8471 from dotCooCoo/feat/pen-info-handle-drag
Pen: the Info panel shows W, H, D and the angle while a drag pulls out a handle
2026-11-18 13:01:06 +07:00
BFlat aeaeef2f9c Merge pull request #8433 from dotCooCoo/perf/type-tool-ports-layout-cache
Type: Type tools keep the other frames' layouts between frames
2026-11-18 13:00:57 +07:00
BFlat e8b507aaee Merge pull request #7366 from dotCooCoo/fix/tool-set-option-errors
Tools: setting a tool option with a bad value returns an error
2026-11-18 12:58:18 +07:00
dotCooCoo dd99f72d25 Merge remote-tracking branch 'upstream/main' into feat/bristle-pen-cursor 2026-11-17 21:56:58 -08:00
BFlat 0ae342ea8d Merge pull request #8368 from dotCooCoo/fix/free-transform-shear-readout
Free Transform: a shear drag shows its angle next to the pointer
2026-11-18 12:56:31 +07:00
dotCooCoo a64ceebccf Shapes: the Curvature Circle tool shows "Corner" at a corner anchor
At a corner anchor the tool now shows "Corner" instead of "Cusp", and
`shape.curvatureCircle` returns "the path has a corner there, so it has
no single curvature".

- A closed subpath whose only segment with length loops back to its
  start (a teardrop) has a corner at its tip, from both ends of the loop.
- An anchor marked smooth whose out handle points back along its in
  handle is a corner.
- The guide error and the new corner error have rows in the 24 catalogs
  that translate every message.
- A test covers a Smart Guides snapping tolerance larger than 5 screen
  points, with Smart Guides off and on.
2026-11-17 21:34:11 -08:00
dotCooCoo dc92781181 Part of #5590: Dimension tool lines line up with dimensions already drawn
A linear dimension placed next to another one had its line exactly where
the pointer was. Chained dimensions only lined up when the pointer hit
the other line's level exactly, which at a normal zoom it rarely does.

- With Smart Guides on, a linear dimension placed with its line within
  the Smart Guides snapping tolerance of the level of a parallel line of
  a visible, unlocked linear dimension already drawn has its line on
  that level. This applies to two clicked points and to a segment
  dragged out.
- With Alignment Guides on, a guide runs along that level across both
  lines while the dimension is placed.
- Smart Guides off, a level further off, a locked dimension or one that
  is not parallel leaves the line where the pointer puts it.

Docs: docs/dimensions.md, docs/target-app-parity.md.
2026-11-17 21:33:30 -08:00
dotCooCoo 51194f584b Path Precision Tools: the Tangent Circle Tool keeps its first segment until the circle is drawn
- The release returns shape.circleThroughPoints followed by a Notify,
  and the tool forgets the first segment only when it is told, so a
  command that fails leaves the segment picked (as the Direct Selection
  tool's FRAME_PICKED notice follows its command).
- The preview leaves out circles that three of their points cannot give
  back, so the note shows where a click would draw nothing.
- A double-click draws nothing more: the canvas sends it after the
  second click's release, which drew the circle.
- The re-exports for the tool are a separate `pub use` in the pathops
  pathtools module, whose module comment is unchanged.
- Circles of one radius at places tried close together along the
  first segment are no longer taken for repeats: a repeat also touches
  the first segment at the same point. At a radius of 1,000,000 pt the
  513 places along a 100 pt line were cut to 86.
- A test checks the note's row in every complete catalog.

Docs: a drag's circle may touch the first segment anywhere along it;
the circles that are left out; an out-of-range radius option leaves
the radius as it is. The ROADMAP, target-app-parity and ui-parity
entries move next to related entries, and docs/mcp.md is rewrapped to
120 columns.

Part of #7178.
2026-11-17 21:16:04 -08:00
dotCooCoo 7973b6254c Keep precise-cursor regression meaningful 2026-11-17 20:53:26 -08:00
dotCooCoo 8e7e64bfb1 Merge main into feat/circle-from-center 2026-11-17 20:30:10 -08:00
dotCooCoo d99fcc5cec Merge main into feat/distort-images 2026-11-17 20:30:09 -08:00
dotCooCoo de29baab11 Shapes: the Curvature Circle tool draws the circle a path bends along
The Curvature Circle tool, after the Circle tool in the Ellipse tool's
flyout, draws the circle that touches a path at a point and bends as the
path bends there, with shape.curvatureCircle. The pointer snaps to the
nearest path that is not a guide within 5 screen points, or within the
Smart Guides snapping tolerance when that is larger, and the tool shows
the circle as a dashed outline (solid once it is more than 50,000 screen
points around), its center, a line from the center to the point it
touches and, with Measurement Labels on, its radius. A click draws the
circle in one undo step, on the side the path bends toward; Shift held at
the press puts it on the other side. A press dragged 2 screen points or
more, or canceled with Escape, draws nothing.

A segment that is the usual cubic of a circular arc of 90° or less gives
a circle with the arc's own radius, shown with an asterisk, so a click on
a circle drawn with the Ellipse tool draws that circle. On a straight
segment, at a cusp or a corner anchor, or where the circle would reach
past the canvas, the pointer shows "Straight segment", "Cusp" or "Circle
too large", and a click draws nothing. An anchor is a corner when the
segments meet there at more than half a degree and it is not marked
smooth; segments of no length between them are passed over. The tool's
icon is new and drawn for VectorCraft.

shape.curvatureCircle takes the path, subpath, segment, t and convex, and
returns the circle's center and radius and whether the radius is an
arc's own. A guide is refused.

draw2::candidate_paths skips the selected paths with a hash set, so it
takes time linear in the number of paths on each pointer move.

Part of #7178.
2026-11-17 20:18:05 -08:00
dotCooCoo a561f666a6 Path Precision Tools: the Tangent Circle Tool draws a circle on two clicked segments
The Tangent Circle Tool (tangentCircle) joins the add-on's tools, in
Object > Plug-ins > Path Precision Tools and the All Tools drawer. A click
on a path segment picks it; a click on a second segment draws the circle
that is tangent to the first segment at the point clicked and touches
the second. The segments beside the second one count with it, and of
the circles found the one touching them nearest the pointer is drawn.

- Shift on the second click uses the tool's radius (36 pt to start, set
  in its options), anywhere along the first segment.
- A drag from the second segment sets the radius to the drag's length;
  Shift steps it by 1, 2 or 5 times a power of 10 pt, at least 4 screen
  pixels, and Cmd/Ctrl pressed during the drag moves it by a tenth.
- Before the click the circle shows with its center, its radii to the
  touch points and its radius, or a translated note says there is none.
  The preview follows a pan, a zoom or an edit under a still pointer.
- The circle is drawn with shape.circleThroughPoints, so Align New
  Objects to Pixel Grid leaves it tangent; one undo step. A circle that
  its three points cannot give back in floating point is not drawn, and
  the first segment stays picked. Escape, an edit outside the tool or
  another document forgets the first segment.

The geometry is circles_through and circles_of_radius in the pathops
crate: the distance to the second segments is sampled along the first
segment's normal (or along the segment, for a radius) and the places
where it equals the radius are taken, including touches between samples.

Part of #7178.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md, ROADMAP.
2026-11-17 20:04:15 -08:00
dotCooCoo 84a5ff6b3e Merge main into feat/artboard-edge-button-tooltips 2026-11-17 19:58:57 -08:00
dotCooCoo ba61e13964 Merge main into feat/tool-cards 2026-11-17 19:57:09 -08:00
dotCooCoo 7b8e9610c6 Merge main into feat/polygon-side-widget 2026-11-17 19:40:41 -08:00
dotCooCoo c860bf27ef Fill Area: a left-out curve cuts an area only where it reaches it
A segment's box can meet an area while the segment does not, as with a diagonal line or a curve that arcs around the area. The finder now halves such a segment until a piece has an end in the area, its box misses it, or it is smaller than 0.01 pt.
2026-11-17 19:30:15 -08:00
BFlat 966ae74132 Merge pull request #8130 from dotCooCoo/feat/shape-builder-empty-feedback
Shape Builder: the status bar says why a click or drag built nothing
2026-11-18 10:25:20 +07:00
dotCooCoo 83895dd3f4 Merge main into feat/control-bar-shape-widgets 2026-11-17 19:18:28 -08:00
BFlat f09d81b8b3 Merge pull request #8250 from dotCooCoo/feat/pen-chosen-again-ends-path
Pen: choosing the Pen again while a path is being drawn ends that path, as Escape does
2026-11-18 10:11:37 +07:00
BFlat 19a220fae9 Merge pull request #8225 from dotCooCoo/feat/shape-widget-double-click-transform
Shapes: double-clicking a live shape's corner widget with a shape tool shows the Transform panel
2026-11-18 10:11:27 +07:00
dotCooCoo 4d21ac6600 Width Point Edit: Side 1 and Side 2 apply to every selected width point
Double-clicking one of several Shift-selected width points with the
Width tool now keeps the selection and opens Width Point Edit for all of
them; a double-click on an unselected point still edits that point
alone. ui.widthPointEdit takes {id, indices} for the same dialog, and
refuses an empty, malformed or out-of-range list, or indices given with
index or t. Either half of a discontinuous point brings the other.

Side 1, Side 2 and Total Width show a value only where every selected
point has it, and are blank otherwise. A side width typed in sets that
side of every point and keeps each point's other side (both sides with
the link on); Total Width scales each point's own two sides. With a
discontinuous point among them, Incoming and Outgoing edit its two
halves and both edit the continuous points. OK sets them all with one
stroke.widthProfile.set, one undo step, and nothing when no width
changed; Delete removes them all. With Adjust Adjoining Width Points,
each changed point changes the nearest unselected point before and
after it in proportion to its change since the dialog opened. OK and
Delete are refused when the points moved or changed since the dialog
opened.

Help page: https://helpx.adobe.com/illustrator/using/stroke-object.html
describes Shift-clicking to select several width points and setting
Side 1 and Side 2 for all of them in Width Point Edit. The blank fields,
keeping each point's other side, per-point Total Width and the adjoining
rule for several points are VectorCraft's own.
2026-11-17 19:10:24 -08:00
dotCooCoo af868f2de6 Fill Area: a left-out path cuts an area only when one of its segments reaches it
A path with too many segments for a window's map is left out of it. The finder treated such a path as cutting the area whenever its bounding box met the area, so a path made of subpaths far apart on either side of an area made the finder map every path, which fails past the segment limit, and the area could not be filled. The finder now checks the path's segments.
2026-11-17 18:53:58 -08:00
dotCooCoo 4c3c4adee7 Anchor Point: Alt-drag on a handle links it with the opposite handle
With the Anchor Point tool chosen, dragging a direction handle with Alt
held now links it with the opposite handle and makes the anchor smooth,
on paths and on a selected blend's spine. A drag without Alt still moves
one handle on its own, an Alt-click still retracts the handle, and the
Pen with Alt keeps moving a handle on its own.

- path.setHandle and object.blend.spine.moveAnchor take link: the other
  handle turns in line at its own length; a retracted one is pulled out
  to the dragged handle's length where a segment leaves the anchor on
  its side, and stays retracted at an open end. A request that changes
  nothing records no undo step; link with independent, a non-boolean
  link and, for the spine, link without handle are refused.
- Anchor::set_handle measures long handles without overflowing, so
  turning a very long handle no longer writes NaN or infinite points.
- The two new error messages have rows in the message catalogs.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-17 18:52:29 -08:00
dotCooCoo 22d799fd41 Shapes: the Circle tool shows no circle its anchored path cannot draw
With Standard Anchors off, a circle near the canvas edge whose path with
anchors at the points curves past the edge is no longer previewed or
drawn, as shape.circleThroughPoints refuses it.
2026-11-17 18:19:38 -08:00
dotCooCoo 18cf1d7a93 Hide Bristle tip after post-commit selection 2026-11-17 18:13:58 -08:00
dotCooCoo fbf6b4144b Merge main into feat/artboard-edge-button-tooltips 2026-11-17 18:11:36 -08:00
dotCooCoo 0637f14bfd Keep Bristle tip in sync with Alt release 2026-11-17 18:01:35 -08:00
dotCooCoo 8af2a300e6 Shapes: a Circle tool drag of the second or third point ends where it is let go
With Third Point by Dragging off, a release away from the last drag of
the second or third point now places that point at the release
position.
2026-11-17 17:41:58 -08:00
dotCooCoo ecfe2356cc Merge feat/circle-tool into feat/circle-tool-options 2026-11-17 17:41:58 -08:00
dotCooCoo aeb1ad7814 Shapes: a centered Circle tool release draws the circle it shows
With From Center, a second press moved less than 2 screen points now
draws the outline through the pointer the preview follows, not through
the point of the press. A second click on the center still places
nothing.
2026-11-17 17:26:49 -08:00
dotCooCoo b59b65eda4 Merge feat/circle-tool into feat/circle-from-center 2026-11-17 17:20:04 -08:00
dotCooCoo a5cc189172 Shapes: a Circle tool drag ends where it is let go
A release away from the last drag point now moves the circle's points to
the release position before the circle is drawn, for a drag from the
first press, from a second press and from a press on the first point. A
release within 2 screen points of the press is still a click and keeps
the point of the press.
2026-11-17 17:18:46 -08:00
dotCooCoo 375b2a23e1 Preview Bristle brush tip for rotation-capable pens 2026-11-17 17:14:05 -08:00
dotCooCoo 1901799b76 Shapes: Circle Tool Options set what the Circle tool shows and where its anchors go
Double-clicking the Circle tool, or `tool.options {tool: "circle"}`, opens
Circle Tool Options. Show Center, Show Radii and Show Diameter switch the
center cross, the radius lines and the diameter label the tool shows while
a circle is drawn, and Color sets the color of the cross and the lines
(red, blue, magenta, green, black or gray). With Anchors at Standard
Positions off, the circle's anchors are at the points it was drawn
through, plus evenly spaced anchors between them so that no curve turns
more than a quarter of the circle. With Third Point by Dragging off, a
second click places the second point and a third click draws the circle
through the three; a double-click on the second point draws the circle on
the two. Every option is on by default, and the options are kept with the
preferences.

`shape.circleThroughPoints` takes `anchors: "standard"|"points"`.
`tool.setOption` rejects a value the Circle tool's options do not take.
2026-11-17 16:30:02 -08:00
dotCooCoo 1328d4a7aa Reflect tool: Escape during a drag from the first point drops the axis
Escape canceled a drag that drew the axis from its first point but kept
that first point waiting, so the next click reflected the selection.
Escape now drops the axis along with the drag.
2026-11-17 16:26:36 -08:00
dotCooCoo ac365436ac Shapes: the Circle tool draws a circle from its center through a point
With From Center on (a Control bar checkbox, or the tool option
fromCenter), the Circle tool's first point is the circle's center and
its outline passes through the second point, which follows the pointer.
A drag from the center, or a click on the center and a click on the
outline, draws the circle. The second point snaps to Smart Guides and
anchor points as the tool's other points do, so a circle centered on one
corner of a rectangle can pass exactly through the opposite corner, with
the diagonal as its radius. Shift keeps the second point at 45° steps
from the center, and Alt rounds the diameter to the rulers' ticks. A
second click on the center places nothing. The setting in force when
the first point is placed applies to that circle, and the setting is
saved with the preferences. Each circle is one undo step.

shape.circleThroughPoints takes center: [x, y] with one point in points
and draws the circle at the center through that point. A point on the
center, and coordinates whose distance overflows, are refused with their
own messages. tool.setOption refuses a fromCenter that is not true or
false and any other Circle tool option; both errors are translated.

Requested by Auriga on the community Discord. Part of #7178.
2026-11-17 16:22:28 -08:00
dotCooCoo 7083061f11 Merge main into perf/shape-builder-hatch-sweep 2026-11-17 16:21:48 -08:00
dotCooCoo ad03873c06 Merge main into feat/distort-images 2026-11-17 16:21:37 -08:00
dotCooCoo 2fa56b60e8 Reflect tool: Escape during the second click also cancels that click
Escape dropped a Reflect axis waiting for its second point but kept the
press of a click not yet released, so the release set a new first point
and the click after it reflected the selection. Escape now ends that
press too, and the release sets no point.
2026-11-17 16:15:50 -08:00
dotCooCoo da010c6598 Isolation: Exit Isolation Mode on a sublayer goes back one layer at a time
With a sublayer isolated, Exit Isolation Mode now isolates its parent layer
and selects the sublayer, so repeated use goes up one layer at a time and
leaves isolation mode from the top-level layer, as the help page describes:
https://helpx.adobe.com/illustrator/desktop/manage-objects/select-objects/isolate-objects.html
This applies to the Layers panel menu item, the isolation bar's back arrow,
the Control bar button, the canvas context menu, a double-click outside the
art and object.exitIsolation {}. Before, each of them left isolation mode in
one step.

- object.exitIsolation takes all (default false); all: true leaves
  isolation mode from a sublayer at any depth. Any other value is an error.
- Esc and the top-level layer's crumb on the isolation bar pass all: true,
  so they still leave in one step. A sublayer's crumb isolates that
  sublayer.
- A hidden or locked parent layer is not isolated; the call leaves
  isolation mode. A step up records no undo step. Groups keep their rule.
2026-11-17 15:35:46 -08:00
dotCooCoo 56c9d73a8a Reflect tool: a second click reflects across the line through both points
A click with the Reflect tool now also sets the first point of an axis.
The next click on the same selection reflects it across the line through
the two points as one undo step, and Alt held at that release reflects a
copy. A drag after the first click draws the axis from it, and a dashed
line runs from the first point to the pointer until the second click.

A second click within 3 px of the first point does nothing. Escape,
Enter, a double-click, a changed selection or document, a new reference
point and switching tools drop the waiting axis. Alt on a first click
still opens the Reflect dialog. Rotate, Scale and Shear are unchanged.
2026-11-17 15:24:01 -08:00
dotCooCoo a5b3a216df Pen: the Info panel shows W, H, D and the angle while a drag pulls out a handle
While a Pen drag past the drag threshold shapes a handle, the Info
panel shows the change in x and y, the distance and the angle from
the anchor to the handle's end: the outgoing handle of a new, added
or last anchor, and the incoming handle of the first anchor when the
drag closes the path. Shift gives the constrained handle and Space
moves the anchor with it. The readout clears on release, a dropped
press and a tool change.
2026-11-17 14:52:13 -08:00
dotCooCoo aa29839069 Tools: the Three-Point Arc tool places a point with the keys held at release
A release at the position of the last pointer event kept the point that
the earlier keys had constrained. Pressing the third point with Shift and
letting go with Shift and Alt drew the direction from the second end but
kept the 45-degree step taken from the first. The release now places the
point again when Shift or Alt changed, for both ends and the third point.
A change of keys alone does not make the first press a drag, so a click
that snaps to an anchor and is let go with Shift changed places only the
first end.
2026-11-17 14:31:13 -08:00
dotCooCoo a411d285d4 Direct Selection: the selected blend spine check returns at once when no blend is selected
The checks that look only at selected blends' spines (Direct Selection's
hover, press and marquee, the Anchor Point tool's press and handles, and
the Pen's click on a spine) walked the whole document and built every
blend's spine before keeping the selected ones. They now go through
direct::selected_spines, which returns an empty list when no selected
object is a blend and otherwise keeps the same order and filter. The
check that finds a point on any blend's spine is unchanged.

On 20,000 paths and 200 blends, 500 checks with one plain path selected
took 24 us instead of 336 ms; with one blend selected the time is the
same. Results are compared against the old filter in the tests.
2026-11-17 14:27:34 -08:00
dotCooCoo 5d64adf19a Shapes: a double-click on a polygon's side widget leaves the artwork under it alone
With the Selection tool, a double-click on the side widget no longer
edits or isolates the object under the widget, as with the blend widget.
2026-11-17 14:02:19 -08:00
dotCooCoo 2bc8068d31 Shapes: a side widget drag ends at the release point and cancels on a tool switch
Releasing the side widget, with the Selection tool or a shape tool, reads
the release position before the count is kept, so a release back at the
start leaves the polygon's count with no undo step even when no drag
event came at that point. Switching tools during the drag puts the count
back, as Escape does.
2026-11-17 13:55:21 -08:00