Commit Graph
265 Commits
Author SHA1 Message Date
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 5203dda3d6 Merge pull request #8439 from ncic/pencil-redraw-smooth
Pencil: a redraw stroke's bend stops at the edit distance, and its preview shows on top in any drawing mode
2026-11-26 08:43:24 +07:00
BFlat 04631eb028 Merge pull request #8989 from dotCooCoo/feat/blob-eraser-size-stylus-wheel
Blob Brush: Size offers Stylus Wheel
2026-11-26 08:43:10 +07:00
ncic 187e9c9c8a Pencil: a redraw stroke's bend stops at the edit distance, and its preview shows on top in any drawing mode (#8438)
Most of this pull request reached main with #4221 (the smooth join and the
redraw preview). What is left:

- A redraw stroke's end bends onto the path over Edit selected paths' distance.
  When the stroke's points are far apart (a fast stroke), the bend used to run
  on to the next point; a point is now added where the bend stops, and only one
  where both ends' bends stop at the same place.
- The preview of a redraw stroke is drawn on top, as with Draw Normal, in Draw
  Behind and Draw Inside too; before, it went behind the path or into its clip
  group. path.freehand's `leaveSelection` becomes `preview`, which does both.
2026-11-25 21:51:08 +01:00
dotCooCoo 435570b7c1 Merge main into feat/smooth-tool-smoothness 2026-11-25 04:45:17 -08:00
dotCooCoo 5e775d840b Merge main into feat/blob-eraser-size-stylus-wheel 2026-11-25 04:00:44 -08:00
BFlat 7df7885a11 Merge pull request #4221 from ncic/pencil-redraw-extend
Pencil: Edit Selected Paths follows a stroke lifted away from the path, carves, loops and closes
2026-11-25 17:44:43 +07:00
dotCooCoo 5f2a256449 Merge main into feat/smooth-tool-smoothness 2026-11-21 20:58:59 -08:00
BFlat 37610608f1 Merge pull request #8976 from dotCooCoo/fix/smooth-region-rejects-bad-params
Smooth: path.smoothRegion and path.joinScrub refuse a radius, fidelity or tolerance out of range
2026-11-22 11:37:54 +07:00
ncic 6cd0de02b1 Merge remote-tracking branch 'upstream/main' into pencil-redraw-extend
# Conflicts:
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-21 18:13:24 +01:00
dotCooCoo 0098c45951 Blob Brush: a stroke at one point paints a dab, and the tip shows what the release paints
A Pressure or Stylus Wheel stroke whose samples all lie at one point
gave path.blob a spine with no length, and the command failed with
"empty brush stroke". It now paints one dab sized from the first
sample's reading, as a single point does.

When Size changes from Fixed to Pressure or Stylus Wheel during a drag,
the release sends no pressure or wheel for the stroke, so it paints at
the Size. The tip outline now reads the pressure and the pen pose only
when the release reads them, for the Blob Brush and the Eraser.
2026-11-21 01:22:05 -08:00
dotCooCoo 2389cdfd7f Smooth: Smooth Tool Options' Smoothness sets how strongly a drag smooths
Smooth Tool Options gets a Smoothness setting under Fidelity, from 0% to
100%, where a higher value leaves a smoother path, as the help page
describes the setting:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=164

- path.smoothRegion takes an optional `smoothness` (0 to 100, 50 when
  left out). It scales the spread of the averaging done before the
  refit in proportion: none at 0, today's spread at 50, twice it at
  100. A value outside 0 to 100 is an error and changes nothing.
- The Smooth tool keeps the option with its preferences and sends it
  with each drag; Alt smoothing with the Pencil, Paintbrush and Blob
  Brush uses it, as it already uses the Smooth tool's Fidelity.
  tool.setOption refuses a value outside 0 to 100.
- The default and the way the percentage scales the smoothing are
  VectorCraft's own; the default keeps today's strength.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 01:09:50 -08:00
dotCooCoo c5a98e19f0 Tools: restored Spiral, Rectangular Grid and Polar Grid counts keep the current value
A saved preferences file is restored onto the drawing tools without the
option check that tool.setOption applies. A Spiral segment count or a
grid divider count that was not a whole number (a string, a fraction, a
negative, null) reset the tool to 10 or 5 instead of keeping its
current count. The Arc tool's base axis took any string other than y as
x. Each now keeps its current value for such a value, and a whole
number keeps its existing range.

While a shape is dragged out, an ignored count or axis no longer
replaces the drag's starting value, so Escape puts back the values the
drag started with.
2026-11-21 00:52:40 -08:00
dotCooCoo d5e15200f1 Blob Brush: Size offers Stylus Wheel
Blob Brush Tool Options' Size menu offers Stylus Wheel beside Fixed and
Pressure. With it the brush is Size - Variation wide at one end of an
airbrush pen's finger wheel travel and Size + Variation at the other, in
a drag, a click and with a tip that is not round. A point without a wheel
counts as half way, and a mouse stroke keeps the Size.

- path.blob takes sizeMode "stylusWheel" with the wheel seventh in each
  point, and its error for an unknown sizeMode lists the three modes.
- The tool keeps the mode, records the wheel, and sends it on release.
  While the Blob Brush paints, its tip outline takes the size the pen
  gives (on Pressure too), and keeps the set angle and roundness. A wheel
  turned with the pen held in place updates the last sample.
- The Eraser's Size already offered Stylus Wheel and is unchanged.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 00:32:08 -08:00
dotCooCoo 239a7d61d0 Smooth: the dashed band shows the radius its release sends at the lowest zooms
The band a smoothing drag shows took the Smooth radius in points without
the 1,000 pt bound the release applies, so below 1.2% zoom it drew wider
than the region path.smoothRegion smooths. It now uses the same bound.
2026-11-21 00:15:55 -08:00
dotCooCoo 342341a55f Smooth: path.smoothRegion and path.joinScrub refuse a radius, fidelity or tolerance outside its range
path.smoothRegion read a radius below 0 as 0 and moved a fidelity into its
range, and path.joinScrub read a tolerance below 0 as 0. Each now refuses
a value outside its range with an error naming the key, and the document,
the selection and the undo history do not change: radius and tolerance
0.001 to 1000 pt (the Path Eraser's width range), fidelity 0.000078125 to
about 3195 pt (the Smooth tool's 0.05 to 100 px at the highest and the
lowest zoom). A key left out or null keeps its default.

The Smooth, Join and Path Eraser tools, and an Alt smoothing drag with the
Pencil, Paintbrush or Blob Brush, keep what they send within these ranges
at any zoom, also when the interface zoom puts the tool's zoom past the
view's range.

Docs: params text, docs/mcp.md, docs/target-app-parity.md.
2026-11-20 23:42:48 -08:00
BFlat 43e0407cd0 Merge pull request #8891 from dotCooCoo/fix/eraser-drag-midpoint-tip
Eraser: a drag's outline takes the tip halfway along each step in two more cases
2026-11-21 10:36:19 +07:00
dotCooCoo f88a6b5877 Eraser: a drag's outline takes the tip halfway along each step in two more cases
The outline of an Eraser drag takes, at each step, the tip the pen gives
halfway along it, as path.eraseRegion erases. Two cases still used the
tips at the step's ends:

- A round tip whose Size follows the pen drew each step as wide as the
  mean of the tips at its ends. Where an end is held at the 0.1 pt least
  size, that mean differs from the tip halfway along: with Size 10 pt on
  Pressure by 20 pt, a step from no pressure to full pressure showed
  15.05 pt wide where the release erases 10 pt.
- A pen turned or tilted in place at the last point updated the last
  step only when the tip at that point changed. With Size 10 pt on Tilt
  by 20 pt, tilting from 80 to 85 degrees after an upright point keeps
  the end tip at 0.1 pt while the tip halfway along goes from 12.22 pt to
  11.11 pt, and the outline kept the old one. The area outline now keeps
  and compares the tip halfway along the last step.
2026-11-20 15:47:54 -08:00
dotCooCoo 90130f37ed Shape tools: the Smart Guide label of a hover goes when the pointer leaves the canvas
With Smart Guides on, hovering a shape tool over another object's anchor
or edge shows the "anchor" or "path" label where the new shape would
start. When the pointer then left the canvas, went under a panel or
menu, or a middle-button drag started panning, the label stayed on the
canvas at the last hover point. The Rectangle, Rounded Rectangle,
Ellipse, Polygon, Star and Line Segment tools now drop it when their
hover ends, and so do the Arc, Spiral, Rectangular Grid and Polar Grid
tools, as the Scissors tool already does.
2026-11-19 20:55:39 -08:00
ncic ef84260edb Merge remote-tracking branch 'upstream/main' into pencil-redraw-extend
# Conflicts:
#	crates/engine/src/cmd/draw2/commands.rs
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-20 00:24:54 +01:00
yoriswind 36bde202eb Scissors: preview the actual cut point
Show the native point marker at the existing cut target, respecting consumer endpoint eligibility/canonicalization and current snapping/selection. Keep cut commands unchanged.

Closes #8655.
2026-11-19 20:00:59 +00:00
BFlat 3f0707e64f Merge pull request #7103 from dotCooCoo/feat/stylus-wheel
Brushes: an airbrush pen's stylus wheel varies brush size and width
2026-11-19 14:46:40 +07:00
yoriswind 0471818814 Merge current main while preserving PR #6713 2026-11-19 06:32:22 +00:00
dotCooCoo 00f9a9c205 Brushes: main's eraser and bristle tip tests take the stylus wheel
The Bristle tip outline reads the five pen controls and leaves the
wheel unused. The bristle tip test's pen pose gives no wheel, and the
eraser test's mode error lists `stylusWheel`.
2026-11-18 17:44:35 -08:00
dotCooCoo 4080708714 Merge main into feat/stylus-wheel 2026-11-18 17:25:37 -08:00
ncic 59461a08a9 Merge main into pencil-redraw-extend
# Conflicts:
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-18 23:02:27 +01:00
bflatastic f79889da55 Merge main into #8517 2026-11-19 01:21:06 +07:00
BFlat a0bc3a7900 Merge pull request #8500 from dotCooCoo/feat/bristle-pen-cursor
Paintbrush: preview Bristle tip for rotation-capable pens
2026-11-19 00:43:00 +07:00
dotCooCoo 18c4a7b965 Merge main into feat/stylus-wheel 2026-11-18 07:27:22 -08:00
dotCooCoo 095897d658 Merge main into feat/anchor-point-alt-link-handles 2026-11-18 06:26:39 -08:00
ncic 8ff0d4b236 Merge main into pencil-redraw-extend
# Conflicts:
#	crates/engine/src/cmd/draw2/commands.rs
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-18 07:47:19 +01:00
BFlat 0c7b92730b Merge pull request #8467 from dotCooCoo/perf/direct-blend-spine-guard
Direct Selection: the selected blend spine check returns at once when no blend is selected
2026-11-18 13:14:15 +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 7973b6254c Keep precise-cursor regression meaningful 2026-11-17 20:53:26 -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 18cf1d7a93 Hide Bristle tip after post-commit selection 2026-11-17 18:13:58 -08:00
dotCooCoo 0637f14bfd Keep Bristle tip in sync with Alt release 2026-11-17 18:01:35 -08:00
dotCooCoo 375b2a23e1 Preview Bristle brush tip for rotation-capable pens 2026-11-17 17:14:05 -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 09b7f6c3ce Merge main into feat/stylus-wheel 2026-11-17 12:36:31 -08:00
yoriswind 49955611f4 6470: align Scissors guide fixture with Smart Guides options 2026-11-17 11:27:22 -08:00
ncic ada3beb48a Merge remote-tracking branch 'upstream/main' into pencil-redraw-extend
# Conflicts:
#	crates/engine/src/cmd/draw2/commands.rs
#	crates/engine/src/cmd/draw2/freehand.rs
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-17 19:55:28 +01:00
dotCooCoo 22d44c6fae Tools: the Spiral and Arc tools refuse the values they would keep as others
The Spiral tool's option check took a decay up to 150 while the tool keeps
at most 99.99, so `tool.setOption` reported success with another value. It
now takes 5 to 99.99. The Arc tool's lengths are checked from 1e-9 to 1e6,
the lengths it keeps. The Spiral dialog sends a typed decay past 99.99 as
99.99, the decay the spiral was already drawn with.

The Arc dialog test now expects OK to refuse a slope outside -100 to 100
and a Base Along other than X or Y, leaving the dialog open and the options
unchanged. The Slope field and its slider keep a typed value within that
range.
2026-11-17 08:55:24 -08:00
yoriswind 676a8589b4 Format Scissors pixel option repair 2026-11-17 08:31:11 -08:00
yoriswind c4e36de0f0 Use Drawing pixel snapping options consistently for Scissors 2026-11-17 08:28:44 -08:00
yoriswind bdae835305 Merge current main before Scissors full local CI 2026-11-17 08:11:36 -08:00
dotCooCoo 14d814b9f0 Merge main into feat/stylus-wheel 2026-11-17 03:57:49 -08:00
dotCooCoo a8b658a33e Merge main into fix/tool-set-option-errors 2026-11-16 20:33:41 -08:00