Commit Graph
1609 Commits
Author SHA1 Message Date
.CooCoo d3de968852 Merge pull request #9859 from dotCooCoo/fix/direct-click-keeps-group
Direct Selection: a press on a member of a selected group keeps the group
2026-11-28 03:13:58 -08:00
dotCooCoo 3d33094d39 Direct Selection: hover marks the anchor a press takes across selected groups
The selected paths a hover tries were listed group by group in selection
order, while a press tries them topmost first across the document. With two
selected groups whose anchors fall within reach, hover marked the back
group's anchor and a press took the front one. The list is now sorted in
paint order, topmost first, with a Shaper Group's original shapes included.
2026-11-28 02:39:57 -08:00
.CooCoo aeed0ad5a1 Merge pull request #9807 from dotCooCoo/feat/select-inside-unfilled-shape
Selection: a click inside an unfilled closed shape selects it
2026-11-28 02:21:27 -08:00
.CooCoo 1997b26e7b Merge pull request #8828 from dotCooCoo/feat/corner-widget-hover
Live Corners: hovering a corner widget highlights the corner it controls
2026-11-28 02:16:55 -08:00
dotCooCoo 3499b7d7aa Merge main into feat/select-inside-unfilled-shape 2026-11-28 01:41:16 -08:00
dotCooCoo 805758722a Merge main into feat/corner-widget-hover 2026-11-28 01:39:04 -08:00
dotCooCoo 6b12d7e600 Merge main into feat/tangent-circle-ask-radius 2026-11-28 00:21:17 -08:00
dotCooCoo 7c50924fcb Merge main into fix/direct-click-keeps-group 2026-11-27 22:19:40 -08:00
.CooCoo a8beb0310a Merge pull request #9731 from dotCooCoo/fix/browser-place-distinct-sources-w4
Keep distinct browser Place files that share a name
2026-11-27 22:11:26 -08:00
dotCooCoo d8a02e74bf Merge main into feat/tangent-circle-ask-radius 2026-11-27 21:58:11 -08:00
.CooCoo 5fe987ee2d Merge pull request #9860 from dotCooCoo/feat/ctrl-click-select-behind
Selection: Cmd/Ctrl-clicks step through grouped objects under the pointer
2026-11-27 21:44:40 -08:00
.CooCoo 8ffd30cf37 Merge pull request #9791 from dotCooCoo/fix/direct-move-edge-snap
Direct Selection: a path held by its edge lands that point on other paths
2026-11-27 21:44:09 -08:00
.CooCoo ec0d967b1b Merge pull request #9830 from dotCooCoo/fix/fill-area-unresolved-clipped-subpath
Fill Area: a clipped path its mask cannot cut stops the areas it reaches
2026-11-27 21:42:32 -08:00
.CooCoo 3129fefd0c Merge pull request #9795 from dotCooCoo/fix/smart-guides-press-reuses-hover
Smart Guides: a press reuses the targets the hover gathered for the same document state
2026-11-27 21:41:54 -08:00
.CooCoo 61f41edbc3 Merge pull request #9851 from dotCooCoo/fix/complexity-tests-count-work
Tests: complexity tests in effects, brush, tools and trace count work instead of timing it
2026-11-27 21:37:11 -08:00
dotCooCoo 931c67c49c Preserve exact-size Place drag boxes 2026-11-27 20:48:07 -08:00
dotCooCoo 944ba1c0c1 Direct Selection: a press on a member of a selected group keeps the group
With a group selected, Direct Selection treated a click on one of its
paths as a click on an unselected path: it selected that path alone, so
a drag moved only that path. The tools checked whether the path itself
was in the selection and ignored a selected group around it.

A path inside a selected object now counts as selected whole:

- A click on its fill keeps the group selected, and a drag from its
  fill or one of its anchors moves the group whole.
- A click on one of its anchors or segments selects that anchor or
  segment alone, as for a selected path.
- Its anchors show the selected-anchor cursor and highlight, and an
  object above the group does not take a press on one.
- Group Selection adds the group above the outermost selected one, and
  keeps the selection when that is the top group.

This applies to the Cmd/Ctrl press the Selection tool lends Direct
Selection too.
2026-11-27 20:11:45 -08:00
dotCooCoo 3935a0775d Keep Place import state tied to its source entry 2026-11-27 20:03:44 -08:00
dotCooCoo 2fc711da77 Dimension: Linear points snap onto preview bounds edges, groups and stroked type
With Use Preview Bounds on, a Linear point landed only on the four corners
of the preview bounds of a path or compound path. A group's own stroke or
effects and stroked type widen the bounds that W and H show, but gave no
corner to pick, and a click beside a stroked edge snapped to the stroke's
centerline.

- Stroked type, and a group or layer with fills, strokes or effects of
  its own, now give the corners of their preview bounds. A group's corner
  is held against the member path whose own box reaches nearest to it. A
  point on type has no link and stays where it was picked. A group or
  layer holding dimension artwork gives no corner, since its bounds take
  in the dimensions.
- A click that no anchor, corner, line end, guide, grid or pixel snapping
  places lands on the nearest point of an edge of the preview bounds
  within 8 pixels when no segment or dimension line is nearer. The point
  is held against the path holding the edge's nearer corner.
- Group members count against the same per-move member work as compound
  paths; a group holding more than one move may read is not read again
  for that revision.

Docs: docs/dimensions.md, docs/target-app-parity.md.
2026-11-27 18:55:32 -08:00
dotCooCoo 1d66710671 Selection: Cmd/Ctrl-clicks step through grouped objects under the pointer
With the Selection tool, the first Cmd-click (Ctrl on Windows and Linux)
now always goes to Direct Selection or Group Selection, also over a
selected object: it picks the object under the pointer, a member of a
group included, and arms Select Behind. While Cmd stays held, each
further Cmd-click over the selection selects the next object under the
pointer, counting the members of groups one by one, and comes back to
the topmost after the last. Letting go of Cmd (a pointer, hover or key
event without it), choosing another tool or switching documents ends it.

Before, the first Cmd-click over a selected object selected the object
behind it at once, and Select Behind stepped through whole groups, so a
member lying under another member of the same group could not be
reached that way.

- doc::hit::leaves_at lists the objects a Direct Selection click picks
  under a point, topmost first, in one traversal of the document; a
  clipping mask or a group drawn with its own geometry effects falls back
  to repeated hit tests. The list stops at 256 objects.
- The session keeps the arming (Session::behind_armed) and passes it to
  the tools as ToolContext::behind_armed.
- Docs: docs/control-protocol.md (ui.pointer), docs/mcp.md,
  docs/target-app-parity.md and docs/ui-parity.md.
2026-11-27 18:47:39 -08:00
dotCooCoo baad987df5 Tests: complexity tests count work instead of timing it
Eight tests in effects, brush, tools and trace bounded their run time
with Instant::elapsed. Each now counts the work the bounded code does
and asserts that count instead:

- effects: the subpaths Offset Path offsets after Transform copies
  move behind it (1 for the rectangle, 5 for five leaves)
- brush: the calls a misbehaving bend map gets, at most what the
  fitting depth and the chord count allow
- tools: the points Liquify's simplify measures (five per anchor) and
  the anchors it moves (one each), and the objects the eyedropper's
  hit tests may visit (within the work limit)
- trace: the named logo colors compared with those kept (ten per
  color), the lookups that drop repeated swatches (one each) and the
  swatch colors compared with the picture's colors (each distinct
  swatch once per color)

Each count fails when the bounded step is removed or made to repeat.
2026-11-27 17:58:50 -08:00
dotCooCoo f119cd9e61 Fill Area: a clipped path its mask cannot cut stops the areas it reaches
When a clipped subpath had more segments or crossings than the crossing
search takes, Fill Area dropped it before the search, so a square that
its visible part crossed was still filled whole. Such a subpath now
stays out of the maps but is kept aside with the masks around it, and
an area it crosses or comes within the gap of is not filled when every
one of those masks reaches the area. An area it stays clear of, or
crosses only where a mask hides it, is filled as before. The hover
counts these subpaths and their masks when it decides whether to
search on another thread. docs/mcp.md describes the rule.

Follows #9336.
2026-11-27 16:43:16 -08:00
dotCooCoo 5433e02d8e Selection: a click inside an unfilled closed shape selects it
With Object Selection by Path Only off (the default), the Selection,
Direct Selection and Group Selection tools, Object Highlighting and a
right-click's selection now pick a closed path or compound path that
has no fill by a click inside its closed subpaths. Before, such a shape
could only be picked on its path, and a click inside started a marquee.

The inside counts only where no other object is hit: a click first
looks for what paints at the point, the same as before, and only then
for the topmost unfilled closed shape around it, so art drawn inside a
frame is still picked before the frame. Select Behind lists those
shapes after the objects that paint there, and Direct Selection in a
dynamic symbol's art picks parts in the same order. Open paths, guides
and clipping paths are still picked by their path only, and Outline
view is unchanged. With Object Selection by Path Only on, the inside of
an unfilled shape takes no click, as before.

Three tests clicked inside an unfilled square and expected nothing to
be selected: the Selection and Direct Selection center point tests and
the outside-stroke reach test. They now run with Object Selection by
Path Only on, and the Direct Selection and stroke reach tests also
check that the click selects the square with it off.

Fixes #9175
2026-11-27 13:49:28 -08:00
dotCooCoo 4adad149ac Direct Selection: a path held by its edge lands that point on other paths
With Smart Guides on, a path selected whole that Direct Selection or
Group Selection moved held by a point of its edge (a press on its fill
within 6 screen points of the edge, and with Group Selection also a
press on its stroke or, in Outline view, its outline) snapped that point
only to other anchors and centers, or lined its bounds up. It now snaps
as the Selection tool's edge hold does since #8617: the point also lands
on the other objects' paths ("path") and where paths and ruler guides
cross ("intersect"), and on a straight path the selection slides along
it until its bounds line up.

The shape tools move the selection only from its center point, which
snaps as the Selection tool's center press does, so they are unchanged.
2026-11-27 12:46:50 -08:00
dotCooCoo bde2e10eec Smart Guides: a press reuses the targets the hover gathered for the same document state
Part of #8296.

DrawSnap::press gathered the snap targets from all the art in the window on
every press, while a hover reuses them until the document's revision, what is
left out, the window or a snapping option changes. Every drawing tool hovers
over the point it then presses, so each Pen click (and each press of the
shape, Type, Artboard and Scissors tools) walked the whole document again for
targets equal to the ones it already held.

A press now gathers only when that key differs from the one the targets were
gathered for, the same check hover makes. The drag a press starts still keeps
the press's targets.

The Scissors test that pressed over a different document under the hover's
revision now gives that document a new revision, since the engine moves the
revision with every change to the document.
2026-11-27 12:39:00 -08:00
dotCooCoo a0f140310d Identify browser Place sources independently of duplicate filenames 2026-11-26 20:05:23 -08:00
BFlat 47272a7391 Merge pull request #9435 from dotCooCoo/fix/control-merge-reply-handshake
ui: synchronize the control test with the merge worker
2026-11-27 05:16:32 +07:00
BFlat 26c4bfdd4d Merge pull request #8801 from dotCooCoo/feat/quick-pen-edit-delete
Pen: Quick Pen drags move a selected path's anchors and segments, and its context menu deletes
2026-11-27 05:08:59 +07:00
BFlat 6a1b940f61 Merge pull request #8985 from dotCooCoo/feat/curvature-circle-options
Shapes: Curvature Circle Tool Options set its reach, label, anchors and arc rule
2026-11-27 00:52:58 +07:00
dotCooCoo dde0834cb3 test: check pending merge state before waiting for the worker
Enable the tools testing feature in its own test dependency so CI shards use the same features as the workspace.
2026-11-26 09:12:36 -08:00
dotCooCoo 44f6af4d95 ui: hold the merge worker until pending reply checks finish 2026-11-26 08:34:15 -08:00
BFlat f040538a39 Merge pull request #9007 from dotCooCoo/feat/windows-stylus-wheel-wintab
Windows: the Paintbrush reads an airbrush pen's stylus wheel through Wintab
2026-11-26 23:20:15 +07:00
BFlat 1d31f7ee5d Merge pull request #9006 from dotCooCoo/feat/tangent-circle-add-points
Tangent Circle Tool: Add Points to Existing Paths adds anchors where the circle touches
2026-11-26 23:19:49 +07:00
dotCooCoo e5d9376b9d Merge main into feat/curvature-circle-options 2026-11-26 07:08:30 -08:00
FredApps 7fae5bff07 Merge main into Scale Shift-drag axis (target-app-parity status line: main's) 2026-11-26 21:03:11 +07:00
BFlat f6474fc396 Merge pull request #9335 from dotCooCoo/fix/copy-region-ids-isolated-ancestor
Fill Area: ids that name what holds the isolated group take its paths
2026-11-26 16:48:34 +07:00
BFlat d8d3abfcbc Merge pull request #9356 from dotCooCoo/fix/ellipse-three-point-preview-bound
Shape tools: a huge circle through Shift-clicked points is previewed solid
2026-11-26 16:48:08 +07:00
dotCooCoo a26d5981bd Path Precision Tools: a Tangent Circle press with Shift keeps the radius it started with
A radius written with tool.setOption during a press changed the circle
only when Shift was released and pressed again before the drag started.
The press now keeps the radius from its button press for every Shift
change until the release.
2026-11-26 00:21:12 -08:00
dotCooCoo 013cf4dacb Fill Area: outline pieces on a clipping mask's edge count as shown
clip_to kept a piece of an unfilled outline only when its middle tested
inside the mask, and a point on the mask's own outline tests inside on
some sides and outside on others. A square clipped by the same square
kept two sides, so Fill Area found no area inside it.

A piece whose middle lies on the mask's outline now counts as shown when
the mask's filled area lies on one side of it. A piece just outside the
mask, and a piece on an outline of the mask that bounds no filled area,
stay hidden.
2026-11-25 21:39:58 -08:00
dotCooCoo 65e48e08c7 Merge main into feat/corner-widget-hover 2026-11-25 20:02:29 -08:00
dotCooCoo 3e5299a1d6 Shape tools: a huge circle through Shift-clicked points is previewed solid
The Ellipse tool previewed the circle through two Shift-clicked points
and the pointer as a dashed outline at any size. The canvas dashes an
outline along its whole length, so points nearly on one line (a radius
of about 1,250,000 pt) gave about a million dashes every frame.

The preview now uses the Circle tool's limit: a circle more than 50,000
screen points around is drawn solid. Both tools call one helper,
`circle::preview_dashed`.
2026-11-25 19:22:30 -08:00
dotCooCoo 6cb7fcadae Merge main into feat/quick-pen-edit-delete 2026-11-25 19:18:48 -08:00
dotCooCoo 046a97cb73 Merge main into feat/curvature-circle-options 2026-11-25 19:16:23 -08:00
dotCooCoo cec8e029f7 Merge main into feat/tangent-circle-ask-radius 2026-11-25 19:05:38 -08:00
dotCooCoo 7291fe1aed Merge main into feat/tangent-circle-add-points 2026-11-25 18:51:00 -08:00
dotCooCoo bd8e900251 Windows: the Blob Brush's Stylus Wheel size also opens the Wintab context
The Blob Brush takes Stylus Wheel for its Size, and its tip already
counts through Tool::reads_wheel. The test and the docs name it.
2026-11-25 18:16:02 -08:00
dotCooCoo 0bda609041 Merge main into feat/windows-stylus-wheel-wintab 2026-11-25 17:56:18 -08:00
dotCooCoo 7418753350 Windows: the Wintab context opens only while the tool uses the wheel
The Paintbrush with a brush whose Size or Width is on Stylus Wheel with
a range the wheel can change, or the Eraser with a value on Stylus Wheel
and a variation above 0, uses the wheel. The app asks the active tool
(Tool::reads_wheel) once a frame and tells the host when the answer
changes (Services::stylus_wheel). Until a tool uses the wheel, a pen
message loads no Wintab32.dll, installs no hook, subclasses no window
and opens no context; when it stops, the context closes.
2026-11-25 17:53:48 -08:00
BFlat dc0c47a9a3 Merge pull request #9329 from dotCooCoo/feat/rotate-ruler-guides
Guides: selected ruler guides rotate with the Rotate tool and Object › Transform › Rotate
2026-11-26 08:48:18 +07:00
BFlat daccee9065 Merge pull request #9100 from dotCooCoo/fix/shape-builder-color-pick
Shape Builder: a fill chosen while the tool is active leaves the selection's fills
2026-11-26 08:48:05 +07:00