Commit Graph
19258 Commits
Author SHA1 Message Date
dotCooCoo ffae374bac Merge main into feat/graphic-styles-alt-drag-replace 2026-11-17 09:04:06 -08:00
dotCooCoo 8d7708f1c0 Graphic Styles: art or an appearance dropped on a style with Alt replaces that style
Art dragged off the canvas, or the Appearance panel's thumbnail, dropped
on a style in the Graphic Styles panel with Alt held runs
graphicStyle.redefine with that style's name and the object's id (the
first object of the art), in one undo step. The style keeps its name,
id and place in the list, and the art still linked to it takes the new
look. The style is outlined while one is held over it with Alt. An
object already linked to the style with its look changes nothing.
Without Alt the drop still makes a new style, and a style dropped on a
style still moves it.
2026-11-17 09:04:01 -08:00
dotCooCoo b4cd6b6fa0 .ai save: read each embedded image's pixels once a save
The .ai writer kept only the image it read last, so a document that
placed two images in turn decoded each again at every placement. The
writer now keeps every image it reads during a save, by the address of
its data and its MIME type, up to 256 MiB of samples and 256 images,
with the image read last kept beside them when they are full. The file
written is unchanged; the tests compare the whole output and warnings
with the old one-image policy.

Two 2048 x 2048 images placed in turn 25 times each, release build,
thread CPU time, median of 7 alternating runs: 3774 ms with 50 decodes
before, 748 ms with 2 decodes after.
2026-11-17 09:03:45 -08:00
dotCooCoo 55590e1131 Symbols: Delete Symbol tests carry the dragged symbol's document
The Delete Symbol drop tests that landed on main set the dragged symbol's
document through the removed panel state key and built the old tuple
payload. They now build PanelDrag::Symbol with the active document's uid,
as the New Symbol tests do.
2026-11-17 09:02:39 -08:00
dotCooCoo f2feee8923 Clipboard: pass the document to used() in show_merged_colors 2026-11-17 08:57:30 -08:00
dotCooCoo 22d44c6fae Tools: the Spiral and Arc tools refuse the values they would keep as others
The Spiral tool's option check took a decay up to 150 while the tool keeps
at most 99.99, so `tool.setOption` reported success with another value. It
now takes 5 to 99.99. The Arc tool's lengths are checked from 1e-9 to 1e6,
the lengths it keeps. The Spiral dialog sends a typed decay past 99.99 as
99.99, the decay the spiral was already drawn with.

The Arc dialog test now expects OK to refuse a slope outside -100 to 100
and a Base Along other than X or Y, leaving the dialog open and the options
unchanged. The Slope field and its slider keep a typed value within that
range.
2026-11-17 08:55:24 -08:00
dotCooCoo 1736dcaea8 G5: Add original Stipple brush library 2026-11-17 08:53:54 -08:00
dotCooCoo 4373826cc6 Free Transform: Perspective Distort and Free Distort put an image's corners on the handles
Perspective Distort and Free Distort (`object.distort`) used to give an image
only the warp's affine approximation at its center, so its corners did not
follow the handles and it drifted away from paths warped with it.

- An image's four corners now go exactly where the warp takes them, alone or
  in a mixed selection. A parallelogram stays in the image's transform; any
  other shape is kept in the new `image_quad` field of the native file, which
  older files do not have and still open as before.
- Corners that would fold the image over, fall on one line, cross the warp's
  horizon or lie too close together for a perspective map are an error, and
  nothing changes. A file whose corners break these rules opens with the image
  placed by its transform. A drag is one undo step, and a distort that leaves
  the corners where they are records none.
- Bounds, hit testing, transforms, Transform effects, blends, the Eyedropper,
  Outline view, the Color Theme Picker and Weed Box and Lines follow the
  corners. Image info measures the resolution at the image's middle, and
  plug-ins get the corners.
- The canvas, printing and every exporter draw a distorted image as a mesh of
  affine image pieces through the shared mesh warp, clipped by the corners.
  In files and print the mesh aims to stay within 0.05 pt with cells of at
  least 2 pt; the canvas cuts it for the zoom, within a quarter of a pixel
  with cells of at least 4 pixels. Pieces reach into their neighbors (0.5 pt,
  or 2 pixels on the canvas), so the image stays opaque at every zoom. The
  mesh has at most 64 by 64 cells and no more cells across than the image
  has pixels on its longer side (at least 8). No warped copy of the pixels is
  stored. DXF and WMF write the nearest parallelogram and warn.
- Crop Image, Image Trace, Relink, Embed, Unembed, Create Object Mosaic,
  Create Gradient Mesh and Place with Replace refuse a distorted image with an
  error that names the distortion. Update Links puts a changed file's pixels
  between the same corners, without applying Placement Options. Mask follows
  the corners. Rasterize makes a plain image of it.
- The new error messages have rows in every complete-message catalog.

Docs: docs/mcp.md, docs/plugins.md, docs/target-app-parity.md.
2026-11-17 08:46:08 -08:00
dotCooCoo 8038d7bf3a Symbols: drawn art keeps its evaluation as an Evaluated
The drawn-art store that main added for clicks now keeps its entries as
the shared Evaluated type, so a kept entry is also measured again when a
symbol's 9-slice guides or natural size change. Evaluated::new builds an
entry for both stores.
2026-11-17 08:46:06 -08:00
dotCooCoo ee10fbc9f6 Merge main into fix/symbol-drop-across-documents 2026-11-17 08:42:42 -08:00
dotCooCoo 386b2e9d30 Merge main into feat/graph-designs-from-other-document 2026-11-17 08:41:51 -08:00
dotCooCoo 4ab773494e Workspace: the Tools drop strip lights up where Tools docks, and the docs name the exceptions
With no panels docked on the left and a toolbar made with New Toolbar docked there, a drop on
the canvas's left edge docks Tools at the window's edge, left of the toolbar's lane. The strip
that lit up during the move was the canvas's edge, right of the lane. The window's edge now
lights up instead.

The window.toolsBesideCanvas params text, docs/control-protocol.md, docs/target-app-parity.md and
the UiState doc comment now say that a drop with no panels docked on the left, or in the column
both edges share beside panels collapsed to icons, leaves Window › Toolbars › Keep Tools Beside
the Canvas as it is. ROADMAP's progress log gets a line for the changed drop rule.

The test of a release where the move started now presses on the title bar, moves past the drag
threshold so the move starts, and releases within the travel limit over the canvas's edge; it
fails without that limit.
2026-11-17 08:41:27 -08:00
dotCooCoo 6e44c63cc3 Undo: undo and redo keep the settings changed without an undo step
Undo and redo put back the whole document a step stored, so settings
that change without an undo step went back with it. Undoing any
earlier edit turned the perspective grid's Lock Grid off again, turned
its Snap to Grid back on, showed a hidden grid and switched the active
plane back. It also reset the grid from Gridline every and
Subdivisions, the export settings assets.settings.set stores, and the
current brush and symbol.

Each undo step now also records these settings as the step left them.
Undo and redo compare that record with the document they bring back:
a setting the step did not change stays as it is now, and a setting
the step changed comes back with the step. So undoing a perspective
grid preset still hides the grid the preset showed, and undoing a grid
definition that locked the grid unlocks it. The point Automatic Plane
Positioning holds still follows the steps, and is let go when the
active plane kept is another one.
2026-11-17 08:40:50 -08:00
dotCooCoo 4d1a36fb34 Merge main into fix/instance-row-effects-outline-hit 2026-11-17 08:37:25 -08:00
dotCooCoo 63eeb73a26 Merge main into feat/toast-messages 2026-11-17 08:35:45 -08:00
dotCooCoo cc8e78350d G5: Add original Paper Cutouts graphic style library 2026-11-17 08:32:02 -08:00
yoriswind 676a8589b4 Format Scissors pixel option repair 2026-11-17 08:31:11 -08:00
dotCooCoo 102cfd0cde Color: built-in CMYK profiles carry their paper and an exact colorimetric table
The ICC profile written for a built-in CMYK working space (embedded in
PDF, TIFF, JPEG and PSD exports) changes in two ways:

- The media white point (wtpt) is the model's paper instead of D50, so
  the ICC-absolute colorimetric intent reproduces the paper.
- The colorimetric Lab -> CMYK table (B2A1), which the gamut tag is also
  sampled from, is the inverse of the CMYK -> Lab table without
  black-point compensation. Before, all three Lab -> CMYK tables had
  compensation built in, so a dark build such as C40 M30 Y30 K60 that
  went through the profile and back missed by Delta E 2000 2.7 on
  Generic CMYK. The perceptual and saturation tables keep compensation.
2026-11-17 08:30:52 -08:00
dotCooCoo 04c65a85af Messages: app.toast shows a message over the window without stopping work
`app.toast {message, level?, seconds?}` queues a short message that the
desktop app shows at the window's bottom right. It closes after its time
(4 seconds by default, 0.5 to 60) or when clicked. At most 5 show at
once, the newest lowest; a message shows at most 6 lines with the whole
text on hover, and a stack taller than the window scrolls. `level`
(info, success, warning, error) sets the color of its edge.

Scripts raise one with `vc.run`, MCP clients and plug-ins through the
command, and an action records it as a step. The app's own code calls
`Session::toast`. The command edits no document and adds no undo step;
invalid values are errors. Part of #7523: the tick sound is not
included.

Docs: docs/mcp.md, the Automation evidence in docs/target-app-parity.md.
2026-11-17 08:30:51 -08:00
dotCooCoo d8eae5b560 Pathfinder: Scale Strokes & Effects scales a Pathfinder effect's precision
The Pathfinder effects' `precision` is now a distance parameter, as Trap's
is, so `effect.list` lists it under `lengths`, Scale Strokes & Effects
scales it with the object, and the Appearance panel's effect fields show
it in document units. An effect saved without a precision gets the default it evaluates
with, scaled.
2026-11-17 08:29:09 -08:00
yoriswind c4e36de0f0 Use Drawing pixel snapping options consistently for Scissors 2026-11-17 08:28:44 -08:00
dotCooCoo c4ead8e46f Transform: Rotate Bounding Box… turns the selection's bounding box without moving the art
Object › Transform › Rotate Bounding Box… asks for an angle and turns the
bounding box of the selected objects by it, leaving their art where it
is. Reset Bounding Box squares it again.

- object.rotateBoundingBox {angle, absolute?}: by default the box turns
  by angle from the angle the selected objects share (0 when theirs
  differ); absolute: true turns it to angle. Objects with different
  angles get one shared angle, and the objects inside a group or a
  linked opacity mask turn with it and keep their relative angle. A path
  of a compound path selected on its own turns only its own box, the
  same objects the transforms move. An angle within 1e-6° of 0 is
  stored as 0. One undo step, none when every box is already at the
  angle. A missing or non-numeric angle is an error. changed counts
  every box that turned, as object.resetBoundingBox counts the boxes it
  squares.
- object.resetBoundingBox squares only the box of a compound path's
  path selected on its own, instead of the whole compound path.
- Menu labels in every catalog.

Docs: docs/mcp.md, docs/target-app-parity.md.

Part of #5954.
2026-11-17 08:28:29 -08:00
dotCooCoo 9c586a2b4f Sync PNG export options in the MCP command catalog 2026-11-17 08:17:11 -08:00
yoriswind bdae835305 Merge current main before Scissors full local CI 2026-11-17 08:11:36 -08:00
dotCooCoo 0a212624c1 Object Mosaic: OK keeps the dialog open when the command refuses its fields
OK closed the dialog whether or not object.createObjectMosaic succeeded, so a field the command refused, set through ui.dialog.set, was lost. The dialog now closes only when the command succeeds, as form::commit_preview does.
2026-11-17 08:09:58 -08:00
dotCooCoo 66f805f098 Merge main into feat/pathfinder-effect-options 2026-11-17 08:06:49 -08:00
dotCooCoo 9ae9da71b8 Fix numeric reference points in bounds transforms 2026-11-17 08:02:50 -08:00
dotCooCoo 7884f59955 Keep Nature Icons progress in evidence only 2026-11-17 08:01:46 -08:00
dotCooCoo 47b66f87ca Keep Engraving progress in evidence only 2026-11-17 08:00:24 -08:00
dotCooCoo 2d1832394a Help: result paths name the menus as they are drawn
A command result's menu path now reads as the menus draw it in the UI
language: plug-in submenus and Scripts folders keep their own names.
menu_entries carries that shown path beside the English one. Outside
macOS, items that only the VectorCraft application menu lists are left
out of Help, since the window's menu bar has no such menu.
2026-11-17 07:59:10 -08:00
dotCooCoo c0342e63aa Swatches: quick clicks after a double-click do not apply the swatch
A third quick click on a swatch counts as a triple click, and so does
each quick click after it. Those clicks still applied the swatch, so a
triple click on a pattern swatch opened pattern editing and then
painted the tile art with the pattern itself. Only the first click of
a run of quick clicks now applies and selects the swatch.

The test now sends four quick clicks and gives the art a solid fill in
each view, so the list view's first click is checked on its own.
2026-11-17 07:59:01 -08:00
dotCooCoo 0586232cbf i18n: French Object Mosaic labels use a no-break space before colons
The six Object Mosaic dialog labels that end in a colon now put U+00A0 before it, as the other colon rows in fr.tsv do, so french_catalog_uses_nonbreaking_prose_punctuation passes.
2026-11-17 07:53:39 -08:00
dotCooCoo 8f16658498 Fix #7906: a dialog that opens closes the Command Palette, flyouts and menus
A dialog opened without a press in the window, such as a pick in the
macOS menu bar, an automation command or a run that ends in a dialog,
left the Command Palette open over it, and the palette's search field
kept the keyboard focus. A tool group's flyout, the All Tools drawer
and an open menu or popup also stayed open above the dialog's backdrop.
The palette could also be opened over an open dialog from the macOS
menu bar or by an automation command, and its field then took the
keyboard focus from the dialog.

In the pass a dialog, the About window, a file dialog, the update
prompt or a progress window opens, the app now closes the palette, the
flyout, the drawer and any open popup. A flyout, drawer or menu opened
while a progress window is waiting to appear also closes when it
appears. While such a window is open, the palette stays closed, and the
widget that had the focus before the palette opened does not take it
back under the window. A palette opened after the window closes stays
open until the next window opens.
2026-11-17 07:52:30 -08:00
dotCooCoo afb8382677 Add original Nature Icons symbol library 2026-11-17 07:51:48 -08:00
yoriswind 5f0e011379 Preserve open outlines painted by ancestor strokes 2026-11-17 07:48:02 -08:00
dotCooCoo e37a160816 Document Engraving library in G5 evidence 2026-11-17 07:44:33 -08:00
dotCooCoo 5a96aff5da Help: command results use the labels their menus show
Help now searches and shows a command by the label its menu draws in
the UI language, so Effect > Pathfinder > Add is found as Réunion in
French. menus::shown_label holds the menus' item-label rule, and the
menu bar and Help both call it.
2026-11-17 07:44:19 -08:00
dotCooCoo 0a14dc0a8c Docs: wrap the Enclosing Lasso paragraph in docs/roadmap.md 2026-11-17 07:43:48 -08:00
dotCooCoo 1ed9337e78 Shortcuts: a wait a dialog ends drops the key's repeat in the frame it is let go
When a dialog or field took the keyboard while a key with a hold
shortcut waited, and the next frame held both a repeat of the key and
its release, the repeat and the text it typed reached the dialog. The
frame that ends the wait now drops them too.
2026-11-17 07:41:45 -08:00
BFlat 36b5a5920c Merge pull request #8098 from el-j/feat/save-pdf-transparency-confirmation-8097
Fix #8097: Save PDF: show flattener rasterization resolutions in Summary warning and Advanced section
2026-11-17 22:38:24 +07:00
BFlat 27d0b095da Merge pull request #7075 from mockydevs/fix/twist-smooth-7069
Twist: handles follow the rotation's derivative, so a strongly twisted path is smooth
2026-11-17 22:38:15 +07:00
dotCooCoo 553a31883f Shortcuts: the Keyboard Shortcuts search finds a row by its hold shortcut
While Hold Shortcuts is on, typing a key in the search now finds the row
whose Hold column shows it, as it finds a row by its shortcut.
2026-11-17 07:31:02 -08:00
dotCooCoo 3c7f03f62d Stroke: the Profile list is dimmed while the stroke's brush keeps its own size
Brush art does not follow a stroke's width profile, so picking a profile
for a brushed stroke changed nothing on the canvas.

- While every stroke the Profile list edits draws with a brush, the list
  in the Stroke panel, the Properties panel and the Control bar is
  dimmed and says why when hovered. It opens no list while those strokes
  are uniform, and offers only Uniform, which removes the profiles, while
  one has a profile. The Flip Along and Flip Across buttons beside it
  are off. The strokes are the ones stroke.set edits: the
  active Appearance stroke row, a selected group's or compound shape's
  own stroke, or the objects' top strokes. Images and symbol instances
  do not count. A selection where one stroke has no brush keeps the full
  list.
- The Width tool adds, edits and deletes no width points on a brushed
  stroke; a press or double-click on one, or Delete with its width
  points selected, shows the same reason in the status bar. Without
  Shift, the press deselects the width points of other strokes. A
  plain stroke under a
  selected brushed one stays reachable, and width points selected
  before their stroke took a brush show no handles.
- The reason has a row in every complete catalog.
2026-11-17 07:30:44 -08:00
dotCooCoo 12977ec543 Fix #1954: PDF/X CMYK in the output intent's profile is written as DeviceCMYK
A PDF/X-3 or PDF/X-4 export tagged every CMYK color with an ICC-based
space of the same profile that the output intent embeds. In PDF/X-3 and PDF/X-4, CMYK colors in the
profile of a CMYK output intent are now DeviceCMYK, and the profile is
written once, as the output intent's DestOutputProfile (ISO 32000-1,
14.11.5:
https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#page=641).

- With output.profiles none and a CMYK output intent, PDF/X-3 and PDF/X-4
  write every CMYK color as DeviceCMYK, unless colors are converted to a
  CMYK destination of another profile, which keeps its tag. Before, those
  standards tagged every color whatever profiles said.
- RGB and gray colors stay tagged, and so do CMYK colors and images in
  another profile.
- A CMYK image that carries the output intent's profile is DeviceCMYK,
  and so is every CMYK image when none makes CMYK colors DeviceCMYK. A
  CMYK JPEG then loses its ICC_PROFILE segments.
- Transparency groups blend in DeviceCMYK when CMYK colors are
  DeviceCMYK, also when the file has no ICC-based CMYK space.
- Files without a standard keep the tags that profiles asks for.
- The Save PDF dialog's note for PDF/X-3 and PDF/X-4 says that CMYK
  colors in the output intent's profile are written as DeviceCMYK.

Docs: docs/mcp.md, docs/target-app-parity.md and the document.exportPdf
params text.
2026-11-17 07:30:22 -08:00
dotCooCoo b778279d6f Help: kept command results follow their menu items
A kept command result now takes its menu item's current label and menu
path when the menu state changes, so Show Grid reads Hide Grid once the
grid shows, and a command that no menu lists any more drops out. The
results are brought up to date only when the menus' state hash changes,
with the menu entries looked up by command and params. Help commands
reject parameters that are not an object.
2026-11-17 07:27:00 -08:00
dotCooCoo cce26edfa0 Merge main into fix/metafile-loss-warnings
# Conflicts:
#	Cargo.toml
2026-11-17 07:25:38 -08:00
dotCooCoo de9424cece Workspace: Tools dropped on the canvas's left edge docks there, and the setting follows
A floating Tools panel dropped on the canvas's left edge, right of panels
docked on the left, stayed floating unless Window > Toolbars > Keep Tools
Beside the Canvas was on. The canvas's left edge is now always a target:
a drop there docks Tools beside the canvas and turns the setting on, and a
drop on the window's left edge docks it there and turns the setting off,
so the menu item's check mark shows where Tools is.

This changes one existing behavior: with the setting on and panels docked
on the left, a drop on the window's left edge used to dock Tools beside the
canvas and keep the setting on. It now docks Tools at the window's edge and
turns the setting off.

With no panels docked on the left, both edges put Tools in the same place
(left of any toolbars made with New Toolbar docked there), so a drop on
either docks it where the setting puts it and leaves the setting as it is.
So does a drop in the column both edges share when left-side panels are
collapsed to icons narrower than the window's edge strip. A release in the
frame right after Tools floats out of its place at the window's edge skips
the canvas-edge strip, which that frame laid out right of the docked panel.

Part of #7837
2026-11-17 07:24:23 -08:00
dotCooCoo d080f0fb85 Font menu: Small, Medium and Large set the sample size from inside the menu
Part of #6889. While the samples are shown, a row under the filters
offers Small, Medium and Large, as the font browser overview and the
user guide describe the sample size control. With Enable in-menu font
previews off, the row is not shown, as the user guide describes.

VectorCraft's own rules: a click sets Preferences › Type › Font Preview
Size (`fontPreviewSize`), so every font menu takes the new row height,
and the host writes the preferences file as it does when Preferences is
confirmed. The current size is selected, and a click on it changes
nothing. A saved value that is none of the three sizes shows Medium,
and a click replaces it. The change adds no undo step and leaves a font
previewed on the selected type in place.

https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/font-options-overview.html
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=485

Docs: docs/target-app-parity.md evidence line.
2026-11-17 07:23:19 -08:00
dotCooCoo 61abac22bf Merge main into chore/craft-libs-exr-deep-offsets
# Conflicts:
#	Cargo.toml
2026-11-17 07:20:10 -08:00
dotCooCoo c886ab1698 Shortcuts: a tool key before a hold key in one frame reaches its tool first
When a key the active tool takes (E with the Extend Path tool) went
down before a key with a hold shortcut that was pressed and let go in
the same frame, the hold key's tap ran first. A tap that chose another
tool then sent the earlier key to the new tool. The hold key now goes
back to the frame in that case, as it does after a chord with Cmd, Ctrl
or Alt, so both keys act in order as with Hold Shortcuts off.
2026-11-17 07:19:14 -08:00