Commit Graph
189 Commits
Author SHA1 Message Date
dotCooCoo a992850228 Merge main into feat/color-randomly
# Conflicts:
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/menus/ui_commands.rs
2026-12-01 06:26:48 -08:00
dotCooCoo 8ba55104f0 Merge main into feat/group-rows
# Conflicts:
#	crates/engine/src/cmd/plugin_call/reviewed.rs
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/addons/arrange.rs
#	crates/ui-egui/src/menus/ui_commands.rs
#	docs/mcp.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-12-01 06:20:46 -08:00
dotCooCoo eadf345932 Merge main into feat/color-randomly 2026-12-01 01:04:32 -08:00
dotCooCoo 3fcb278b24 Merge main into feat/group-rows 2026-12-01 01:03:49 -08:00
dotCooCoo 9c4f01faf1 Merge main into feat/corner-marks 2026-12-01 01:03:01 -08:00
.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 <[email protected]>
2026-11-30 13:58:07 +01:00
dotCooCoo 1b8927db9f Merge main into feat/group-rows 2026-11-29 19:10:04 -08:00
dotCooCoo 8a29b0ac66 Merge main into feat/corner-marks 2026-11-29 17:10:09 -08:00
dotCooCoo e969d29387 Merge main into feat/corner-marks 2026-11-29 16:16:11 -08:00
dotCooCoo f11aac5aaa Merge main into feat/match-objects-to-key 2026-11-29 15:00:53 -08:00
dotCooCoo 9693ce96aa Arrange Tools: Group by Row puts each row of the selection in its own group
Object > Plug-ins > Arrange Tools > Group by Row... (addon.arrange.groupRows)
groups the selected top-level objects by the rows their visual bounds share:
an object joins a row when its bounds overlap the row from top to bottom,
and Group By Columns does the same from left to right. Extents that only
touch stay apart, and an object that overlaps two rows joins them into one.
Only objects in the same layer or group and on the same artboard share a
row; an object alone in its row stays as it is. Each new group takes its
frontmost member's place in the stacking order, and the groups and the
objects left alone stay selected. One undo step, none when no row holds two
objects; an unknown direction is refused. At most 20000 objects, sorted
once along the axis.

Group Overlapping Objects and Group by Row share the step that builds the
groups. The dialog has Group By (Rows or Columns) with Preview.
Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md, ROADMAP.
2026-11-29 14:19:39 -08:00
dotCooCoo 314ee3681e Arrange Tools: Mark Bounds of Each draws corner marks or a rectangle on each selected object's bounds
Object > Plug-ins > Arrange Tools > Mark Bounds of Each... runs the new
command addon.arrange.markBounds. For each selected object it draws a
group of four inward L-shaped corner marks (10 pt legs by default, each
at most half the side it runs along) or a rectangle, with no fill and a
red 1 pt stroke by default, on the object's geometric or visual bounds.
Visual bounds count strokes, brush art and effects as drawn.

- Clip groups are measured by their clipping path, other groups by
  their members together. Guides and objects without bounds, such as
  empty groups, are skipped; a selection with nothing to mark is an
  error that makes no undo step.
- The marks go directly above their object, or above the outermost clip
  group or clipping sublayer that holds it, so the mask does not clip
  them. The run is one undo step and selects the marks.
- Out-of-range lengths and weights, unknown styles and bounds, and bad
  colors are errors; defaults apply only to omitted values. At most
  20000 objects are marked at once.
- The dialog has Preview; Length is off unless Draw is Corner Marks.
- vectorcraft-render gains drawn_bounds_with, drawn_bounds with a shared
  symbol cache, so a large selection measures each symbol once.

Docs: docs/mcp.md, ROADMAP.
2026-11-29 12:57:12 -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 9334f11ddf Color Effects: Randomize Fill Colors gives each selected filled path its own random fill
Object › Plug-ins › Color Effects › Randomize Fill Colors… gives each
selected filled path and compound path, and each one inside the selected
groups and clipping groups, a fill color of its own, picked at random
from a seed, as one undo step (none when no fill changes).

- addon.color.randomFill {scheme?, swatch?, min?, max?, seed?, ids?}:
  "color" picks red, green and blue at random in the document's color
  mode, "tint" picks a linked tint of a global or spot swatch, and "gray"
  picks a gray, the tints and grays between min and max percent.
- Unfilled paths, clipping paths (compound ones included), hidden and
  locked objects and the objects in hidden or locked groups and layers,
  type, images, symbol instances, blends and envelopes keep their fills.
  A compound path's member given by id colors the compound path, and an
  object reached twice is colored once.
- Bad params are refused: an unknown scheme, min or max with "color",
  swatch without "tint", a percent outside 0 to 100, min above max, a
  missing or process swatch, and a seed that is not a whole number.
- The dialog has Colors, Swatch (the document's global and spot
  swatches), Minimum, Maximum and Seed, with Preview; OK is off while the
  minimum is above the maximum or tints have no swatch.

Docs: docs/mcp.md, ROADMAP, docs/target-app-parity.md, docs/ui-parity.md.
2026-11-29 07:23:57 -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