Commit Graph
22524 Commits
Author SHA1 Message Date
.CooCoo 2f4bc715db Merge pull request #9901 from dotCooCoo/fix/direct-shift-click-group-member
Direct Selection: a Shift-click on a member of a selected group deselects only that member
2026-11-28 08:02:19 -08:00
.CooCoo aabbee241e Merge pull request #9908 from dotCooCoo/fix/plugins-deferred-stages-flake
Plug-ins: the failed-stage deferral test no longer depends on CPU load
2026-11-28 08:02:17 -08:00
.CooCoo fcfa7a1be8 Merge pull request #9906 from dotCooCoo/fix/polygonal-lasso-flyout
Polygonal Lasso: the tool is in the Lasso tool's flyout
2026-11-28 08:02:15 -08:00
.CooCoo deab21a93c Merge pull request #9913 from dotCooCoo/feat/distorted-image-mosaic
Object Mosaic: tiles of a distorted image follow its corners
2026-11-28 08:02:13 -08:00
.CooCoo 072bce3489 Merge pull request #9916 from dotCooCoo/feat/scatter-brush-saturation-jitter
Brushes: Scatter Brush Options has Saturation Jitter, a per-copy saturation move
2026-11-28 08:02:10 -08:00
.CooCoo f9ce5114f0 Merge pull request #9918 from dotCooCoo/fix/envelope-content-box-stroke
Envelopes: a group's own stroke is measured along its members next to type
2026-11-28 08:02:08 -08:00
.CooCoo 5859a26f93 Merge pull request #9919 from dotCooCoo/fix/slice-options-revert
Slices: Slice Options and Divide Slices refuse a draft from before File > Revert
2026-11-28 08:02:06 -08:00
.CooCoo e260844903 Merge pull request #9923 from dotCooCoo/fix/parametric-shape-accepted
Parametric Shape: canceling a panel edit restores the shape or the tool's next shape
2026-11-28 08:02:04 -08:00
.CooCoo f59c044080 Merge pull request #9921 from dotCooCoo/feat/move-several-handles
Direct Selection: picked direction handles move together
2026-11-28 08:02:02 -08:00
.CooCoo 2c2a86e688 Merge pull request #9928 from dotCooCoo/fix/host-handle-heap-bytes
Scripts: host object handles count toward the heap limit
2026-11-28 08:02:00 -08:00
.CooCoo f93b89c1ff Merge pull request #9926 from dotCooCoo/feat/place-pcraft
File formats: .pcraft documents open and place as one image
2026-11-28 08:01:57 -08:00
.CooCoo ef2ba3fd8f Merge pull request #9931 from dotCooCoo/fix/appearance-drag-revert
Appearance: an appearance drag held across File Revert is not dropped on the restored art
2026-11-28 08:01:53 -08:00
.CooCoo 0bf493fc1d Merge pull request #9933 from dotCooCoo/fix/transform-each-revert
Transform Each: a draft from before File > Revert no longer applies to the restored document
2026-11-28 08:01:51 -08:00
.CooCoo fc3bad34cf Merge pull request #9934 from dotCooCoo/train/carry9024
fix(ui): fit translated PDF import labels
2026-11-28 08:00:20 -08:00
dotCooCoo 05378c1b7e Merge main into train/carry9024 2026-11-28 07:59:17 -08:00
dotCooCoo f555b41389 Transform Each: a draft from before File > Revert no longer applies to the restored document
Transform Each recorded only the document's uid when it opened. Object
ids survive File > Revert, so after a revert the dialog previewed its old
values on the restored selection, and OK or Copy applied them there.

The dialog now records the document's uid and revert count, as the
Transform dialogs do since #9797. After a revert, Preview stops, Cancel
rolls nothing back, and OK and Copy are refused with "The document was
reverted. Reopen this dialog to continue." in the dialog and on the
status line. A refused OK now sets Copy to off instead of removing the
field, so the dialog keeps showing the reason.
2026-11-28 06:45:48 -08:00
dotCooCoo 09150f35e9 Scripts: host object handles count toward the heap limit
Each object of a host class keeps its handle twice, once in its slot and
once in the realm's index of the objects scripts hold, but creating one
reserved only the object's own bytes, and the collector's live-byte total
left the handle out. A host value with a long handle could therefore grow
the heap past the script's limit.

The object now reserves its handle's bytes before it is made, and the
collector counts them for every live object. Tests cover a handle larger
than the remaining budget and the bytes 100 retained objects add.
2026-11-28 06:27:56 -08:00
dotCooCoo 0b87334987 Appearance: an appearance drag held across File Revert is not dropped on the restored art
File > Revert keeps the document's uid and restores objects with the same
IDs, so an appearance dragged from a Layers target circle or the
Appearance panel's thumbnail before the revert was still accepted after
it, and its drop ran on the restored objects.

PanelDrag::Appearance now carries the document's revert count next to its
uid, as PanelDrag::Art does, and appearance_for(uid, reverts) returns the
source only while the destination shows the contents the drag came from.
Every drop compares the pair: a Layers target circle, the Layers trash,
the canvas (where it takes the drop and where it applies it) and the
Graphic Styles panel.
2026-11-28 06:00:13 -08:00
dotCooCoo 6f012b6621 File formats: .pcraft documents open and place as one image
File › Open and File › Place read layered raster .pcraft documents
through craft-doc and store them as one PNG, sized by the document's
resolution. A placed file links like any image.

- The image is the file's full-size composite when it has one.
- Without one, the layers are combined at the canvas size when the
  document is RGB at 8 or 16 bits and every visible layer is a raster
  layer that blends Normal, with no clipping, layer effects, vector
  mask, frame, advanced blending or feathered layer mask. Hidden layers
  are not read, and an RGB ICC profile the document names is kept.
- Otherwise the composite preview comes in at the canvas's size, and
  Open, Place, links.update, links.relink and links.replaceEmbedded
  warn when it has fewer pixels than the canvas, naming both sizes and
  why the layers were not combined.
- A full-size composite or preview the file names but doesn't hold,
  can't decode or, for the full-size one, of another size than the
  canvas is an error. The Links commands decode the kept PNG before
  taking it.

The import fuzz tests cover mutated bundles and manifests.
2026-11-28 05:33:55 -08:00
dotCooCoo 41a6005414 Direct Selection: picked direction handles move together
A click on a path's direction handle picks it, a Shift-click adds it to
the picked handles or takes it away, and Escape lets them go. Picked
handles show ringed. Dragging one of two or more picked handles moves
all of them, on one path or several, by the same offset in one undo
step. A Shift-press on a handle reshapes only once the pointer has moved
3 pixels, so a Shift-click leaves the handle where it is.

The new command path.moveHandles does the move: an anchor with one
handle listed places it as path.setHandle does, an anchor with both
listed moves both and becomes a corner, and independent (Alt during the
drag) makes every listed handle's anchor a corner.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-28 04:58:12 -08:00
dotCooCoo a03b3355c9 Envelopes: a group's own stroke is measured along its members next to type
The box an envelope maps from measures a group or layer that holds type
member by member, so that type is measured by its glyph outlines. In that
walk the container's own strokes still grew every member's box by
Appearance::outset(), the farthest a miter-joined stroke can reach. A
10 pt stroke of the group's own round a square next to type reached 50 pt
past the square instead of the 5 pt it paints.

The walk now measures the container's strokes, scaled into the envelope's
frame, along each member as the group's visual box does: paths and
compound paths along their shapes (Node::painted_by_container), groups
holding type member by member, and nothing round hidden members and
guides. Type, clip groups and compound shapes keep their box grown by the
strokes' reach, with their own strokes scaled into the frame.
2026-11-28 04:51:08 -08:00
dotCooCoo 895a9c0080 Brushes: Scatter Brush Options has Saturation Jitter, a per-copy saturation move
A scatter brush takes a Saturation Jitter amount from 0 to 100 percent (0
by default). Each copy moves the saturation of its solid fills and
strokes, type included, by its own amount up to that many points either
way, after the colorization and the hue jitter. The amounts come from the
stroke's path and the brush name, drawn apart from the hue jitter's, so a
stroke draws the same colors on every redraw, after Save and Open, and in
export, and turning it on does not change the hue jitter's amounts.

A color keeps its hue and brightness and moves in its own model: RGB in
the HSB of its values, CMYK over C, M and Y with K kept, Lab by moving its
chroma with its lightness and hue angle kept (a and b stay within 127).
The saturation stops at none and at full. White, black and grays stay as
they are. A brush at 0 saves no saturation_jitter key; a brush without
the key reads as 0.

- brush.options takes saturation_jitter, and brush.get shows it for every
  scatter brush. Brush Options shows a Saturation Jitter field
  (ui.brushOptions field saturationJitter).
- Hue and saturation jitter share one per-copy recolor step, which takes
  a salt and a color adjustment.
- Options of Selected Object showed Hue Jitter but dropped a change to it
  on OK, since a path could not set it for itself. A path now sets its own
  hue_jitter and saturation_jitter (brush.objectOptions).
- The .ai editing data writer does not write the amount, so such a brush
  is left out of the Brushes panel there and reported.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-28 04:45:10 -08:00
dotCooCoo bbc804b540 Slices: Slice Options and Divide Slices refuse a draft from before File > Revert
The dialogs' target held only the document uid and the selected slice
ids. File > Revert keeps the uid, and the restored file gives its slices
the same ids, so after a revert and a reselect, OK applied the old draft
to the restored slices. The target now also holds the document's revert
count, and OK after a revert leaves the document unchanged and shows
"The document was reverted. Reopen this dialog to continue." on the
status line, as Character Style Options, the Transform dialogs and
Create Object Mosaic do.
2026-11-28 04:41:46 -08:00
dotCooCoo 65d9ba2469 Direct Selection: a locked target does not open its group, and a second Shift-click deselects one anchor
expand_to took in the target without checking that it is editable, so a
locked or hidden object inside a selected group replaced the group with
its contents. It now leaves the selection unchanged for such a target.

select.anchors with mode toggle decided whether a path was selected whole
from the rest of the selection, so after a Shift-click had opened a group,
a Shift-click on an anchor of another path in it selected only that
anchor. A toggle on a group member now decides it from the member's own
selection; paths directly on a layer keep the existing rule.
2026-11-28 04:34:32 -08:00
dotCooCoo d2768427df Parametric Shape: canceling a panel edit restores the shape or the tool's next shape
The Parametric Shape panel read Shape, Count, W, H, Rotation, the kind's
own values and Corner Radius with value(), which carries each proposed
value but not the value a cancel restores. With no shape selected, a W
typed and then canceled with Escape stayed as the tool option, so the
next shape drawn had the canceled width. With a shape selected, each
keystroke was its own undo step and Escape left the shape edited.

- With a shape selected, each field's gesture runs in one undo scope
  (EditPath::Scope, as the Live Shape panel's fields do): Enter keeps the
  edit as one undo step, and Escape reverts it.
- With no shape selected, the fields send the value they land on
  (events.landed(), as the Corner and Shared Edge sections do since
  #9773), so Escape restores the opening tool option.
- With no shape selected, a highlighted Shape entry applies only once it
  is chosen: a new kind resets the kind's own count and values, which a
  restored kind would not bring back.
- A field left empty still ends its gesture, so its undo step closes.

Docs: docs/mcp.md (Parametric Shape Tool), docs/ui-parity.md.
2026-11-28 04:30:59 -08:00
dotCooCoo abb9fc09a3 Object Mosaic: tiles of a distorted image follow its corners
Create Object Mosaic refused an image changed by Perspective Distort or
Free Distort. It now places each tile's cell of pixels between the
image's corners through the image's projective map, so the tiles are
four-sided shapes that follow the perspective. A new size scales them
from the top left of the image's bounds, as it does for any image, and
the spacing and Use Ratio measure a pixel by the mean length of the
image's two sides along each axis. Plain images are tiled as before.

Docs: docs/mcp.md (Create Object Mosaic and the distorted-image
paragraph), docs/target-app-parity.md.
2026-11-28 04:24:46 -08:00
dotCooCoo 404776ac04 Plug-ins: the failed-stage deferral test no longer depends on CPU load
effect::tests::failed_and_missing_stages_are_deferred_with_their_reason
installed a plug-in that runs to the default instruction budget (about 51
million instructions for its input) inside a first view, whose budget is
2,000 ms of real time. Under heavy CPU load the run took longer than that,
the view's budget cut it short, and the stage was deferred for time
instead of as failed, so last_error was empty and the assertion at
effect.rs:722 failed. With the test pinned to one core beside 15 busy
loops it failed 3 runs of 3 that way.

The test now gives the plug-in a budget of 100,000 instructions, so the
run ends in an instruction-budget failure long before the view's budget
runs out, and it checks that the error is the instruction budget. The
same test passes 5 runs of 5 beside 15 busy loops and 5 of 5 beside 100.
2026-11-28 04:04:07 -08:00
dotCooCoo 33dc1f2d7b Bounds: a group's own stroke is measured along its members' shapes
A group's or layer's visual box grew by Appearance::outset(), the farthest
any of its strokes can reach from any path. For a miter-joined stroke that
is the miter limit times half the weight, so a 10 pt stroke of the group's
own round a square measured 50 pt past it instead of the 5 pt it paints.

The container's own strokes are now measured along each member path and
compound path, at any depth in its groups, as a path measures its own
strokes (Appearance::stroked_bounds). They add nothing round hidden members,
guides, images and symbol instances, which they do not paint, and grow the
box of other members (type, clip groups, live objects) by their reach as
before. visual_of_members keeps the old growth for callers that have only
boxes at hand.

The box of a group measured in a turned frame (Node::bounds_in) and
object.setBounds with Use Preview Bounds, which measures plain groups member
by member and symbol art object by object, measure a group's own strokes the
same way, so the size setBounds gives matches the visual box. There, too,
the strokes stop at hidden members and guides, and setBounds measures a
compound shape as one object, as its visual box takes it. A group's
own beveled or mitered stroke along a path with slanted segments now counts
as a slanted stroke corner (Node::has_slanted_stroke_corners), so setBounds
measures such a group as drawn when it sizes it out of proportion.
2026-11-28 03:56:47 -08:00
.CooCoo 3d88485fa6 Merge pull request #9896 from dotCooCoo/fix/corner-select-accepted
Properties: a live rectangle's Corner menu sets a kind only when it is chosen
2026-11-28 03:14:41 -08:00
.CooCoo e1e7844b21 Merge pull request #9894 from dotCooCoo/fix/palette-hide-menuless-commands
Command Palette: leave out commands with no menu item that need a value
2026-11-28 03:14:22 -08:00
.CooCoo b335904091 Merge pull request #9888 from dotCooCoo/feat/ai-inline-placed-eps
.ai import: a placed EPS file whose bytes the editing data includes opens as a placed document
2026-11-28 03:14:10 -08:00
.CooCoo d3de968852 Merge pull request #9859 from dotCooCoo/fix/direct-click-keeps-group
Direct Selection: a press on a member of a selected group keeps the group
2026-11-28 03:13:58 -08:00
dotCooCoo 05c3dffc42 Polygonal Lasso: the tool is in the Lasso tool's flyout
The Polygonal Lasso Tool joins the Lasso group in both shipped
toolbars, after the Enclosing Lasso, and stays in Object › Plug-ins ›
Polygonal Lasso. The All Tools drawer lists it once, under Select,
instead of under a heading of its own, and Edit › Keyboard Shortcuts ›
Tools lists it once. It has no default shortcut, and the Lasso keeps Q.
A toolbar the user already edited keeps its saved layout; Reset Toolbar
adds the tool. A Lasso group torn off the Tools panel shows it too.

The Enclosing Lasso moved the same way in #8333.
2026-11-28 03:13:53 -08:00
.CooCoo 0e41019424 Merge pull request #9893 from dotCooCoo/fix/document-setup-accepted
Document Setup: menus and fields apply a value only once it is chosen or committed
2026-11-28 02:57:44 -08:00
.CooCoo f3d22fce2c Merge pull request #9892 from dotCooCoo/fix/tests-hold-default-proof-view
Tests: ui-egui tests that change the proof view hold the default proof view
2026-11-28 02:57:30 -08:00
.CooCoo ab40213a4f Merge pull request #9887 from dotCooCoo/fix/outline-placed-docs-on-screen-wording
Docs: Outline view row says which layers draw placed documents crossed in Preview mode
2026-11-28 02:57:11 -08:00
dotCooCoo 1caf734c0f Docs: state the 256 MiB limit on included placed EPS bytes 2026-11-28 02:42:17 -08:00
dotCooCoo 3d33094d39 Direct Selection: hover marks the anchor a press takes across selected groups
The selected paths a hover tries were listed group by group in selection
order, while a press tries them topmost first across the document. With two
selected groups whose anchors fall within reach, hover marked the back
group's anchor and a press took the front one. The list is now sorted in
paint order, topmost first, with a Shaper Group's original shapes included.
2026-11-28 02:39:57 -08:00
.CooCoo 232587a9f7 Merge pull request #9891 from dotCooCoo/fix/eps-complexity-counts
EPS import: complexity tests count the work done instead of timing it
2026-11-28 02:38:57 -08:00
.CooCoo e5b46995c2 Merge pull request #9890 from dotCooCoo/fix/ai-envelope-budget-per-page
.ai import: envelopes and warped art spend a difference budget on each page
2026-11-28 02:38:45 -08:00
.CooCoo a74c946845 Merge pull request #9889 from dotCooCoo/fix/color-picker-live-artboard-flaky
Tests: run the profile-assigning status bar and Assign rows tests in their own process
2026-11-28 02:22:31 -08:00
.CooCoo 49b7ac722c Merge pull request #9886 from dotCooCoo/fix/group-cull-bounds-layer-mode
Outline view: a group measures a Preview-off sublayer in the sublayer's mode
2026-11-28 02:22:10 -08:00
.CooCoo 12468c14fb Merge pull request #9885 from dotCooCoo/fix/action-batch-accepted
Batch: Escape in the Play, Destination and File Name lists keeps the earlier choice
2026-11-28 02:21:59 -08:00
.CooCoo a9c0ceca00 Merge pull request #9837 from dotCooCoo/fix/prefs-dir-font-scans-own-root
Tests: app tests that share process-wide state pass under cargo test
2026-11-28 02:21:40 -08:00
.CooCoo aeed0ad5a1 Merge pull request #9807 from dotCooCoo/feat/select-inside-unfilled-shape
Selection: a click inside an unfilled closed shape selects it
2026-11-28 02:21:27 -08:00
.CooCoo da500eaa07 Merge pull request #9774 from dotCooCoo/fix/shape-control-canceled-tool-options-b-verify
Restore future shape settings when Control bar edits cancel
2026-11-28 02:21:09 -08:00
.CooCoo ba978a77a4 Merge pull request #9470 from dotCooCoo/fix/symbol-registry-budget
Charge Symbol registry hashing and correct key buffer reservations
2026-11-28 02:20:44 -08:00
dotCooCoo 3e8d293232 Direct Selection: a Shift-click on a member of a selected group deselects only that member
With a group selected, a Direct Selection Shift-click on the fill of one of its paths ran
select.toggle on the path, which added the path beside the group. The path stayed selected
through the group, and so did everything else in it.

The new select.remove command takes each target out of the selection. For a target inside a
selected group or compound path, Selection::expand_to first selects the objects inside the
outermost selected one on the way down to the target, in its place, so the rest of the group
stays selected. Hidden and locked objects and a Shaper Group's original shapes are left out. Direct Selection's Shift-click on such a path runs select.remove, and a
Shift-drag from there moves nothing. A Shift-click on one of the path's anchors runs
select.anchors with mode toggle, which now opens the group the same way and deselects only that
anchor. A path selected beside the group around it, as Group Selection leaves it, is taken out
with the group.

No public documentation describes this case, so this is VectorCraft's own rule.
2026-11-28 02:20:39 -08:00
.CooCoo 61149cc007 Merge pull request #9397 from dotCooCoo/fix/test262-promise-async-markers
Test262: match Promise async markers by argument
2026-11-28 02:20:20 -08:00
dotCooCoo ebf50139e7 Properties: a live rectangle's Corner menu sets a kind only when it is chosen
The Corner menus of a live rectangle's properties (one for all four
corners while Corner Radius is linked, one per corner otherwise) read
the select's current value, so a kind highlighted with the arrow keys
in the open list ran object.setLiveShape at once and recorded an undo
step, and Escape left the highlighted kind on the rectangle. The menus
now read only the committed pick, as the Corner menu of Direct-Selected
corners does since #9728. The rows are shared by the Transform panel,
the Properties panel's Transform section and the Contextual Task Bar.
2026-11-28 02:18:35 -08:00