Commit Graph
23685 Commits
Author SHA1 Message Date
dotCooCoo 44401d8739 Clean Up: keep the clipping paths of groups and layers
Object > Path > Clean Up passed no clipping state into a layer's
objects, so Unpainted Objects removed a clipping layer's compound
clipping path. It also looked inside a group or compound path used as a
clipping path, so Stray Points, Unpainted Objects and Empty Text Paths
removed its members and could leave an empty compound path clipping.
Blank type used as a clipping path was removed too.

The walk now finds a clipping path with Node::clips for layers as well as
groups, and leaves the clipping path and everything it holds as they are,
whatever kind of object it is.
2026-11-27 12:39:53 -08:00
dotCooCoo bde2e10eec Smart Guides: a press reuses the targets the hover gathered for the same document state
Part of #8296.

DrawSnap::press gathered the snap targets from all the art in the window on
every press, while a hover reuses them until the document's revision, what is
left out, the window or a snapping option changes. Every drawing tool hovers
over the point it then presses, so each Pen click (and each press of the
shape, Type, Artboard and Scissors tools) walked the whole document again for
targets equal to the ones it already held.

A press now gathers only when that key differs from the one the targets were
gathered for, the same check hover makes. The drag a press starts still keeps
the press's targets.

The Scissors test that pressed over a different document under the hover's
revision now gives that document a new revision, since the engine moves the
revision with every change to the document.
2026-11-27 12:39:00 -08:00
dotCooCoo 2e2fd7f874 Tests: the font list tests hold back other threads' font changes
Three tests in crates/engine/src/tests/fontlist.rs read the process-wide
font database twice while other tests in the same binary add fonts and
composite fonts to it. A font added between the two reads made the
lists differ, and the installed-family filter did not hide it, because
fonts added with `add_font` count as installed. A stress run of the
engine's font tests failed 4 times in 60.

The font list, Show Similar Fonts and Refresh Font List tests now hold
`test_fonts::steady_fonts` across their reads, as the font menu's tests
do, and compare whole lists. The installed-family filter and the 20-try
generation loop are removed.
2026-11-27 12:34:42 -08:00
dotCooCoo 7ee80289fc Paths: a subpath of one anchor counts in the path's bounds
PathData::bounds joined only the boxes of segments. A subpath with a
single anchor has no segment, so its point was left out: a path of two
lone anchors such as "M 10 20 M 90 80" measured an empty box at the
origin, and a lone anchor beside a segment did not widen the box. A path
of exactly one anchor already measured that anchor's point.

Each subpath without a segment now adds its anchor's point to the box.
2026-11-27 12:33:36 -08:00
jmvergesandClaude Opus 5.5 c2cfb90f4b .ai save: no orphan styles for type written as outlines
The styles that link type's colors to their swatches were made before
the writer knew whether the type's story would be written. Type written
as its outlines after all (a thread the text document can't hold) left
its style behind, named by nothing. Such a style is now written only
when a story names it.

Since the previous commit they are written on a large canvas too,
where no other art style is: they hold no lengths to scale. The large
canvas warning now says "no art styles of objects", the comment beside
it says why, and the large canvas test (renamed) checks that spot type
there reads back linked with no warning.

A note on the previous commit's message: "the saved file opened with
the type in a plain process color" is only true when the saved file is
read from its editing data (another app, or VectorCraft once the
VectorCraft document it carries no longer matches its pages). A plain
reopen in VectorCraft restores that document and already kept the ink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:32:20 +00:00
dotCooCoo 2d20f54607 Tests: ui-egui tests that load a color profile run in their own process
The canvas's frame key holds the loaded profiles' generation
(cms::profiles_generation), which every profile load or removal in the
process raises. Four ui-egui tests loaded and removed a profile in the
shared test process, so a canvas test running beside them saw its color
key change between two frames:
a_worker_frame_of_other_color_settings_is_not_shown saw the generation go
from 0 to 2, and a_pan_after_the_settling_frame_copies did not copy the
pan because its key no longer matched the kept frame. Both fail in the
same way when a profile is loaded and removed on another thread in the
middle of the test.

- testing::in_own_process runs one test alone in a child test process,
  as the crate's other tests that change process-wide color state
  already do.
- The color wheel gamut reload test, the two Proof Setup tests with a
  removed profile and the Save PDF summary test with a removed profile
  call it first.
2026-11-27 12:30:23 -08:00
dotCooCoo 8c9c5146c4 Plug-ins: the example Desaturate filter leaves paths as they were
The example filter parsed its input with serde_json's default float
parser and handed every object back with its `path`. A coordinate could
come back changed in its last digit, which the host reads as a new path:
a live shape became a plain path after a color-only run, and a compound
path with a hidden, locked or guide member was refused.

The filter now leaves `path` out of each object it returns, so each
object keeps its geometry, as docs/plugins.md advises for a filter that
does not change it. The fixture desaturate.wasm is rebuilt from the
source with build.sh.

Docs: docs/plugins.md.
2026-11-27 12:25:16 -08:00
dotCooCoo 5a8f60e3b7 Retype: docs say which font a shape that several fonts match takes
docs/mcp.md said a near-matched shape becomes the glyph it is closest
to. The command sets every shape in the font that the most selected
shapes match, and among fonts that as many shapes match, in the one
whose glyphs fit them closest in all (crates/engine/src/cmd/retype.rs,
the face votes before the lines are built), so a closer glyph in
another font is not used. The paragraph now says so.
2026-11-27 12:25:01 -08:00
dotCooCoo 949eb9d352 Color Picker: keep Fill and Stroke edits on the opening document
Only the artboard target remembered the document a Color Picker opened
in. A Fill or Stroke picker opened on one document and left open while
another document became active previewed the color on the other
document's selection, and OK painted it there.

The Fill and Stroke targets now carry the opening document's id and
revert count, and the existing artboard check applies to them: preview
and OK wait for the opening document, OK after a switch or a revert is
refused with the same status message, and Cancel leaves the other
document's interaction alone. A picker opened with no document open
does not paint a document opened later.
2026-11-27 12:04:21 -08:00
dotCooCoo 914e06029e Flatten Transparency: keep preview and OK on the opening document
The dialog keeps its values when another document becomes active, but
its preview and OK then acted on that document: the next frame
previewed the flattening there, and OK flattened its selection.

The dialog now records the document it opened on and that document's
revert count. In another document the preview waits and resumes on
return; OK there, or after the document was reverted, is refused with
the reason and the dialog stays open. Cancel rolls back only the
dialog's own preview, so an edit in progress in another document is
left as it is.

This follows the Transform dialogs (#9584) and the Effect Gallery.
2026-11-27 11:43:52 -08:00
dotCooCoo cd1c0cda50 Smart Punctuation: refuse a draft from before File > Revert
File > Revert keeps the document's id and counts the revert, so OK in a
Smart Punctuation dialog opened before the revert still replaced
punctuation in the restored text. The dialog now records the revert
count with the document and refuses OK with "The document was reverted.
Reopen this dialog to continue." when it has changed, as Artboard
Options does.
2026-11-27 11:12:56 -08:00
jmvergesandClaude Opus 5.5 68fdaf8e79 .ai save: type in a spot ink keeps its swatch link
Type in a spot ink or a global process color was saved to the text
document as its process values alone (a /SimplePaint with key 0), so
the saved file opened with the type in a plain process color: off its
ink's plate on separations, and white type in a white ink on none.
Saving warned about it ("swatch links of its colors").

A run's fill or stroke now names (key 5 of a /CAITextPaint) an art
style of one paint, its fill alone on (`0 1 Xd`), whose paint is the
color as a path's fill writes it (`x`, `Xx`, `Xk`, or `Xs` for
Registration). That is the form the .ai reader takes the ink and the
tint from since the previous change; key 0 keeps the process values.
Each style is read back with the reader's own parser before it is
used, and a link is kept only when it gives the same swatch and tint.
Those runs no longer count among the attributes of type left out;
a link to a process swatch that isn't global still does, and the
warning's text now says so.

Test in crates/eps/src/ai_editing/tests.rs. The parity doc has the row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:02:54 +00:00
ruchirguitarandClaude Opus 5.5 979ae2dc1b Language packs: measure back documents in their own composite fonts
When the packs change, poll_language_packs measures the type of every
open document again. A document in the back now has its own composite
fonts lent while it is measured, as measure_back_document does, so type
set in a composite font of the same name as one of the front document's
is not measured in the front document's definition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 00:19:55 +05:30
ruchirguitarandClaude Opus 5.5 22f5ca3cbf Language packs: review fixes, and plug-ins can't call proof commands
- proof.installPack, proof.removePack and proof.packs {refresh} are refused
  under automation roots: the shared font store is outside them.
- Plug-ins may not call proof.* (DENIED_PREFIXES), which
  plugin_call's every_command_is_reviewed requires of new commands.
- A synchronous install or refresh returns its own result, not one read
  back from the shared errors.
- proof.packs reads the jobs before the installed packs, and
  poll_language_packs reads busy() before the generation, so an install
  that ends between the reads is never missed.
- A pack change measures type with a language of its own again
  (refresh_document_text_bounds), so selection boxes and hits follow.
- The tests' Reset cancels and waits for background jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:55:40 +05:30
jmvergesandClaude Fable 5.2 e8c8071e76 .ai import: a style holds a swatch color for type only as its one paint
The color a one-paint style holds for type was kept whenever its last
paint was a fill color with a swatch. A stroke color set before the
fill's still linked the type, and the style's `Xd` wasn't looked at, so
a style with its fill off gave its color too.

The style now holds the color only when its `Xd` turns on the fill
alone (`0 1 Xd`) and nothing sets a stroke's color or pattern, before
or after the fill's. No file I have writes a style any other way, so
this changes no real file; the pattern a style holds for type is read
as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:36:41 +00:00
BFlat 98b56f3d97 Merge pull request #7068 from ruchirguitar/feat/docinfo-path-area
feat(docinfo): add path area to Document Info (#6965)
2026-11-28 00:35:01 +07:00
dotCooCoo 47945ac37a Keep Paragraph Style Options in its opening document
Paragraph Style Options previewed and committed paraStyle.edit in
whichever document was active, so switching documents moved the
preview and OK into the other document, and Cancel could roll back
another document's gesture.

The dialog now records the document it opened on and runs the frame
work of Character Style Options (#9510), moved into a shared
pump_in_opening_document helper: Preview and OK act only in the
opening document, OK is refused while another document is active,
after the opening document closes or while another edit is active in
it, and Cancel rolls back only the dialog's own preview.
2026-11-27 09:08:57 -08:00
dotCooCoo 4c109aad1f Dialogs: Hyphenation and New Swatch refuse a draft from before File > Revert
File > Revert keeps the document's uid and increments its revert count.
Hyphenation and New Swatch checked only the uid before applying their
held draft, so OK after a Revert applied the draft to the restored
document: Hyphenation set the opening paragraphs' options, and New
Swatch made the opening paint's swatch.

Both dialogs now record the uid and the revert count when they open and
refuse OK with "The document was reverted. Reopen this dialog to
continue." when the count changed, as Justification, Warichu Settings
and Tate-chu-yoko do. New Swatch's suggested name also stops following
the color in a reverted document.
2026-11-27 09:08:44 -08:00
dotCooCoo 65268c8761 PDF export: the CMYK document warning counts only RGB images written to the file
The warning that #8825 (dmytrochornyi) split into converted and kept RGB
images counted each image before it was recoded. An image that is then
left out of the file (its pixels can't be read, or it can only be written
in its own colors) was still counted, and an image that is written as it
is after its pixels can't be decoded for a CMYK destination was counted
as converted to CMYK.

Each RGB image of a CMYK document is now counted once its outcome is
known: converted when the recoded image is written in CMYK, kept when it
is written in RGB, and not at all when it is left out.
2026-11-27 09:05:28 -08:00
HassanKhan 6d3738889b Merge remote-tracking branch 'upstream/main' into fix-8531-snap-budget-edges
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-27 21:38:58 +05:00
HassanKhan 76181f49b3 Merge remote-tracking branch 'upstream/main' into fix-9227-offset-pasted-clip 2026-11-27 21:37:57 +05:00
ruchirguitarandClaude Opus 5.5 fef393ddc0 Language packs: fmt, a Status struct for clippy, std Result in the tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:56:59 +05:30
dotCooCoo c71a86d8ad Keep unchanged Brush Options out of document history 2026-11-27 08:25:38 -08:00
dotCooCoo bcb9b7b4cd Restore future shape settings when Control bar edits cancel 2026-11-27 08:22:59 -08:00
dotCooCoo b02c73a8ba Restore canceled Corner and Shared Edge tool settings 2026-11-27 08:22:08 -08:00
dotCooCoo 4d655b84a9 Synchronize Layer Options MCP catalog description 2026-11-27 07:58:15 -08:00
ruchirguitarandClaude Opus 5.5 44afcbfb2a Spell-check other languages from the Craft apps' Language packs
Part of #4936. Spelling and hyphenation now read the Language packs
installed in the font store the Craft apps share, and proof.packs,
proof.installPack and proof.removePack list, install and remove them.
Installs need downloading on, which only the person turns on; in the
desktop app they run in the background and the documents are laid out
again when one ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:19:24 +05:30
dotCooCoo cc0b8ad623 Preserve untouched Track Cube rotation angles 2026-11-27 07:40:43 -08:00
dotCooCoo 1c7827e5cf Keep unchanged Layer and Object Options out of Undo 2026-11-27 07:18:24 -08:00
BFlat 3756a57d27 Merge pull request #8972 from ruchirguitar/feat/g13-view-snapping
G13: add View › Snapping submenu
2026-11-27 22:08:01 +07:00
ruchirguitarandClaude Opus 5.5 4c36d9a9cc Merge main into the Document Info path area branch
docs/gaps.md conflict: both evidence paragraphs kept, this branch's first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:53:29 +05:30
dotCooCoo 02ce876c76 Merge main into fix/properties-symbol-part-effect-removal 2026-11-27 06:22:38 -08:00
dotCooCoo 0a9df76e9b Merge main into fix/duotone-cancel-color-controls-w4 2026-11-27 06:18:39 -08:00
Dylan M. TaylorandFredApps 37fc94d291 ci: notify artcraft-services on release state changes (#9650)
* ci: notify artcraft-services on release state changes

* notify-services: pass only the dispatch token to the shared workflow

secrets: inherit handed every repository and organization secret
(including signing credentials) to an unpinned @main workflow. The
reusable workflow only needs ARTCRAFT_SERVICES_DISPATCH_TOKEN, so
forward just that.

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-27 09:18:39 -05:00
dotCooCoo 322c2ae182 Merge main into fix/blend-panel-commit-controls-w4 2026-11-27 06:14:37 -08:00
dotCooCoo e81c269291 Merge main into fix/adjustment-restore-canceled-controls-w4 2026-11-27 06:10:32 -08:00
dotCooCoo 05adb5e0d4 Merge main into fix/dimension-accept-controls-w4 2026-11-27 06:06:33 -08:00
ruchirguitarandClaude Opus 5.5 ca4eedec96 Merge upstream/main into feat/g13-view-snapping
Resolve the docs history-table conflicts after #9002: keep both sides'
rows, newest first (the G13 2026-11-21 row now sits below main's
2026-11-23 row), and take main's Last reviewed banner in gaps.md,
roadmap.md, target-app-parity.md and ui-parity.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:34:28 +05:30
dotCooCoo 219867f45f Merge main into fix/transparency-symbol-part-mask-controls 2026-11-27 06:02:41 -08:00
BFlat c48395713f Merge pull request #9002 from ruchirguitar/cursor/properties-quick-actions-groups
Quick Actions follow the selection: Ungroup any group, Isolate one, Unite paths
2026-11-27 20:59:20 +07:00
dotCooCoo 63c6dbfd66 Merge main into fix/cjk-settings-opening-text-selection 2026-11-27 05:58:35 -08:00
dotCooCoo 00ef0ec5b8 Merge main into fix/relink-cancel-scope 2026-11-27 05:54:43 -08:00
dotCooCoo 807cd1c879 Merge main into fix/properties-corner-commit 2026-11-27 05:50:13 -08:00
dotCooCoo afc4d43d38 Merge main into fix/status-bar-committed-navigation 2026-11-27 05:46:14 -08:00
dotCooCoo fe63dec63d Merge main into fix/preflight-committed-output-resolution 2026-11-27 05:42:13 -08:00
dotCooCoo ca6e277891 Merge main into fix/nearest-swatch-library-popup-cancel 2026-11-27 05:38:17 -08:00
dotCooCoo 23c3c9bc14 Merge main into fix/profile-drop-source-after-revert 2026-11-27 05:33:56 -08:00
dotCooCoo 4810395de9 Merge main into fix/transparency-symbol-part-display 2026-11-27 05:30:04 -08:00
dotCooCoo 3fcb3908bf Merge main into fix/kinsoku-accept-choice 2026-11-27 05:26:18 -08:00
dotCooCoo d55917499a Merge main into fix/artboard-committed-name-and-fill 2026-11-27 05:22:27 -08:00