Commit Graph
178 Commits
Author SHA1 Message Date
.CooCoo b8470d947f Merge pull request #5272 from ljkx/fine-nudge-5258
Nudge: Ctrl/Cmd+arrow moves by a tenth of the keyboard increment (#5258)
2026-11-30 15:27:20 -08:00
.CooCoo 38846fcdf3 Merge pull request #10116 from dotCooCoo/feat/edit-points-only
Selection Tools: Edit Points Only narrows a Direct Selection to its anchor points
2026-11-30 14:19:49 -08:00
dotCooCoo 680fd47b62 Merge main into feat/edit-points-only 2026-11-30 08:18:53 -08:00
dotCooCoo 13b9e22c4c Tests: merge two duplicate engine tests, keeping every assertion
Two engine tests ran the same inputs as another test and checked them
again with a tighter bound or a second check.

- commands_that_do_not_wait_for_a_tool_edit_change_no_document ran every
  junk case of every non-waiting command on the Single and Multi
  fixtures, which every_command_with_junk_params also runs. The junk
  sweep now compares tool_edit_state before and after each of those
  calls as well as its own panic, interaction and invariant checks. The
  tool-edit test keeps only the cases that turn each option on and off
  (option_cases), which the junk sweep does not send.
- turned_colored_inflate_facets_and_seams_cover_their_edges_once drew
  the same turned Inflate in the same solid fill as one case of
  colored_light_surfaces_match_supersampling_at_internal_facet_edges.
  That case now carries its bound (at most one RGB channel more than 3
  levels off, by no more than 4) and the separate test is removed.

Each merged test fails on a fault that only the removed check caught
before: document.info bumping the revision on a non-object params value
fails every_command_with_junk_params ("document.info "str" [Multi]"),
and solid_surface drawing every facet as a fill and a seam stroke fails
the supersampling test (2 channels off, at most 5).

docs/target-app-parity.md and waits_for_tool_edit's doc comment name
the tests that now hold these checks.
2026-11-30 05:29:35 -08:00
ljkxandClaude Opus 5.5 397cb9a472 Merge remote-tracking branch 'origin/main' into fine-nudge-5258
# Conflicts:
#	crates/engine/src/cmd/object/commands.rs
#	docs/ui-parity.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:58:07 +01:00
dotCooCoo f11aac5aaa Merge main into feat/match-objects-to-key 2026-11-29 15:00:53 -08:00
dotCooCoo b19aac26ec Selection Tools: Edit Points Only narrows a Direct Selection to its anchor points
addon.select.editPointsOnly {segmentEnds?} turns the current selection into
one that holds only anchor points, so a move or transform that follows acts
on the points alone. Selected segments leave the selection, and the points
at their ends leave it too unless segmentEnds is true. Paths selected whole
keep every point. A group or compound path selected whole gives way to the
visible, unlocked paths inside it (no Shaper Group originals, and no guide
paths while guides are locked). Type, images, symbols and other objects
without anchor points leave the selection.

Only the selection changes, so there is no undo step. With nothing selected
or nothing left to keep it is an error and the selection stays as it was.
The command is on the plug-in allowed list.

Object > Plug-ins > Selection Tools > Edit Points Only... opens a dialog
with Keep Ends of Selected Segments; it previews the narrowed selection on
the canvas, OK keeps it and Cancel puts the selection back.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-29 09:21:40 -08:00
dotCooCoo 2b61bdc752 Arrange Tools: Offset Objects chains the selection in a row or a column with a set gap
Object › Plug-ins › Arrange Tools › Offset Objects… (addon.arrange.offset)
puts the selected objects one after another in a row (left to right) or
a column (top to bottom), each a gap past the one before it; a negative
gap overlaps them. The order is the stacking order from the back or the
position (left or top edges), and Reverse Order runs it the other way.
The first object stays where it is, and the others move only along the
row or column, keeping their place across it. Objects are measured by
their visual bounds, a clipping group by its mask. One undo step, none
when nothing moves; bad params are refused.

The dialog has Direction, Gap, Order and Reverse Order with Preview.
Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md, ROADMAP.
2026-11-29 03:38:29 -08:00
dotCooCoo 4f2bb0d177 Arrange Tools: Match Objects gives the others the key object's size, angle and stacking place
Object › Plug-ins › Arrange Tools › Match Objects… (addon.arrange.match)
makes the other selected objects match one source object: the key
object, or the top or the bottom selected object. Each can take the
source's width (height in proportion), height (width in proportion) or
both, its bounding-box angle, and its stacking place directly above it
in its layer or group, about a reference point, as one undo step. No
step is recorded when nothing changes, and invalid params are refused.
The dialog previews on the canvas; OK stays off while nothing is chosen
or the source is a missing key object.

Docs: docs/mcp.md, docs/target-app-parity.md, docs/ui-parity.md, ROADMAP.
2026-11-29 03:38:13 -08:00
dotCooCoo 97316b5ce0 Merge main into feat/color-wheel-hex-alpha-css 2026-11-28 08:20:14 -08:00
ljkx 65331c2ba2 Merge remote-tracking branch 'upstream/main' into fine-nudge-5258
# Conflicts:
#	crates/ui-egui/src/shortcuts.rs
#	docs/mcp.md
#	docs/ui-parity.md
2026-11-23 03:19:24 +01:00
dotCooCoo 5caea7ad32 Artboards: Rearrange works on the selected artboards only
artboard.rearrange takes indices (the artboards to lay out, in document
order) and at (the grid's top-left). The other artboards, their art and
their guides stay where they are, and a listed locked artboard keeps its
place and its cell. Without indices the command lays out every artboard
as before. With indices the reply adds indices and moved, and no undo
step is recorded when nothing moved.

With the Artboard tool, the canvas menu's Rearrange, the Contextual Task
Bar's Rearrange, the Artboards panel menu's new Rearrange... and the
panel's Rearrange button open the Rearrange dialog for the selected
artboards, with their count. After OK the grid's outline follows the
pointer, and a click on the canvas places its top-left there in one undo
step. Enter places it from the keyboard when no other control has the
focus, a Space-drag pans, and Esc, another tool, another document or a
change to the listed artboards cancels it. Rearrange All Artboards is
unchanged.

The help page describes the selected-artboard arrangement and the click
that places it:
https://helpx.adobe.com/illustrator/desktop/create-manage-artboards/organize-manage-artboards/rearrange-artboards.html
The top-left reference point, the outline, the fallback to the first
selected artboard's corner and the rules for locked artboards and for
art on other artboards are VectorCraft's own.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-20 22:16:00 -08:00
dotCooCoo 36ee552867 Merge main into feat/color-wheel-hex-alpha-css 2026-11-19 07:03:07 -08:00
dotCooCoo 74f601bc87 Merge main into feat/color-wheel-hex-alpha-css 2026-11-18 16:57:19 -08:00
dotCooCoo a05fb2b014 Merge main into feat/transform-rect-ellipse-angle 2026-11-18 13:24:00 -08:00
dotCooCoo a0873e4bf1 Merge main into feat/smooth-bridge-many 2026-11-18 08:14:05 -08:00
dotCooCoo 6cb9429190 Merge main into feat/transform-rect-ellipse-angle 2026-11-18 07:38:31 -08:00
ljkx 26e3fce7ac Merge remote-tracking branch 'upstream/main' into fine-nudge-5258
# Conflicts:
#	crates/engine/src/cmd/object.rs
#	crates/engine/src/cmd/object/commands.rs
#	crates/engine/src/cmd/object/transform.rs
#	docs/ui-parity.md
2026-11-18 14:41:56 +01:00
dotCooCoo b951cdec65 Merge main into feat/color-wheel-hex-alpha-css 2026-11-18 01:42:34 -08:00
BFlat 20d8217312 Merge pull request #7950 from dotCooCoo/feat/smooth-bridge
Path Precision Tools: Smooth Bridge joins two circles with concave arcs
2026-11-18 13:12:40 +07:00
BFlat c0ec570d0f Merge pull request #8371 from dotCooCoo/feat/transform-line-properties
Transform: a live line shows Line Properties with Line Length and Line Angle
2026-11-18 12:57:04 +07:00
dotCooCoo d89f6b72c4 Merge main into feat/smooth-bridge-many 2026-11-17 19:59:55 -08:00
dotCooCoo d4e68e08a9 Merge main into feat/color-wheel-hex-alpha-css 2026-11-17 19:57:38 -08:00
BFlat 3a9bb87022 Merge pull request #7925 from dotCooCoo/feat/brush-options-of-selected-object
Brushes: Options of Selected Object changes one brushed path's brush settings without changing the brush
2026-11-18 10:18:41 +07:00
BFlat 1380e9c480 Merge pull request #7675 from dotCooCoo/feat/unit-converter
Unit Converter: one length in every unit, read from and applied to the selection
2026-11-18 10:16:26 +07:00
dotCooCoo 38a178154b Merge main into feat/smooth-bridge 2026-11-17 17:38:12 -08:00
dotCooCoo 8a70231260 Transform: Rectangle and Ellipse Properties show the shape's angle
Rectangle Properties and Ellipse Properties in the Transform panel, the
Properties panel and the task bar's Shape Properties popup get an Angle
field, as Polygon Properties has. object.setLiveShape takes
rectangleAngle and ellipseAngle: each turns the selected shapes of that
kind about their own centers, keeping size, corners and pie.

The field shows the angle the selected shapes of its kind share and is
blank when they differ; the Polygon Properties angle reads the same way.
An angle a shape already has, within rounding, records no undo step, for
polygonAngle too. A value that is not a number is an error.
2026-11-17 14:05:53 -08:00
dotCooCoo cd4e9e9506 Transform: a live line shows Line Properties with Line Length and Line Angle
A line drawn with the Line Segment tool now shows Line Properties in the
Transform panel and the Properties panel's Transform section, with the two
properties the help page lists for a line:
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-live-shapes/live-shape-properties.html

- object.setLiveShape takes lineLength (pt, above 0) and lineAngle
  (degrees, brought into 0 to 360). Every selected line changes in one
  undo step; a value that changes nothing records none.
- VectorCraft's own rules: the angle runs counterclockwise from 3 o'clock,
  as the Rotate field does; a new length keeps the first end in place and
  a new angle turns the line about its midpoint; a line whose ends meet
  reads 0 degrees; the section shows only while every selected object is a
  live line; a line that would reach past the coordinate limit is an error
  that changes no line.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 09:57:07 -08:00
dotCooCoo b963e41e85 Merge main into feat/smooth-bridge-many 2026-11-16 22:14:28 -08:00
ljkx 21e2887ba5 Merge remote-tracking branch 'origin/main' into fine-nudge-5258
# Conflicts:
#	docs/ui-parity.md
2026-11-16 18:16:21 +01:00
dotCooCoo 34476ef1bc Merge main into feat/color-wheel-hex-alpha-css 2026-11-16 08:20:19 -08:00
BFlat 36c1f37ac6 Merge pull request #8096 from dotCooCoo/feat/packaging-check-fold-lines
Packaging Tools: Check Fold Lines finds the panels and hinges of a blank and lists what is wrong
2026-11-16 23:08:07 +07:00
ljkx 8c3f16121a Merge remote-tracking branch 'origin/main' into fine-nudge-5258
# Conflicts:
#	crates/tools/src/lib.rs
#	docs/ui-parity.md
2026-11-16 13:32:15 +01:00
dotCooCoo 532d2ea6d7 Packaging Tools: Check Fold Lines finds the panels and hinges of a blank and lists what is wrong
Object › Plug-ins › Packaging Tools › Check Fold Lines, and the Fold Lines
panel's Check button, check the fold lines of the selection, or of the
document while nothing is selected (`addon.packaging.check`).

- Cut lines bound the material: each connected piece that encloses an
  area is one blank, its largest closed cut line is the outline, and a
  closed cut line inside it is a hole. A slot drawn as a rectangle across
  the outline leaves the same material as a notch drawn in it, and an
  outline drawn as several open cut lines works too.
- Creases, partial cuts and perforations divide a blank into panels; the
  pieces between the same two panels form one hinge.
- 15 issue codes, errors and warnings, each naming its lines; cut line
  ends within a tolerance (0.1 pt, 0.01 to 10) are joined and reported as
  a gap. With `select`, the lines the issues name are selected.
- The panel lists the issues in the interface language, with a summary
  line; clicking an issue or its Select button selects its lines. The
  list is kept until the document changes.

`vectorcraft_pathops::adjacency` maps paths as live_paint does and keeps,
for each edge, every input it lies on and the faces on both sides; the
blank model is `vectorcraft_three_d::fold::blanks`. The engine now depends
on vectorcraft-three-d directly.

Docs: docs/mcp.md (Check Fold Lines), crates/pathops/README.md, ROADMAP.
2026-11-16 01:47:15 -08:00
dotCooCoo 47d6facb74 Part of #978: Show Hex Field in the Color Wheel panel takes hex with an alpha and CSS colors
Panel menu › Show Hex Field (ui.colorWheel {hexField}) adds a field under
the wheel or the box. It shows the color's six hex digits, and two more
while the opacity that Show Opacity sets is under 100 %. It takes a hex
color of 3, 4, 6 or 8 digits and a CSS rgb(), hsl() or oklch() color. A
typed color is applied in the same way as a wheel pick, in one undo step,
and an alpha sets that opacity, whether or not the opacity row shows.
Where the opacity row is gray (nothing selected, an object selected in a
symbol instance, or a fill or stroke row on type characters or missing),
only the color is applied. Text that gives the color and opacity already
there records no undo step, unless the color is a tint of a global
swatch. A click on the wheel that takes the focus from an edited field
applies the text, then the click. An opacity edit of a gradient stop or
point keeps the OKLCH values picked last for it, as it keeps the HSB.

- crates/color/src/css.rs reads the hex, rgb(), rgba(), hsl(), hsla()
  and oklch() syntax of CSS Color 4, the comma-separated legacy form of
  rgb() and hsl() included, and clamps values where CSS clamps them when
  it parses them. VectorCraft's own rules on top of that: the # of a hex
  color may be left out, none reads as 0, an hsl() channel outside the
  sRGB range is clipped, an oklch() color outside sRGB takes the largest
  chroma that fits, and text over 48 characters is refused.
- color.parse {text} answers {color, hex, opacity}; oklch() is an error
  while the working RGB space is not sRGB.
- The Color panel's hex field and the color parameters of other commands
  still refuse #rrggbbaa and #rgba.

Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md.
2026-11-16 00:44:14 -08:00
FredApps bfe5c253f4 Merge remote-tracking branch 'origin/main' into feat/cutover-remaining-codecs
# Conflicts:
#	crates/engine/src/cmd/menucmds.rs
2026-11-16 06:35:17 +01:00
dotCooCoo 44051847c5 Merge main into feat/smooth-bridge 2026-11-15 20:57:30 -08:00
dotCooCoo 3050baff96 Merge main into feat/smooth-bridge-many 2026-11-15 20:52:48 -08:00
dotCooCoo 81f8d8020d Merge main into feat/smooth-bridge-many 2026-11-15 18:51:11 -08:00
dotCooCoo 84308c53d7 Path Precision Tools: Smooth Bridge joins many circles and keeps a constant gap
Smooth Bridge now takes three or more circles. Every two whose outlines
are within a reach of each other are bridged, the bridges that connect
are united into one shape each, and a circle bridged to no other stays
as it is.

- `addon.pathtools.bridge` takes `gap` (0 to 1000 pt) in place of
  `radius`: the arcs' radius is the smaller circle's radius plus the
  gap, so each arc stays the gap away from a circle of the smaller
  circle's size about the arc's center. In a triangular grid of equal
  circles that gap apart, the channels around an empty place keep one
  width. Giving both is an error.
- `reach` (0 to 10000 pt, 10 by default) sets how far apart two circles'
  outlines may be for a bridge between them. It applies to three or
  more circles; two are bridged at any distance, and the dialog's Reach
  field is unavailable then. Pairs are found through a grid of cells,
  so each circle is compared only with its near neighbors. Holes
  smaller than 1% of the smallest circle's area are filled.
- A pair within reach but too far apart for the radius or gap gets no
  bridge. One circle inside another, no pair that can be bridged, no
  two circles within reach, more than 2000 circles and more than 8000
  bridges are refused with a message. An id given twice counts once.
- Each shape replaces its circles, painted as the topmost of them, or
  with `keepOriginals` goes directly above that circle. One undo step;
  the shapes and the circles left alone are selected, and the result is
  `{ids, alone}`, with `id` as well for two circles.
- `smooth_bridge` refuses circles whose sizes overflow when squared;
  it returned a path whose points were not numbers.
- The selection message becomes "select two or more circles to bridge".
- The dialog adds Constant Gap (a Gap field in place of Radius) and
  Reach.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md,
ROADMAP.
2026-11-15 18:49:45 -08:00
dotCooCoo 7ff63a6cd7 Merge main into feat/line-segment-common-tangent 2026-11-15 18:40:40 -08:00
dotCooCoo b983661aff Merge main into feat/smooth-bridge 2026-11-15 18:39:00 -08:00
BFlat 765334b9a6 Merge pull request #8010 from dotCooCoo/feat/tangent-circle
Path Precision Tools: Tangent Circle draws the circles that touch two or three shapes
2026-11-16 09:33:03 +07:00
ljkx 78670d89e7 Merge remote-tracking branch 'origin/main' into fine-nudge-5258
# Conflicts:
#	crates/tools/src/lib.rs
#	docs/ui-parity.md
2026-11-16 03:23:59 +01:00
dotCooCoo 4ad75291cb Path Precision Tools: Tangent Circle draws the circles that touch two or three shapes
Object › Plug-ins › Path Precision Tools › Tangent Circle…
(`addon.pathtools.tangentCircle`) draws the circles that touch two
selected paths or compound paths at a set radius, or that touch three of
them. A circle touches a shape when it meets the outline without
crossing it, with the whole outline outside the circle or inside it: at
a smooth point it is tangent there, and at a corner or an open end it
passes through that point. Circles, ellipses at any angle and other
closed or open paths all work; the members of a compound path count as
one outline.

When every shape is a circle, the circles are found in closed form (up
to eight for three circles, the problem of Apollonius) and then moved
onto the drawn Bézier circles, which differ from true circles by up to
0.0273% of the radius. Other shapes are searched on a grid, and the
centers left are refined with Newton's method on the curves. With three
shapes, circles up to 64 times the diagonal of the box around the
shapes' anchors and handles are found.

The circles are listed by radius, then top to bottom, then left to
right. The dialog takes the radius (with two shapes; 36 pt to start)
and previews every circle found or one picked by number; OK draws them
with the current paint as one undo step, selected. No circle, more than
64 circles (shapes touched along a whole curve, such as two concentric
circles), shapes at one point or too small for the radius, more than
2000 segments and a search past its limits are errors that leave the
document unchanged.

The Tangent Circle and Circle: rows are in every catalog, and the
command's messages in the catalogs that translate messages.

Docs: docs/mcp.md (Path Precision Tools add-on),
docs/target-app-parity.md, docs/ui-parity.md and ROADMAP.
2026-11-15 16:37:17 -08:00
dotCooCoo fd7bdee746 Merge main into feat/brush-options-of-selected-object 2026-11-15 16:35:36 -08:00
dotCooCoo 0189417e24 Path Precision Tools: Common Tangents draws the lines touching two closed paths
Object › Plug-ins › Path Precision Tools › Common Tangents…
(`addon.pathtools.commonTangents`) adds the common tangent lines of two
selected convex closed paths as separate open paths: external (both
paths on the same side of the line), internal (the lines between them)
or all, and with Centerline the line joining the two centers. An
ellipse drawn with the Ellipse tool is measured as an exact ellipse at
any rotation and scale; any other path must be closed, have one outline
and bend the same way all around, with at most 10000 segments.

Each line runs between the points where it touches the two paths, or
covers a straight side that lies along it. Separate paths have four
tangents, overlapping paths only external ones (two for ellipses), and
a path inside the other none. Paths that touch, from outside or from inside, share
one tangent instead: a line centered on the point where they touch and
as long as the narrower path is wide along it. When there is no tangent
of the kind asked for, nothing changes and the result carries a warning
that says why. The lines take the current stroke and no fill, go
directly above the upper path and are selected, as one undo step. The
dialog has Preview.

The geometry is in vectorcraft-pathops: the tangents are the zeros of
the difference of the two outlines' support values over the normal's
angle, sampled at 720 even steps and at every angle where either
path's touching point passes to another segment, then refined, so the
work per pair is bounded.

Catalog rows for the menu item, the dialog and the messages are in
every catalog.

Docs: docs/mcp.md (Path Precision Tools add-on), docs/target-app-parity.md
and ROADMAP.
2026-11-15 13:48:21 -08:00
FredApps caa62aa79f Merge remote-tracking branch 'origin/main' into work7669 2026-11-15 21:06:46 +01:00
dotCooCoo f151b74a2d Path Precision Tools: Smooth Bridge joins two circles with concave arcs
Object › Plug-ins › Path Precision Tools › Smooth Bridge… joins two
selected circles into one closed outline, like two drops of liquid
pulling apart. The outline goes around each circle on its side away from
the other and along two concave arcs, one on each side, that touch both
circles from outside, so it runs on smoothly into each circle and every
anchor is smooth.

- `addon.pathtools.bridge {radius?, keepOriginals?, ids?}`: `radius` is
  the arcs' radius as a percentage of the smaller circle's radius (1 to
  1000, 100 by default); a larger radius makes a wider, gentler bridge.
  The outline replaces the two circles, painted as the upper one, or
  with `keepOriginals` goes directly above the upper circle and the
  circles stay. One undo step; the outline is selected.
- Overlapping and touching circles are joined at every radius. One
  circle inside the other, circles too far apart for the radius (the
  arcs would not reach both circles, or would cross), and anything other
  than two circles that can be edited are refused with a message. The
  message suggests a larger radius only when one up to 1000% would
  bridge the circles.
- The dialog has a Radius field in percent, Keep Originals and Preview.
- `circle_of` and `smooth_bridge` in `vectorcraft-pathops` tell a
  circle from other paths and build the outline.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md,
ROADMAP.
2026-11-15 11:31:15 -08:00
FredApps 31658546a8 fix(codecs): build the cutover against craft-libs d6cd7836d
- Test files whose image→craft-image-codecs rewrites didn't compile against
  main's newer tests go back to main's versions (engine fileio/tests.rs,
  tests_tiffbmp.rs, tests/menucmds.rs, eps tests.rs); they still use the image
  crate, which keeps its format features.
- craft_jxl::encode, craft_image_codecs::encode and Image::icc at d6cd7836d.
- jp2read and pdf export pass DecodeOptions, not Limits.
- EPS DCTDecode: grey JPEGs no longer use the image after moving it, and keep
  main's one-channel output.
- svg keeps its direct usvg dependency for main's image href code; pdf keeps
  jpeg-encoder for CMYK JPEGs.
- clippy -D warnings and rustfmt clean.
2026-11-15 18:05:45 +01:00