Merge main into feat/artboard-rect-guides

This commit is contained in:
dotCooCoo committed 2026-12-02 02:03:22 -08:00
commit cdc57b5b2d
25 files changed
+2183 -95

No files matched your search

+44 -1
View File
@@ -18292,7 +18292,7 @@ enabled only when a selected image has a mask. → `{changed, ids}`
## Type Tools add-on
Type Tools is a built-in add-on for type: its commands are `addon.type.textTweaker` and `addon.type.releasePath`, and
Type Tools is a built-in add-on for type: its commands are `addon.type.textTweaker`, `addon.type.releasePath` and `addon.type.numbers`, and
in the desktop app it lives in Object › Plug-ins › Type Tools (#4924, #5532). Text Tweaker gives one character attribute to the characters letter by letter,
from a start value to an end value along a shape, as one undo step; the text stays live and editable. Each value is set
as `text.setRangeStyle` sets it (the Character panel), in its units and ranges ([formatting type](https://helpx.adobe.com/illustrator/using/formatting-type.html)), so on scaled
@@ -18357,6 +18357,49 @@ Path Options' Preview does (#5360).
{"name":"run_command","arguments":{"command":"addon.type.releasePath","params":{"mode":"path","keepOriginal":true}}}
```
### Make Numbers Sequence
`addon.type.numbers` numbers the type objects among `ids` (or `id`, else the selection), groups included, from `start`
by `step`, as one undo step. Each number replaces the object's whole text, every number in it, or every `{%n}`
placeholder in it. It is based on Sergey Osokin's MIT-licensed
[MakeNumbersSequence](https://github.com/creold/illustrator-scripts/blob/master/md/Text.md#makenumberssequence)
script.
- With `end` omitted the numbers run to the last object. With `end`, they stop past it and the objects after the last
number keep their text, or are deleted with `removeUnused`. A type object that is the mask of a clipping group or layer
is not deleted. The sign of `step` is set to run toward `end`.
- Locked or hidden type, also inside a selected group, is not numbered or deleted.
- With `replace` `numbers` or `placeholder`, objects that hold no number or placeholder are skipped and get no number,
and `order` leaves them out. The remaining objects are ordered before `end` limits the sequence, so objects past
`end` still count for rows and columns. A number is a run of digits with any `.` or `,` between digits,
and a `-` before it that does not follow a letter or digit. Replaced text takes the style of the text it replaces;
a number or placeholder that already reads the new number keeps its text and style. With `numbers` or
`placeholder`, one run replaces at most 10,000 numbers or placeholders; more is an error, and nothing changes.
- Values are rounded to the most decimal places among `start`, `step` and `end` (at most 6), so 0.1 by 0.1 gives
0.1, 0.2, 0.3.
- Objects that already read so are left as they are; when nothing changes no undo step is made.
- A frame of threaded type among the objects is an error, and nothing changes.
| Parameter | Values (default) |
|---|---|
| `start`, `step` | numbers −1e12…1e12 (1, 1; `step` 0: every object gets `start`) |
| `end` | number −1e12…1e12 (omitted: to the last object) |
| `order` | `stacking` (from the back), `rows` (top to bottom, each row left to right), `columns` (left to right, each column top to bottom) (`stacking`). Objects whose centers are within half the median height (width for columns) of a row's first object share its row |
| `replace` | `all`, `numbers`, `placeholder` (`all`) |
| `shuffle`, `seed` | false; true: the numbers go to the objects in random order, the same `seed` (a whole number, 0) giving the same order, and `order` is not used. A `seed` that is not a whole number is an error even with `shuffle` off |
| `leadingZeros` | true: non-negative numbers are padded with zeros to the whole digits of the wider of `start` and `end` (or the last number) |
| `digits` | 1…30: with `leadingZeros`, at least this many whole digits |
| `trailingZeros` | false; true: every number gets as many decimal places as the one with the most |
| `removeUnused` | false; true needs `end` |
→ `{count (objects changed), ids (numbered, in order), removed}`. Make Numbers Sequence… opens a dialog (`ui.menuDialog
{command}`, dialog key `addon.type.numbers`) whose fields are the command's parameters, with Preview.
```json
{"name":"run_command","arguments":{"command":"addon.type.numbers","params":{"start":1,"order":"rows"}}}
{"name":"run_command","arguments":{"command":"addon.type.numbers","params":{"start":5,"end":50,"step":5,"replace":"placeholder","digits":3}}}
```
## Unit Converter add-on
Unit Converter is a built-in add-on that shows one length in every unit at once (#5528): its commands are
+4
View File
@@ -3195,6 +3195,10 @@ A VectorCraft addition, not a feature of the reference app, so no area score mov
A VectorCraft addition, not a feature of the reference app (it has no command for this), so no area score moves. Object › Plug-ins › Type Tools › Release Type on a Path… splits each selected type on a path into point type holding the same text and the plain path it was set on, or keeps only one of them (#5532). The path keeps its exact shape (open or closed, anchors and handles, the object's transform), layer and place in the stacking order, with no fill and no stroke since type paths carry no paint of their own. The text keeps its runs, character and paragraph attributes and becomes point type on one straight line whose baseline starts where the first character sat on the path; Type on a Path Options don't apply to point type and are dropped. Keep Original leaves the type on a path and adds the released objects above it. Other objects are left alone and a selection with no type on a path makes no undo step; otherwise the run is one undo step, the released objects are selected, and the dialog's Preview works as Type on a Path Options' does (#5360). Tests: `cmd::addons::typetools::tests::release` in `vectorcraft-engine` (each mode, Keep Original, mixed and empty selections, closed, open, curved and flipped paths, transformed and grouped type, multi-style and unicode text with a centred paragraph, empty type, undo and redo, preview, cancel and commit, bad params refused), `release_type_on_a_path_previews_cancels_and_runs_on_ok` in `vectorcraft-ui-egui` and `command_sweep`. Commands: `docs/mcp.md` › Type Tools add-on › Release Type on a Path.
## Type Tools add-on: Make Numbers Sequence (2026-12-01)
A VectorCraft addition, so no area score moves. Object › Plug-ins › Type Tools › Make Numbers Sequence… numbers the selected type objects from a start value by a step, optionally stopping at an end value, and each number replaces the whole text, every number in it, or every `{%n}` placeholder (#10448). The objects are taken in stacking order, by rows or by columns, or in a seeded random order, with optional leading and trailing zeros, and the objects past the end can be deleted. When numbers or placeholders are replaced, objects that hold none are skipped before the ordering, so they take no number and are never deleted. Locked and hidden type is left alone, a clipping mask is not deleted, and threaded type and bad parameters are refused. A run that changes the document is one undo step, and a run that changes nothing makes none. The dialog has Preview. It is based on Sergey Osokin's MIT-licensed MakeNumbersSequence script. Tests: `cmd::addons::typetools::numbers::tests` in `vectorcraft-engine`, `addons::typetools::numbers::tests` in `vectorcraft-ui-egui` and `command_sweep`. Commands: `docs/mcp.md` › Type Tools add-on.
## Unit Converter add-on (2026-11-14)
A VectorCraft addition, so no area score moves. Object › Plug-ins › Unit Converter opens a panel with one number field per unit of Preferences › Units › East Asian Type (pt, picas, in, mm, cm, px, ft & in, m, yd, ft, Q, Ha), as proposed in #5528. A length typed in any field, with units and arithmetic as every number field reads them, updates the others as it is typed; text that does not read leaves them as they were. From Selection reads the selection's width and height as the Transform panel measures them, Width or Height picks which one the fields show, and Apply sets that side of the selection through `object.setBounds` as the Transform panel's W or H field does (its reference point, Constrain Width and Height Proportions and its Transform Object Only, Pattern Only or Both choice) as one undo step, with no step when the size is already that length. Each field's copy button copies its value, with its unit when Copy with Units is on. Agents use `addon.units.convert` and `addon.units.selectionSize`, which change nothing in the document (`docs/mcp.md`). Tests: `cmd::addons::units::tests` in `vectorcraft-engine` (every unit, number-field syntax, preview bounds and selected anchors, bad params and unknown keys refused), `addons::units::tests` in `vectorcraft-ui-egui` (typing, From Selection and a changed selection, Apply with the Transform panel's reference point, proportions, pattern choice and a symbol's registration point, copy, screen-reader names) and `command_sweep`.