Commit Graph
7190 Commits
Author SHA1 Message Date
Zaxaerith 10a03396d1 docs(cli): clarify artboard fill for selected artwork 2026-11-25 14:58:16 +08:00
dotCooCoo 3ca2cf7d34 Merge main into feat/plugin-api-document-info 2026-11-24 22:49:15 -08:00
dotCooCoo ccff9efebb Plug-ins: tests fail on a grants read error, check the replaced-file callback ran, and release held loads first
- The grant test accepts only a missing grants file as an empty list; any other read error fails it.
- The same-stamp replacement test asserts that the callback rewrote the file before it checks that
  nothing installed.
- The loader's ordering test binds the job senders after `loads`, so a failing assertion releases
  the held jobs before `loads` waits on them under the manual clock.
2026-11-24 22:46:38 -08:00
dotCooCoo 34abb11d0e Merge main into feat/scripts-execute-menu-command 2026-11-24 22:46:32 -08:00
dotCooCoo 66efae46f2 Scripts: app.executeMenuCommand runs a menu command
app.executeMenuCommand(name) runs the command of a menu item on the
active document. It takes the names selectall, deselectall, group,
ungroup, makeMask, releaseMask, compoundPath, noCompoundPath and
"Fit Artboard to artwork bounds", which fits the active artboard.
Names are matched exactly. Any other name throws an error that names
it, and a name that is not a string throws a TypeError. A menu item
that is not available, with no document open or nothing selected,
does nothing and adds no undo step.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-24 22:45:55 -08:00
dotCooCoo 254bcf4226 Merge main into feat/corners-link-popup 2026-11-24 22:39:31 -08:00
dotCooCoo 4ebe9d9bbd Merge main into feat/scripts-api-d1a-app-documents 2026-11-24 21:40:17 -08:00
dotCooCoo 1f1c8ccf8c Merge main into feat/scripts-api-d1a-app-documents 2026-11-24 20:48:43 -08:00
dotCooCoo 2b4e34c7a2 Merge main into feat/corners-link-popup 2026-11-24 20:39:43 -08:00
dotCooCoo bd597c019d Merge main into feat/circle-from-center 2026-11-24 20:32:39 -08:00
BFlat 817daf24e8 Merge pull request #9148 from dotCooCoo/fix/white-spot-ink-overprints
Overprint: a white spot ink keeps overprinting with Discard White Overprint on
2026-11-25 11:32:02 +07:00
BFlat 96d12ebf06 Merge pull request #9111 from dotCooCoo/feat/delete-keeps-paths-joined
Direct Selection: optional preference keeps paths joined when Delete removes anchors
2026-11-25 11:31:40 +07:00
dotCooCoo 2d0b35b36b Merge main into feat/quick-pen-edit-delete
The Quick Pen context menu test uses the menu's Node helpers (labels, has, context_entries) of the new menu framework.
2026-11-24 20:31:11 -08:00
BFlat 5158ad606c Merge pull request #9047 from dotCooCoo/fix/ctrl-lends-selection-tool
Selection: Cmd/Ctrl lends Direct Selection until it is released
2026-11-25 11:31:03 +07:00
BFlat 28552bb611 Merge pull request #8980 from dotCooCoo/feat/artboards-rearrange-selected
Artboards: Rearrange works on the selected artboards only
2026-11-25 11:30:31 +07:00
BFlat 55e95148ee Merge pull request #8950 from dotCooCoo/feat/docinfo-image-details
Document Info: Linked Images and Embedded Images show each image's format, resolution and memory
2026-11-25 11:30:10 +07:00
BFlat cbb977b8f1 Merge pull request #7642 from dotCooCoo/feat/color-wheel-opacity
Part of #978: Show Opacity in the Color Wheel panel sets the opacity of the fill or stroke
2026-11-25 11:28:54 +07:00
BFlat 1b831cf847 Merge pull request #9124 from dotCooCoo/fix/library-numbered-tint-names
Swatch libraries: swatches a pattern brings skip the library's numbered names
2026-11-25 11:28:34 +07:00
BFlat 0ce586a481 Merge pull request #9092 from dotCooCoo/feat/plugin-menu-placement
Plug-ins: a command's manifest can place it in another menu
2026-11-25 11:27:56 +07:00
BFlat 617f5d6d71 Merge pull request #9066 from dotCooCoo/feat/inscribed-circle
Path Precision Tools: Add Inscribed Circle draws the largest circle inside a path
2026-11-25 11:27:35 +07:00
BFlat 53199e5dbc Merge pull request #8948 from dotCooCoo/fix/script-grants-read-failure
Scripts: script.grants reports an error when the grants file cannot be read
2026-11-25 11:27:15 +07:00
BFlat 2fb75e8100 Merge pull request #8788 from dotCooCoo/feat/quick-pen-length-handles
Pen: Quick Pen handles at a path's ends make its line or arc longer or shorter
2026-11-25 11:26:26 +07:00
dotCooCoo c1859a1f1e Undo: an anchor drag ends when a command renumbers its path
A command run during a Direct Selection drag of anchors or segments, such as
Add Anchor Point or Reverse Path Direction, can number the path's anchors
anew. The drag kept its old anchor numbers and then moved a different point.
When the command changes a path that holds the drag's selected anchors or
segments in more than a move of the whole path, the drag now ends without a
step of its own, and the command's edit stays. A command that only moves the
path leaves the drag going on the same anchor.
2026-11-24 20:22:27 -08:00
dotCooCoo ee947082ed Merge main into fix/plugin-grants-integrity 2026-11-24 19:26:24 -08:00
dotCooCoo 342ce8de51 Merge main into feat/delete-keeps-paths-joined
The two Direct Selection preference tests in
crates/ui-egui/src/tests/removeanchors.rs now use
crate::testing::ui_context() and app.canvas_view() to place the click,
as the other canvas tests on main do.
2026-11-24 19:17:02 -08:00
dotCooCoo aa8aba4500 Merge main into feat/artboards-rearrange-selected 2026-11-24 19:00:31 -08:00
dotCooCoo a6783443d3 Document Info: an image with no pixels across or down gives no resolution
A linked image whose width or height is 0 has no area, so its row reads
`resolution unavailable` and `effectivePpi` is null, whatever its
transform.
2026-11-24 18:21:18 -08:00
dotCooCoo dd37e3c14b Tests: Find Objects during a drag journals the drag's own selection
After Find Objects with `select` runs during a drag, the drag's own
selection is journaled before its release, so the expected journal is
document.find, select.set, shape.rectangle.
2026-11-24 18:20:37 -08:00
dotCooCoo 986da7d0b4 Scripts: assigning undefined to Document.selection throws and keeps the selection
Document.selection treated undefined like null and cleared the selection.
It now throws a TypeError for undefined, as for any value that is not a
page item, a list of them, null or [], and leaves the selection as it was.
2026-11-24 18:06:50 -08:00
dotCooCoo 0a36ef97e1 Merge main into fix/ctrl-lends-selection-tool 2026-11-24 18:02:30 -08:00
dotCooCoo ef5de4d5e5 Merge main into feat/docinfo-image-details 2026-11-24 17:57:03 -08:00
dotCooCoo 1ac56ef3ba Scripts: script.grants reports a grants file that is a link to a missing file
A link in the grants file's place whose target is missing is there but
cannot be read, so script.grants fails on it and script.grants.revoke
leaves it as it is, instead of treating it as a missing grants file.
2026-11-24 17:54:20 -08:00
dotCooCoo ebebe8c02a Retype: the installed-font search picks the faces to compare on its own thread
RetypeRun::prepare no longer reads font files: the loaded faces to compare
first are picked when the search runs, off the UI thread. The Retype Fonts
list leaves room for installed fonts by the loaded matches it lists, so a
face that matches only as combining marks takes no place.
2026-11-24 17:32:58 -08:00
dotCooCoo 6d0d4bd1a4 Merge main into fix/script-grants-read-failure 2026-11-24 17:26:58 -08:00
dotCooCoo f16defe5db Merge main into feat/scripts-api-d7b-tags-notes-uuid 2026-11-24 17:00:39 -08:00
dotCooCoo af34f97abc Merge feat/scripts-api-d1a-app-documents into feat/scripts-api-d7b-tags-notes-uuid
# Conflicts:
#	crates/ui-egui/src/dialogs/new_document.rs
2026-11-24 17:00:35 -08:00
dotCooCoo 9a60524d6b Merge main into feat/plugin-menu-placement 2026-11-24 16:21:26 -08:00
dotCooCoo 112eacbb1c Scripts: remove() keeps an emptied compound path, and note takes numbers
- remove() on the last path of a compound path keeps the compound path,
  empty, as move() does, so a script that holds it can still read it.
  edit.clear takes keepEmpty: true for this, and passes it on to
  path.deleteAnchors when it deletes direct-selected anchors; without
  it, Clear still deletes a compound path it empties.
- note, like name, takes a number or a Boolean as the text String()
  gives it.
- Assigning a graph mark or label the opacity it already has throws
  Cannot edit in a hidden or locked layer when the graph keeps another
  opacity for its series or kind, since the assignment would still
  change the graph.
- Only the exact opacity the getter reports counts as the opacity an
  object already has; a value that differs from it by less than 0.0001
  is now applied instead of being dropped.
- Reading a document's selection orders only the selected objects, by
  their place in the tree, so its cost no longer grows with the size of
  the document.
- docs/mcp.md: the opacity exception, note, keepEmpty, and that
  strict-mode code throws a TypeError when it assigns a member an object
  lacks.

Docs: docs/mcp.md.
2026-11-24 16:15:51 -08:00
dotCooCoo fe0e408607 Scripts: zOrder refuses art in a hidden or locked layer, and the same opacity may be assigned
- zOrder() on an object in a hidden or locked layer throws Cannot edit
  and changes nothing, as the other setters do.
- Assigning an object the opacity it already has no longer throws when
  its layer is hidden or locked. hidden and locked are still refused
  there, whatever the value.
- The docs say that a top-level var selection = ... assigns the
  selection, that the selection order and the tab order of documents
  differ from the objectReferences page, and that assigning a member a
  collection lacks throws Not found.

Docs: docs/mcp.md.
2026-11-24 16:15:50 -08:00
dotCooCoo 3ad7a77378 Merge main into feat/retype-installed-fonts 2026-11-24 15:24:41 -08:00
dotCooCoo 7a85e09b26 Merge main into feat/retype-installed-fonts 2026-11-24 15:21:47 -08:00
dotCooCoo d1d2cb4c26 Merge main into fix/eps-discard-white-overprint 2026-11-24 13:58:57 -08:00
dotCooCoo ea602fcd00 Undo: Find Objects with select during a drag is a step of its own
document.find with `select: true` is journaled, so during a tool drag it
now runs outside the drag like other journaled commands. It finds and
selects only objects outside the drag's preview, as its replay before
the drag does.
2026-11-24 13:54:07 -08:00
dotCooCoo da4cc3e9f9 Merge main into feat/inscribed-circle 2026-11-24 13:39:51 -08:00
ruchirguitar e78f196dcc Merge main and port Variables row menus to Craft UI 2026-11-25 02:48:51 +05:30
dotCooCoo 14fb78aa39 Merge main into fix/save-for-web-shift-edits
Main moved Save for Web's color table edits to dialogs/save_for_web/color_table.rs. The 256-shift limit and the matching of colors written another way now live there, with their tests in tests_table.rs.
2026-11-24 13:12:39 -08:00
dotCooCoo 7a37e282d9 Undo: putting back a drag's paints names every PaintDefaults field
put_back_interaction compares the new-art paints field by field. It now
destructures PaintDefaults without `..`, so a field added to the struct
does not compile until it is handled there.
2026-11-24 12:50:43 -08:00
dotCooCoo ecebe5f1d1 Merge main into feat/color-wheel-opacity 2026-11-24 12:33:59 -08:00
dotCooCoo 8f474a41a3 Merge main into fix/white-spot-ink-overprints
The white checks for colorized images in PDF export, EPS export and Print
Ink Fixes now go through DiscardWhite, which replaces
Document::spot_ink and Document::discards_white_overprint. Printed
separations read DiscardWhite with the spot inks they print, so a white
spot ink converted to process inks knocks out there.
2026-11-24 12:31:45 -08:00
dotCooCoo ec42aea37f Merge main into fix/library-numbered-tint-names 2026-11-24 11:36:43 -08:00