Commit Graph
19258 Commits
Author SHA1 Message Date
dotCooCoo e3672e958b Wake Bristle tip preview when a stationary pen turns 2026-11-17 17:44:15 -08:00
dotCooCoo 9f84820d88 MCP: transform checks scale, reflect and shear before any step runs
The transform tool runs move, rotate, scale, reflect and shear as separate
commands. A shear angle that object.shear refuses, such as 90, a reflect
axis other than vertical or horizontal, or a scale of 0 failed only after
the earlier steps had changed the art and recorded undo steps. The tool now
checks those params first with the rules the commands use
(scale_factors, reflect_axis and shear_tangent, shared with object.scale,
object.reflect and object.shear), so a refused request changes nothing and
records no undo step.
2026-11-17 17:42:44 -08:00
dotCooCoo 8dd42206d5 Preferences: the line under the fields describes Show on Shape Creation
General's Show on Shape Creation gets its sentence for the description
line, with a row in every catalog, so
every_general_selection_guides_and_smart_guides_setting_has_one_description
passes with main merged.
2026-11-17 17:42:07 -08:00
dotCooCoo 8af2a300e6 Shapes: a Circle tool drag of the second or third point ends where it is let go
With Third Point by Dragging off, a release away from the last drag of
the second or third point now places that point at the release
position.
2026-11-17 17:41:58 -08:00
dotCooCoo ecfe2356cc Merge feat/circle-tool into feat/circle-tool-options 2026-11-17 17:41:58 -08:00
yoriswind 0dd87f8921 Merge main into the qualified Eraser group-stroke repair 2026-11-17 17:40:53 -08:00
dotCooCoo 38a178154b Merge main into feat/smooth-bridge 2026-11-17 17:38:12 -08:00
dotCooCoo 55b8fa8b6a Width Point Edit: the dialog and stroke.widthPoint.set share one pairing rule
The dialog and stroke.widthPoint.set each tested whether two width
points are the halves of one discontinuous point. The test is now one
engine function, width_point_pair: a point and the next one are the
two halves when they are the only points within 1e-6 of the first
one's place. The dialog still picks which point to test, and the
command still returns its error when the indices are not a pair.
2026-11-17 17:31:06 -08:00
dotCooCoo f6c512920a Save for Web: a fixed palette keeps an opaque color when it maps colors to transparent
With a fixed palette (Custom table), the colors listed in colorTable.transparent
all become the one transparent entry, so together they now take a single slot of
Colors, and the opaque colors fill the remaining slots in palette order. Before,
the palette was cut to its first entries; when those were all mapped to
transparent, every opaque pixel took one of them and the whole image turned
transparent, and with a deleted color the export was refused although an opaque
color was left past the cut. The check that a deletion leaves an opaque color
now reads the whole palette.

When no pixel is transparent and no pixel takes a color mapped to transparent,
that slot goes to the next opaque color. At 256 colors one entry stays for a
color mapped to transparent.
2026-11-17 17:29:11 -08:00
dotCooCoo e4edb7a3f3 Rerun CI 2026-11-17 17:23:27 -08:00
dotCooCoo 3d51edc9dc Merge main into feat/transform-show-on-shape-creation 2026-11-17 17:21:36 -08:00
dotCooCoo a5cc189172 Shapes: a Circle tool drag ends where it is let go
A release away from the last drag point now moves the circle's points to
the release position before the circle is drawn, for a drag from the
first press, from a second press and from a press on the first point. A
release within 2 screen points of the press is still a click and keeps
the point of the press.
2026-11-17 17:18:46 -08:00
dotCooCoo 375b2a23e1 Preview Bristle brush tip for rotation-capable pens 2026-11-17 17:14:05 -08:00
dotCooCoo de06497716 Commands: each built-in command's parameter keys are parsed once per process
Session::execute asked about a command's params description several
times per command (the key check, whether `id` stands for `ids`, whether
it takes `ids`), and each question parsed the description again, with a
command lookup for each word after the first of each `…` entry. The
engine now reads every built-in description, and the ones its `…`
entries name, once into a table keyed by the description's address and
length, and answers accepted_keys, takes_key, id_stands_for_ids and
check_keys from it.

A plug-in command's description, and a built-in description whose `…`
entries name a plug-in command, are still parsed where they are used,
since plug-ins change while the app runs. The keys, answers and error
messages are the same; tests::params_cache compares them for every
built-in command against a fresh parse.

In a release build on a one-object document, object.move with ids and
dx takes 48 us of thread CPU time per command instead of 61 us, and
select.set with ids 2.3 us instead of 3.2 us (medians of 7 alternating
runs of 20,000 commands in one process, while other builds were running;
tests::params_cache::bench_params_keys_once). The time is saved per
command, in scripts, batches and MCP or plug-in call loops, and does not
grow with the size of the document.
2026-11-17 17:12:35 -08:00
dotCooCoo e5d1186412 Color Themes: the Create tab edits the selected color with CMYK, RGB, Lab and HSB sliders
The Create tab had only a hex field for typing the selected theme
color's values. The help page describes changing the selected color's
values in CMYK, RGB, Lab, HSB or hex while making a theme:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=221

A Color Mode menu (CMYK, RGB, Lab, HSB) under the theme's colors shows
a rail and a number field for each component, beside the hex field. The
rails are the Recolor dialog's, so they step with the arrow keys and
take screen readers' set-value action.

VectorCraft's own rules: the menu starts in the selected color's model
(HSB for a gray) and keeps the mode picked while the app runs; picking a
mode changes no color. Ranges and whole-number steps are the Color
panel's (Lab a and b from -128 to 127); a number past the range sets its
end and text that is not a number changes nothing. A CMYK edit keeps the
color CMYK and a Lab edit keeps it Lab; RGB and HSB edits make it RGB.
An edit works as a hex edit does: with a harmony rule the edited color
becomes the theme's base and is selected, and in Custom only the
selected color changes. The sliders keep the numbers they set, so a
color taken to no saturation keeps its hue on the H slider.
2026-11-17 17:10:50 -08:00
dotCooCoo 43022b6a9e Layers: isolation mode lists only the isolated art
In isolation mode the Layers panel lists the isolated layer, sublayer,
group or object as its top row, with the open rows inside it, and lists
every layer again when isolation mode ends. The help page describes the
panel showing only the isolated art
(https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=212);
which row heads the list, and the rules below, are VectorCraft's own.

- Entering isolation mode opens the isolated row; leaving it scrolls back
  to that row. Search and Filter look only inside it.
- Nothing is dropped beside the isolated row or into the empty space
  under the rows, so a drag cannot move art out of the isolated art.
- Rows highlighted outside the isolated art are no longer highlighted.
- With no row highlighted, Delete Selection is off and the trash
  returns an error instead of deleting a current layer outside the
  isolated art.
- New Layer, New Sublayer and Duplicate (panel menu and row context
  menu) are off while the layer or copy they make would be outside the
  isolated art. ui.newLayer, and OK in New Layer Options, return "exit
  isolation mode first" then.
- Rename refuses an object outside the isolated art, and Locate Object
  opens no rows outside it.
2026-11-17 17:08:36 -08:00
dotCooCoo 309bff22e3 Merge fix/shear-angle-range into fix/transform-panel-shear-range 2026-11-17 17:06:19 -08:00
dotCooCoo 51d09113f7 Fields: x multiplies in value fields, as * does
Value fields and length strings read `x`, `X` and `×` as a
multiplication sign: `10x2` is 20, `2x3 mm` is 6 mm and `3cmx50%` is
1.5 cm. A lowercase `x` right after a `p` stays the `px` unit, so
`2px x 3` is 6 px and `2px3` is not read. The change is in
`Unit::parse` and `parse_number`, so every field that reads its text
through them takes it. Each sign counts toward the 128-sign limit,
which is checked before the text is copied.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-17 17:05:56 -08:00
dotCooCoo cd259b9fa8 Shear: 180 and -180 leave the art unchanged
The tangent of 180 degrees in radians is about 1e-16, not 0, so a shear
by 180 or -180 moved coordinates very slightly and recorded an undo
step. Angles within 1e-9 degrees of 0, 180 or -180 now shear by 0:
without `copy`, nothing moves and no undo step is recorded.

Docs: params text, docs/mcp.md.
2026-11-17 17:04:12 -08:00
dotCooCoo ce3a01f576 Merge #7996's branch into fix/psd-knockout-layers-merge 2026-11-17 17:03:50 -08:00
dotCooCoo fd29617941 Preferences: Appearance of Black sentences match what the settings change
Display All Blacks Accurately converts pure CMYK black through the CMYK
working space, which with Device CMYK (uncalibrated) is the profile-free
formula rather than a profile. Output All Blacks as Rich Black also
changes grayscale raster exports, and a CMYK PSD keeps its inks like a
CMYK JPEG or TIFF. The two sentences, their rows in every complete
catalog and the docs/target-app-parity.md line now say so.
2026-11-17 17:02:48 -08:00
dotCooCoo 099de92455 Width Point: the outgoing half adjusts the point after its pair
With Adjust Adjoining on, the outgoing half of a discontinuous point
looked for the point after it as the first one farther than 1e-6 from
its own place, so a point within 1e-6 of the outgoing half but not of
the pair's place was skipped. Both halves now measure from the pair's
place.
2026-11-17 17:02:33 -08:00
dotCooCoo dfd5fe71f4 Image Trace: the panel finds the object Trace acts on once per document revision
On every frame the Image Trace panel put the whole selection in paint
order twice and scanned it a third time to find the object Trace acts
on; its panel menu scanned it again. The panel and its menu now look it
up once for each document revision and reuse the result on later
frames. The lookup puts only the selected images and Image Trace
objects in paint order, and reads the target in place instead of
copying it.

The target, its flags, its stored settings and whether any selected
object is an Image Trace object are the same as before, field for
field. With 100,000 selected paths in nested groups and one selected
image, a frame's lookups took a median 120 ms before; the first frame
after a change now takes 10 ms and later frames about 50 ns.
2026-11-17 16:54:21 -08:00
dotCooCoo 313d889a7f PSD import: a group that draws nothing is drawn once, however deep it nests
A group with a knockout was drawn for the knockout and, when it drew
nothing, drawn again as a layer of its own. Nested inside each other,
such groups were drawn twice over for every level, so opening a crafted
PSD file could take exponential time; layers without pixels charge
nothing against the import's memory allowance, so it did not stop it.

The import now keeps what a group gave when drawn without reading any
layer's pixels (nothing, or a canvas without pixels) and gives it again
without walking the group's layers. A pass-through group that laid
nothing onto an empty canvas without reading any pixels is not laid
there again; its layers count the same warnings each time. A merge
that can't be made forgets the groups found during it, with the notes
it gives back.

A knockout group that comes in as a layer is also listed after being
drawn, and its layers clipped to a fill that isn't drawn, or left
unclipped by a merge past the memory allowed, were counted twice in the
warnings. Each is now counted once.

The knockout of a layer that others are clipped to was applied when
the clip merge needed more memory than allowed and the layers came in
apart. It is now left unapplied and counted, as it is when the clip
merge is made.

A Dissolve knockout at part opacity cleared every pixel below it in
part. It now clears each pixel fully or not at all, at the share its
transparency times its opacity gives, as other Dissolve merges do.
2026-11-17 16:54:12 -08:00
dotCooCoo bcc2a5ed37 Pathfinder: warn when open subpaths cancel each other under the fill rule
Make Compound Shape now also warns when a member's subpaths, all closed,
enclose no area together: two open evenodd squares on top of each other,
or an open evenodd square over the same closed square. Each subpath is
still checked on its own, so a line beside a square still warns. A path
with one subpath skips the combined check, and an area that can't be
measured gives no warning.
2026-11-17 16:50:30 -08:00
dotCooCoo af23d7fed1 Preferences: Appearance of Black settings show a sentence on hover and focus
The line under the Preferences fields now shows a sentence for On Screen
and for Printing / Exporting when the pointer is over the row or its
menu has the keyboard focus. A screen reader gets the same sentence as
the control's description. Every complete catalog has a row for each one.

The sentences state what VectorCraft does today: Rich Black shows pure
CMYK black (black ink alone at 100%) as RGB black on the canvas, and in
RGB raster exports and Print as Bitmap; vector exports, CMYK JPEG and
TIFF, and other printing do not change.

Tests: the one-sentence test covers the Appearance of Black category, and
new tests check the hover and keyboard-focus sentences of both rows.
2026-11-17 16:39:21 -08:00
dotCooCoo f2f33b3a32 Width Point Edit: either half finds its pair as the engine pairs it
The dialog paired the points within 1e-6 of the opened point, so with
three points each that close to the next it paired the opened point
with a different neighbor than stroke.widthPoint.set accepts, and OK
failed. It now pairs a point with the next one when they are the only
points within 1e-6 of the first one's place, as the engine does, so
either half opens the same pair.
2026-11-17 16:33:11 -08:00
dotCooCoo 507a864c29 Rerun CI 2026-11-17 16:32:22 -08:00
dotCooCoo 7174cce6c2 Rerun CI 2026-11-17 16:32:20 -08:00
dotCooCoo afcf8b6f78 Rerun CI 2026-11-17 16:32:15 -08:00
dotCooCoo ae77d8186a Rerun CI 2026-11-17 16:32:09 -08:00
dotCooCoo 03c8a4ba1b Rerun CI 2026-11-17 16:32:04 -08:00
dotCooCoo 2829343e00 Rerun CI 2026-11-17 16:32:03 -08:00
dotCooCoo 5ed88cecc9 Rerun CI 2026-11-17 16:31:55 -08:00
dotCooCoo 4164c1bc63 Rerun CI 2026-11-17 16:31:50 -08:00
dotCooCoo 8dabfbabab Rerun CI 2026-11-17 16:31:45 -08:00
dotCooCoo e7428b7cd3 Rerun CI 2026-11-17 16:31:44 -08:00
dotCooCoo 579b8a0316 Rerun CI 2026-11-17 16:31:36 -08:00
dotCooCoo 92020b43bc Rerun CI 2026-11-17 16:31:34 -08:00
dotCooCoo 52c696379c Rerun CI 2026-11-17 16:31:28 -08:00
dotCooCoo abc0ec208b Rerun CI 2026-11-17 16:31:23 -08:00
dotCooCoo fd26667fbf Rerun CI 2026-11-17 16:31:16 -08:00
dotCooCoo b4404cceb0 Rerun CI 2026-11-17 16:31:15 -08:00
dotCooCoo 0cf595d539 Rerun CI 2026-11-17 16:31:14 -08:00
dotCooCoo 38021e7d3c Rerun CI 2026-11-17 16:31:03 -08:00
dotCooCoo fa817f9b28 Rerun CI 2026-11-17 16:31:00 -08:00
dotCooCoo 0d3249e44e Rerun CI 2026-11-17 16:30:58 -08:00
dotCooCoo b192b589ca Rerun CI 2026-11-17 16:30:53 -08:00
dotCooCoo 8842a9d6ea Rerun CI 2026-11-17 16:30:43 -08:00
dotCooCoo f8c510f6f1 Rerun CI 2026-11-17 16:30:41 -08:00