Commit Graph
23685 Commits
Author SHA1 Message Date
dotCooCoo 2efe8814da Tests: drive the finger Rearrange check with touch events and check the view pans
The finger case of rearrange_is_not_placed_by_a_finger_once_a_pen_was_seen
now sends touch Start, Move and End events with the first finger pressing as
the pointer, adds a second finger and drags both, and checks that the view
pans while the waiting placement, the artboards and the history stay as they
were. The mouse placement check is unchanged.

rearrange_refuses_bad_indices_and_at also checks that an `at` that would put
an artboard past the canvas is refused and leaves the artboards and the
history as they were.
2026-11-21 01:51:40 -08:00
dotCooCoo 79ff502412 Save PDF: an object set where a settings object held a null one keeps the preset's options
After ui.dialog.set left a null object inside a settings object (for
example compression.color), a later object set there took the options
it leaves out from the default settings, so the dialog showed a ppi of
300 while Save PDF used the preset's. They now come from the matching
object of Save PDF's preset, as the save takes them. The test covers it.
2026-11-21 01:42:15 -08:00
dotCooCoo 0aafbdeb6d 3D: twisted bevel pieces meet the inset cap at sharp joins
A twist cut a beveled edge at points of the art's curve itself, while the
inset cap's edge eases its corners' miter offsets across the whole edge.
Where the art meets another edge at a sharp angle, the pieces next to the
cap drew a different curve from the cap's, leaving a gap of up to about
1.5 pt between them.

Each cut corner now takes the edge's corner offsets, eased across the
edge as the cap's edge eases them, and each piece follows the whole
edge's curve, so the pieces draw the cap's edge within the cap's
sampling tolerance, with and without perspective.

The tiny-circle test now also requires the solids to keep at least one
curve before it checks their control points.
2026-11-21 01:38:37 -08:00
RuchirandCursor edfaed0837 Offer Ungroup, Isolate Group and Unite from the whole selection.
Quick Actions read only the first selected object, so a group later in the selection had no Ungroup, several groups still offered Isolate Group, and several paths had no Unite.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 15:08:28 +05:30
dotCooCoo 956a76baa6 Paths: tied start candidates at one point search the old path once
When several refit points tie for nearest to a closed path's old start,
the earliest-along-the-path tie rule now places each distinct point on
the old path once, so many segments meeting at one point no longer
search every old segment once each. The tie rule is unchanged. Also
"the same way around" in the docs.
2026-11-21 01:36:06 -08:00
dotCooCoo bab25d0248 Scripts: a document opened from a linked file stays read-only when its path changes
The gate now records each path a script's command reads only because it led
to a file the open documents link to. A document whose file is such a path is
taken out of the open documents' files for the rest of the run, without
looking at where the path leads now or what the script may read now. Before,
the gate decided that again for each command from the path's current target,
so a path pointed at another file by a link, or a read grant given later,
let the run read and write through the document.
2026-11-21 01:32:08 -08:00
dotCooCoo 6be0bafa72 Color Wheel: color.contrast's params text describes the 8-bit check on a fix
The params text now says what docs/mcp.md says: a fix also meets the
level with the color, the background, the art below each group or
layer, the opacities, and the color and alpha each level gives rounded
to 8 bits per channel. docs/mcp.md names the rounded color and alpha of
each level too.
2026-11-21 01:28:18 -08: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 34a0070618 Path Precision Tools: the Tangent Circle Tool's options set its preview and how near it snaps
The Tangent Circle Tool's options dialog and tool.setOption take five more
options, kept with the preferences: center and radii show or hide the
preview's center cross and the lines to the two touch points, color sets
the color of the circle, the cross, the lines and the no-circle note (red,
blue, magenta, green, black or gray), snapTolerance sets how near (screen
pixels, 0 to 25) the pointer picks a segment, and snapWithoutGuides keeps
that reach with Smart Guides off. With Smart Guides on, their Snapping
Tolerance counts when it is larger; with snapping off a segment is picked
within the Selection Tolerance. The help page lists these options:
https://docs.astutegraphics.com/subscribe/tangent-circle-tool

The defaults (both shown, red, 3 px, snapping on) are VectorCraft's own.
With Smart Guides on, the default reach is now their Snapping Tolerance
(4 px) instead of the 3 px Selection Tolerance.

Of the segments within reach the tool now picks the nearest one, not the
first one found, so a larger tolerance does not pick a farther path over
a nearer one. tool.setOption gives an error for an unknown color, a
tolerance outside its range or a value of the wrong type, and sets none
of the values.

Docs: docs/mcp.md, docs/target-app-parity.md, docs/ui-parity.md.
2026-11-21 01:17:24 -08:00
dotCooCoo 16bd590f41 Tangent Circle Tool: Ask For Circle Radius asks for the radius after a click
Two new tool options, both off by default. With Ask For Circle Radius
(`askRadius`) on, a click on the second segment that finds a circle,
with or without Shift, opens a Tangent Circle dialog at that circle's
radius instead of drawing; a drag, which sets the radius itself, still
draws at once. Each radius typed previews the circle of that radius
nearest the click. A radius with no circle there shows the tool's note
and leaves OK off; a radius outside 0.01 to 1000000 pt, other than the
one the dialog opened with, is an error. OK draws the circle in one
undo step, and Cancel draws nothing and keeps the first segment picked.
With Auto-Update Default (`autoUpdateDefault`) on, OK also makes the
radius given the tool's Shift radius.

Both options persist with the tool's radius, show in the tool's
options dialog and reject values that are not true or false.

Part of #7178.
2026-11-21 01:10:37 -08:00
dotCooCoo c7eadb9656 Shapes: Curvature Circle docs say when Snap with Smart Guides Off has no effect
docs/mcp.md and the tool's module comment say that unchecking Snap
with Smart Guides Off does not change the reach when Selection &
Anchor Display's Tolerance is as large as it.

Two test comments now say the cubic's own curvature at the end of a
quarter circle is smaller than the circle's, as their assertions
check.
2026-11-21 01:10:23 -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 b57d3393eb Smooth: a drag's segment search stays within its piece limit however many curved segments are in reach
A Smooth drag gave each curved segment in reach at least one measured piece
of its share of MAX_REACH_PIECES, measured the whole of every curved segment
it passed, counted or not, and charged a segment's own share one piece per
call while each halving measured two, so the total grew past the limit when
more curved segments than the limit were in reach, and a long curve measured
a few pieces more than its share.

path.smoothRegion now keeps one count of the pieces the whole drag may
measure past the first measurement of each curved segment. A piece is halved
only when two pieces are left both in the segment's share and in the drag's
count, and both halves are taken from each before either is measured. A drag
measures at most 131,072 pieces plus one for each curved segment it
searches, the segments in reach still share the search equally whatever
order they come in, and a segment searched after the count runs out is still
found in reach at its middle or its point nearest the drag.

Docs: docs/mcp.md (path.smoothRegion), docs/target-app-parity.md.
2026-11-21 01:09:31 -08:00
dotCooCoo e29e8b936a Tests: Undo and Redo name an effect step as the Effect menu does
The Undo/Redo menu test now applies Feather in French, where the
plain row of the English label and the Effect menu's Feather differ,
and expects the effect's name from i18n::effect_name. The check of a
plain step runs in Japanese.

Also spells "catalog" in the built_in_effect doc comment.
2026-11-21 01:08:58 -08:00
dotCooCoo 8833fde4a9 Web: the stylus wheel stays learned when the pen hovers across the canvas edge
A hovering pen that moved off the canvas onto another element cleared what
it had read of its airbrush wheel, so back on the canvas a centered wheel
(0) read as no wheel. The pen now reads its wheel afresh only when a
pointerleave names no element it moved onto (relatedTarget), which is how
leaving the hover range is reported, on the canvas or off it.
2026-11-21 01:04:53 -08:00
dotCooCoo 222cd9a75d Merge main into feat/eyedropper-hover-highlight 2026-11-21 01:03:41 -08:00
dotCooCoo 38e36aeb81 Paths: Object > Path > Simplify and Smooth keep a closed path's start
Simplify and Smooth refit a closed path from its first corner and kept
that order, so the path's first anchor moved and its dashes started
somewhere else. A refit now starts at the old first anchor when it keeps
one there, otherwise at a new anchor where the refit passes nearest that
point while the result still has fewer anchors than the path had, and
otherwise at the refit's nearest anchor. Its direction stays the same.
A direct-selected run across the start follows the same rule; before,
the path started at the run's end anchor.

The Smooth tool's start_nearest moves into vectorcraft-pathops, and both
commands call it with the limit on anchor count above.
2026-11-21 01:00:16 -08:00
dotCooCoo a49d4f2036 Save PDF: a settings object set after a null one keeps the preset's options
docs/control-protocol.md said every settings value that isn't an object
is an error. A null is set as it is, and the save takes that section from
the preset; the docs now say so.

A settings object set after that section was null took the options it
leaves out from the default settings, so setting only marks.weight turned
off the preset's trim marks. They now come from Save PDF's preset, as the
save takes them. The test covers both.
2026-11-21 00:58:15 -08:00
dotCooCoo 86f1489895 Color Wheel: the contrast row's chips show the focus outline of the color fields
The fix chip drew no focus indicator, and the background chip recolored
its own border. Both now draw the outline a focused color field draws
around itself (widgets::focus_outline).
2026-11-21 00:57:36 -08:00
dotCooCoo 767c0798a9 Color Wheel: a contrast fix keeps the largest chroma sRGB shows at its lightness
The fix search lowered an out-of-gamut chroma by bisection, which stops
at the first gamut boundary. Near blue the chromas sRGB holds at one
lightness come in two stretches, so a blue that needed a little more
contrast lost much of its chroma (blue on #B8B8B8 got a fix of chroma
0.25 against blue's 0.31). The search now uses oklab::from_oklch, which
takes the largest chroma below the asked one that fits.
2026-11-21 00:57:36 -08:00
dotCooCoo 1bff8f1071 3D: Expand Appearance keeps curves on Inflate faces, interior bevel edges and twist cuts
Extrude & Bevel and Inflate drew several edges along the art's curves as
straight segments with a corner at every sample point, so Object > Expand
Appearance gave them corner anchors:

- The edges between two bevel steps and between two wall slices had no
  outline. Every band now gets the outline of both its rings, and the two
  faces that share a ring draw the same curves.
- A twist cut a wall's edge at points on the chord between two samples.
  The cut corners now lie on the art's curve, and each piece follows its
  own part of the curve, so the wall meets the cap along the cap's curve.
- Inflate's flat back, its side walls, and the cells of its front and
  puffed back along the outline were polygons. They now follow the art's
  curves, the cells within the sampling tolerance. The search for the
  cells' edges along the outline stops after 4,194,304 edges per solid
  (VectorCraft's own limit); the rest stay straight.

Visibility, depth order and face counts are still worked out on the
sampled polygons. Tests in crates/three-d/src/solid/tests_curves.rs.
2026-11-21 00:54:19 -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 8a878f0ebe Artboards: a finger press that only navigates does not place Rearrange's waiting artboards
Once a pen has been seen, a finger press on the canvas navigates the view.
Rearrange's waiting placement took that press as its click and moved the
artboards. The placement now skips it, and the press pans as before.
2026-11-21 00:41:10 -08:00
dotCooCoo a935af0015 Eyedropper: count the steps that copy a nested blend before sampling it
Each step of a blend whose keys are blends is a copy of one of them,
which makes its own steps when drawn. The work check before a blend is
evaluated now counts those steps too, with the same count the blend
uses to fit its steps (`vectorcraft_doc::blend::blend_steps_made`), so
a nested blend with more steps than the work left is not evaluated.

Tests check that the blend is not evaluated when the work left is too
little, for a plain blend and for an outer blend of nested blends.
2026-11-21 00:34:42 -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 4367a9ce68 Smooth: the progress line says every anchor and segment is still looked up
A release still looks up every anchor and curved segment of a path in
the drag's grid, so that work grows with the path's length. The line
now says the grid reduces the stretch measures, and that the 7,533 and
19,899,801 figures count stretch measures.
2026-11-21 00:22:58 -08:00
RuchirandCursor 01237f6379 Record Document Info Selection Only in the parity evidence.
The UI chrome row, status line and revision history now name the same tests as the gaps entry.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 13:51:48 +05:30
dotCooCoo 4cb3b0d5b6 Parametric Shape: W and H keep the shared reference point in place
The Parametric Shape panel's W and H fields resized a shape about its
center whatever point the reference point locator showed, while the
Transform panel and the Control bar keep that point in place.

- addon.pathtools.shape.set takes `reference` (0 to 8; any other value
  is an error). With it and no `center`, the point of the bounding box
  that object.setBounds measures (rotated with rotated objects, and as
  drawn with Use Preview Bounds) keeps its place. Without it the center
  stays, as before.
- The panel's W and H pass the locator's point.
- A shape set by id and not selected that the edit would take past the
  coordinate limit is refused, as object.setLiveShape refuses one.
- The result's `shape` is read back after the edit, and is null when
  snapping to the pixel grid left a plain path.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 00:21:10 -08:00
dotCooCoo 32fa158676 Stylus: docs name the web build as a source of the airbrush wheel
The stylus module doc and StylusFeed::set_move now say the web build reads the wheel from Pointer Events' tangentialPressure and keeps a pose for each move. The frame_moves doc comment is rewrapped.
2026-11-21 00:20:02 -08:00
dotCooCoo c33376b013 Color Wheel: contrast lines follow the Appearance of Black setting
The box's and the wheel's contrast lines measured each field color with
the plain display conversion, while color.contrast shows 100 % K alone as
black when Appearance of Black is rich. The lines now use the same
conversion through Backdrop::shown, and the backdrop the lines are kept
against carries the setting, so the lines are found again after the
setting changes.
2026-11-21 00:17:42 -08:00
dotCooCoo a46d022ed8 Color Wheel: contrast lines are found coarsely while a drag changes the field
A hue ring or strip drag changes the field on every frame, and a CMYK
target separates every sample, so finding the full lines each frame
slowed the drag. While a drag changes the field, the lines are found on
an 8 by 8 grid without the narrow-band search, and the full lines are
found once the drag ends. A drag that keeps the field keeps the full
lines.
2026-11-21 00:17:42 -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 45f6c20380 Color Wheel: a contrast fix also passes with its values rounded to 8 bits
color.contrast's fix search now accepts a candidate only when it meets
the level both as measured and with the color, the background, the art
below each group or layer, the opacities, and the pixel and alpha each
level gives rounded to 8 bits per channel. The renderer rounds the
paint's color and alpha that way, so a fix that meets 4.5:1 only before
rounding (a gray of about 118.7/255 on white, which paints as #777777 at
4.48:1) is no longer offered. The reported ratio and its pass results are
unchanged.

The per-level drawing of the backdrop moves into Pass::draw, which both
the measured ratio and the 8-bit check use.
2026-11-21 00:14:52 -08:00
RuchirandCursor bb66d9f5db Document Info counts the selection when Selection Only is on.
The panel menu stores the toggle, and an empty selection says that nothing is selected.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 13:40:49 +05:30
dotCooCoo f85fc7614e i18n: Bulgarian translates status and error messages
Bulgarian joins COMPLETE_MESSAGES. bg.tsv gets 987 new message rows
(982 @msg, 5 @msgplural) for the keys the other complete-message
languages translate, plus the liquify and variable context rows the
list tests read.

Nine existing Bulgarian @msg rows began with a space, so those status
messages were shown with a leading space. They are fixed, and the new
test message_translations_keep_their_english_edges checks every
catalog for a translation that adds whitespace at either end.

Docs: docs/localization-parity.md, docs/target-app-parity.md and
docs/development.md list Bulgarian with the other complete-message
languages.
2026-11-21 00:10:09 -08:00
dotCooCoo c8fb7729e5 Save for Web: diffusion transparency dither keeps its error past fully clear pixels
Fully transparent and fully opaque pixels keep their state but now pass on
the opacity error they receive. Before, that error was dropped, so a row
alternating half-opaque and fully transparent pixels kept every
half-opaque pixel opaque at amount 100. About half of them stay opaque
now, in a single row and in a checkerboard.
2026-11-21 00:08:27 -08:00
dotCooCoo 9758ece7ef Scripts: vc.run export of an open document reads its own linked files
A command a script runs with vc.run could read only the script's own places
and the open documents' own files, so an export, save, print or package of
a document whose linked images or placed files sit elsewhere fell back to
the saved previews.

The script gate now also reads, and never writes, the files that the
documents open when the run began link to: linked images, placed files, the
plate files of a DCS image and the images their data sets name. The list is
taken once, at the run's first vc.run, from those documents as they were
when the run began, and holds real paths, so a path that leads to another
file later is refused. A link the script adds or re-points, a path it names
itself and a document it opens give it no further file to read, a document
it opens from one of these files is not saved over it, and the automation
read roots and the name and traversal rules still apply first.
2026-11-21 00:07:34 -08:00
dotCooCoo 5e30728f4d Save PDF: a settings object set by ui.dialog.set keeps the options it leaves out
`ui.dialog.set` replaced a Save PDF settings object (`bleed`, `marks`,
`compression` and the others) with the value given. Options left out then
showed the default settings in the dialog, while Save PDF took them from
the chosen preset. With the bleed, the link copied the default top value
to the other sides while the file kept the preset's top: from a preset
with `[3, 5, 3, 3]`, `{"useDocument": false}` followed by linking wrote
`[3, 0, 0, 0]`.

- A settings object set there now sets only the options it holds; the
  ones it leaves out keep the dialog's values. A null option is still
  set as given.
- A value that is not an object is refused, and the request leaves the
  dialog as it was.
- A test sends a request that sets `bleed` and then an invalid
  `__bleedLinked` through the control handler and checks the dialog is
  unchanged.
2026-11-21 00:05:06 -08:00
dotCooCoo 91bfcc7455 Eyedropper: count a blend's steps before sampling it; hover skips a selected group member
Before the Eyedropper evaluates a blend to sample its color, it now
counts the steps of every blend the art holds against the work left.
When the steps alone exceed it, the blend is not evaluated and the
sample gives no color. Hover runs this lookup on every pointer move
with Shift held.

The Selection tool's hover outline, and the one it shows when lent to
the Eyedropper with Cmd, now outlines nothing over a selected group
member, where a press keeps the selection. It uses the same rule as
the press (select::selected_under_in).

Tests: blend_steps_count_before_the_blend_is_evaluated and
selection_hover_outline_skips_a_selected_group_member.
2026-11-21 00:04:25 -08:00
dotCooCoo 29dc2a4ec3 History: effect steps take the effect's name from the Effect menu
History and Edit > Undo/Redo looked a step's label up in the catalog's
plain row first, so in catalogs where that row translates the Feather
arrowhead (cs, es, fi, fr, hu, id, ka, nl, pl, pt-br) a Feather effect
step was named after the arrowhead. Many other effects had a plain row
that differed from their menu row too (de Levels), and the Appearance
panel showed Inner Glow, Outer Glow, Film Grain and others in English
when the catalog had only the menu row.

- The engine records which built-in effect a step applied or edited:
  HistoryEntry::effect(), set through Session::edit_effect around
  effect.apply, effect.setParams (when every target edits the same
  effect) and addon.color.filter, and kept through dialog previews,
  undo and redo. A step another command names like an effect (Object >
  Transform's Transform) and a step an undo group names keep none.
- i18n::effect_menu_label and effect_name give an effect's name from its
  @id row or the row of its English menu label. The Effect menu, Last
  Effect, History, Edit > Undo/Redo, the Appearance panel and its effect
  picker, the effect dialog heading and the Effect Gallery use them.
- The untranslated-text report lists missing effect names.
2026-11-20 23:59:24 -08:00
dotCooCoo 6fb2028149 Print: classify a freeform gradient's plate cells after their opacity
A translucent cell whose samples round to ink before its opacity is
applied, such as 0.4% cyan at 25% opacity, is written with no ink once
the opacity is applied, yet it was kept and painted paper over the ink
below. The cells are now classified from the samples the image writes
after opacity, and RGB cells in CMYK output from their converted inks.
2026-11-20 23:55:44 -08:00
dotCooCoo 6458bdd9c5 Smooth: a drag that reaches only a sliver of the next segment no longer splits it
A Smooth drag that ends partway along a path splits each segment it
leaves at the edge of its reach, so the anchor it adds there lies on
that edge. The next drag over the same place reaches that anchor and
only a sliver of the segment beyond it. Splitting that sliver gave the
refit a segment of almost no length to end on, so the refit lost the
path's direction there: on an ellipse dragged along its lower half, the
second drag added two more anchors and left two 71.6° corners, and
later drags turned the ellipse more each time.

A segment leading out of the smoothed stretch that is in reach for no
more than 1/64 of the reach from the stretch's anchor is now left as it
is, and the stretch ends at that anchor. The same drags on the
ellipse now keep the anchors of the first drag and leave no corner.
2026-11-20 23:52:25 -08:00
dotCooCoo 6b123376fd Docs: artboard.rearrange with at and no indices places the whole grid
Without indices the command lays out every artboard; at still sets the grid's top-left there. The mcp.md paragraph now says so.
2026-11-20 23:51:45 -08:00
dotCooCoo 7b9603bb87 Tests: the Slices keyboard test checks Line Color and starts from the search field
keyboard_focus_on_a_slices_row_shows_its_description stopped at Show Slice
Numbers, so nothing checked that keyboard focus on Line Color shows its
sentence, and the test passed even when the first Tab did not start from
the search field. It now uses tab_to_each, as the Hyphenation test does:
it asserts the search field has the keyboard first, then tabs to Show
Slice Numbers and Line Color in that order and checks that each focused
control carries its sentence.
2026-11-20 23:50:12 -08:00
dotCooCoo 49fd8652b1 Dimension tool: a geometry effect on any part keeps a dimension in place
A press on one part of a dimension now also checks its other parts for
a geometry effect, so an effect on an extension line keeps the drag
from moving the dimension (and from drawing the parts again without
the effect). In isolation mode, only art inside the isolated object is
compared with the dimension when the press decides between them.
2026-11-20 23:49:54 -08:00
dotCooCoo 5a26a9abd5 Dimension tool: Alt over a path places its overall width or height
With the Linear Dimension tool and Alt (Option on macOS) held, hovering a
path shows a box through its outermost points (a Smart Guide when Smart
Guides are on), with its width and height beside the pointer when
Measurement Labels are on. A click on the path, then a placing click, or a
drag out from it, places a dimension of the whole path. With the pointer
above or below the path it measures the width, between the leftmost and
rightmost points; beside the path it measures the height, between the
topmost and bottommost points. The linear dimensions help page describes
the Alt hover; which side gives which measure is VectorCraft's own rule.

dimension.create takes a new source, {kind: extent, node}, for linear
dimensions. Its points are the outermost points of the segments the path
draws, curves included, and are read again whenever the path changes, so a
turned path shows its new overall width or height. The line keeps its
distance from the whole path when the path changes or is reflected, and
when dimension.update changes the orientation, which now reads the other
pair of points. When the box through the path's outermost points stays
where it was, as after Reverse Path Direction, the line stays on its side.
A version without the extent source does not open a file that holds one.

The measurement label beside the pointer while two points are picked now
keeps its distance in screen pixels at any zoom.

The Help Bar hint names Alt+Click. Docs: docs/dimensions.md and
docs/target-app-parity.md.
2026-11-20 23:47:35 -08:00
dotCooCoo c6bea78bdf Shapes: Curvature Circle Tool Options set its reach, label, anchors and arc rule
Double-clicking the Curvature Circle tool opens Curvature Circle Tool
Options (`tool.options {tool: "curvatureCircle"}`, dialog
`curvatureCircleOptions`). OK sets the options with `tool.setOption`,
and the preferences keep them:

- Snap Tolerance (`snapTolerance`, 1 to 40 screen points, 5) is how
  near a path pulls the pointer; Smart Guides' Snapping Tolerance
  applies when it is larger.
- Snap with Smart Guides Off (`snapWithoutGuides`) unchecked keeps the
  reach within Selection & Anchor Display's Tolerance while Smart
  Guides are off.
- Annotate Radius (`annotateRadius`) unchecked hides the radius label.
- Anchors at Standard Positions (`standardAnchors`) unchecked draws a
  path with an anchor where the circle touches the path and one every
  90 degrees from there (`shape.curvatureCircle {anchors: "touch"}`).
- Use the Radius of Circular Arcs (`constantRadius`) unchecked gives
  the cubic's own curvature on the cubic of a circular arc too
  (`shape.curvatureCircle {constantRadius: false}`).

The range, the default and the Snap with Smart Guides Off rule are
VectorCraft's own. Every switch is on by default, so the tool draws as
before until an option is changed. The canvas check measures the path
drawn, whose cubics reach a little past the circle when its anchors
are where it touches.
2026-11-20 23:43:34 -08:00
dotCooCoo 5a2eae86a7 Smooth: a drag over a long path measures only the anchors and segments near it
A Smooth drag measured every anchor of each path against every stretch of
the drag, and every curved segment's box against every stretch twice, so a
release on a path of 100,000 anchors made tens of millions of measures
however short the drag was.

- The drag's stretches are listed once per release in a grid over the
  drag's bounds grown past the reach. An anchor outside those bounds is out
  of reach without measuring, and a point or box is measured only against
  the stretches listed in the cells it covers. Every query gives at least
  the stretches the whole-drag measure finds in reach, so the marks, the
  cuts and the smoothed path are the same as before.
- The refitted runs of a path are put back from its end without moving the
  rest of the anchor list for each run.

On a curved path of 100,000 anchors, a drag of 200 points over 200 pt of it
makes 7,533 measures to find the curved segments in its reach, where it
made 19,899,801.
2026-11-20 23:43:00 -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
dotCooCoo 5ea4753750 Print: an overprinting freeform gradient leaves out the cells its plate samples write without ink
On a PostScript plate, an overprinting freeform gradient left out only the
cells whose color is paper white. A cell such as 0.1% cyan rounds to no ink
in the 8-bit samples, yet it was kept and painted paper over the ink below.
The cells are now classified from the samples the image writes.

At Level 2, a field drawn again inside the clip of its inked cells was
charged its samples a second time against the page limit, so a page with
room for a reference to the image already kept left the placement out with
the too-large warning. The check now charges the reference when the image
is already kept.

Follows #8400.
2026-11-20 22:47:38 -08:00