Commit Graph
5267 Commits
Author SHA1 Message Date
.CooCoo 9ce2299580 Merge pull request #9811 from dotCooCoo/fix/ai-envelope-stroked-line
.ai import: envelopes of a stroked straight line map from their stroked box
2026-11-27 23:35:45 -08:00
.CooCoo 8f9fda6a7d Merge pull request #9432 from dotCooCoo/fix/script-handles-after-revert
Scripts: invalidate page-item handles after file.revert
2026-11-27 23:34:31 -08:00
.CooCoo a859b6947d Merge pull request #9027 from dotCooCoo/feat/scripts-api-d7a-variables
Scripts: documents give scripts their variables, data sets and variable libraries
2026-11-27 23:30:13 -08:00
.CooCoo 5b958a3d4f Merge pull request #9844 from dotCooCoo/feat/switch-document-preset
New Document profiles: Use Profile Defaults switches the default fill, stroke and font
2026-11-27 22:30:33 -08:00
.CooCoo 1bb7ec5542 Merge pull request #9846 from dotCooCoo/fix/composite-font-sample-zoom-cancel-b
Restore canceled Composite Fonts sample zoom
2026-11-27 22:18:33 -08:00
.CooCoo 9dc7456621 Merge pull request #9850 from dotCooCoo/fix/outline-placed-envelope-blend
Outline view: test the crossed box in envelopes and blends of placed documents
2026-11-27 22:18:20 -08:00
.CooCoo c45a9a2781 Merge pull request #9870 from dotCooCoo/feat/plugins-failed-load-retry
Plug-ins: a plug-in that fails to load is listed and can be retried
2026-11-27 22:17:31 -08:00
.CooCoo 68f4d94d8b Merge pull request #9806 from dotCooCoo/fix/outline-placed-geometry-effects
Outline view: effects reshape a placed document's crossed box
2026-11-27 22:16:43 -08:00
.CooCoo adcf2bf75a Merge pull request #9773 from dotCooCoo/fix/path-tool-option-cancel-b-verify
Restore canceled Corner and Shared Edge tool settings
2026-11-27 22:16:07 -08:00
.CooCoo 6545bae486 Merge pull request #9772 from dotCooCoo/fix/track-cube-untouched-axes-b-verify
Preserve untouched Track Cube rotation angles
2026-11-27 22:15:55 -08:00
.CooCoo 023a72f8c5 Merge pull request #9771 from dotCooCoo/fix/layer-options-unchanged-b-verify
Keep unchanged Layer and Object Options out of Undo
2026-11-27 22:15:44 -08:00
dotCooCoo 1371fdab0d Merge main into fix/script-handles-after-revert 2026-11-27 22:12:29 -08:00
.CooCoo a8beb0310a Merge pull request #9731 from dotCooCoo/fix/browser-place-distinct-sources-w4
Keep distinct browser Place files that share a name
2026-11-27 22:11:26 -08:00
dotCooCoo ee976e1b78 Docs: envelope margins name the 1e-6 pt side threshold
A side of an envelope's content shorter than 1e-6 pt, not only one of
zero length, has its margins measured as shares of the other side
(envelope_margin_lengths). docs/mcp.md, the object.envelope.info params
text and the bounds_margin doc comment now state that threshold.
2026-11-27 22:03:04 -08:00
dotCooCoo c97b5eac1e Merge main into feat/scripts-api-d7a-variables 2026-11-27 21:57:44 -08:00
.CooCoo a95a52e06a Merge pull request #9866 from dotCooCoo/fix/script-preset-field-size
Scripts: DocumentPreset settings refuse a value of the wrong kind or size
2026-11-27 21:54:22 -08:00
.CooCoo 3e6b0dd094 Merge pull request #9849 from dotCooCoo/feat/cmx-export-vc
File formats: export .cmx files
2026-11-27 21:45:28 -08:00
.CooCoo 5fe987ee2d Merge pull request #9860 from dotCooCoo/feat/ctrl-click-select-behind
Selection: Cmd/Ctrl-clicks step through grouped objects under the pointer
2026-11-27 21:44:40 -08:00
.CooCoo d9abaae27b Merge pull request #9805 from dotCooCoo/fix/issue-6310
Fix #6310: macOS Copy puts the PDF and SVG on the pasteboard
2026-11-27 21:44:21 -08:00
.CooCoo 25cbbeca4a Merge pull request #9802 from dotCooCoo/fix/scripts-documents-active-first
Scripts: app.documents lists the active document first
2026-11-27 21:43:33 -08:00
.CooCoo 00e2e29391 Merge pull request #9800 from dotCooCoo/fix/series-opacity-params-text
Graphs: paint opacity params text matches what a series stores
2026-11-27 21:42:56 -08:00
.CooCoo 02ed17b4a3 Merge pull request #9804 from dotCooCoo/fix/pathtools-shape-set-mask
Parametric Shape: a new center, size or rotation takes a linked mask and placed gradients along
2026-11-27 21:42:44 -08:00
.CooCoo ec0d967b1b Merge pull request #9830 from dotCooCoo/fix/fill-area-unresolved-clipped-subpath
Fill Area: a clipped path its mask cannot cut stops the areas it reaches
2026-11-27 21:42:32 -08:00
.CooCoo 30d0809286 Merge pull request #9780 from dotCooCoo/fix/para-style-options-opening-document
Keep Paragraph Style Options in its opening document
2026-11-27 21:42:20 -08:00
.CooCoo fcff8d81c6 Merge pull request #9786 from dotCooCoo/fix/retype-doc-font-choice
Retype: docs say which font a shape that several fonts match takes
2026-11-27 21:38:49 -08:00
dotCooCoo f8550c578b New Document profiles: keep overrides and kept graph designs when loading defaults
- Redefining a text style keeps text with its own value of an attribute the
  old definition did not set. Only text that still had the value it had
  under the old definition (Normal's, or the default when Normal itself is
  redefined) takes the new one. Leadings that Block gave the text still
  follow the style.
- Use Profile Defaults and Load Character Styles draw the graphs in the
  symbols they add with the document's own graph design of that name, as
  Paste does.
- file.newProfiles commands say their name is a built-in category of
  file.newPresets, and Use Profile Defaults records no undo step when the
  document does not change.
2026-11-27 21:09:13 -08:00
dotCooCoo 41706a3867 Plug-ins: a plug-in that fails to load is listed and can be retried
A stored plug-in that didn't install, for example because its load
panicked or its module is broken, was only written to the log. The
person could not see it or load it again without restarting.

- plugin.list gains failed: [{file, error, from}], the plug-in files
  that didn't load in this process: those of the Plug-ins folder, and
  those the folder report of the Additional Plug-ins Folder (or the
  folder plugin.reload loaded last) lists as failed. Disabled plug-ins,
  files turned off since they failed, and modules skipped because
  another install or removal of their id came first are left out. A
  file that both loads list is listed once, as a stored file. A
  plugin.reload replaces only the folder's rows. Installing or removing
  a plug-in whose module is in a stored file that failed, or a later
  load that installs it, takes the file off the list.
- plugin.retry {file?} loads one of those files again, or all of them,
  with the same checks as the load it failed in, and reports for each
  whether this retry installed it. A folder file's row in the folder
  report moves to loaded or keeps its new error. Under automation read
  roots, a file outside them is not read again, its row stays listed,
  and the reply names it and its folder by their names. Safe Mode
  returns an error.
- plugin.setEnabled {file} also takes the name failed gives a file
  outside the read roots.
- Object › Plug-ins › Plug-ins That Didn't Load… lists the files with
  why; Retry All loads them again under the read roots the list opened
  under, and the status bar says how many loaded. The item is disabled
  while nothing failed.
- A command.batch that runs a filter and then retries a module with
  its id turns Apply Last Filter off, as a reinstall does.

Docs: docs/plugins.md (Plug-ins that didn't load), docs/mcp.md.
2026-11-27 21:06:29 -08:00
BFlat 54a3e18cf9 Merge pull request #9710 from dotCooCoo/fix/xmp-property-read-fuel
Charge fuel before reading XMP property values
2026-11-28 11:19:37 +07:00
dotCooCoo 8ff8dbefc6 Scripts: DocumentPreset settings refuse a value of the wrong kind or size
Assigning a DocumentPreset setting stored any value until the run ended,
and the value was checked only when addDocument read it. A script could
keep gigabytes of strings in presets that no addDocument would accept.

The setter now checks the value before storing it: a value of the
setting's enumeration, a finite number, a title of at most 4096 bytes,
true or false for documentBleedLink, or four finite numbers for
documentBleedOffsetRect. undefined unsets any setting, and the three
settings addDocument does not apply yet also take null. A value of
another kind throws a TypeError, a longer title throws a RangeError, and
the setting keeps its old value. addDocument still checks the ranges.
2026-11-27 20:16:03 -08:00
dotCooCoo 3935a0775d Keep Place import state tied to its source entry 2026-11-27 20:03:44 -08:00
dotCooCoo 81d4dcc6ea File formats: export .cmx files
document.export and Export As write .cmx exchange files with 32-bit
coordinates through craft-cdr's write_cmx, in the layouts the .cmx
reader reads. The chosen artboard is the file's page, or with Use
Artboards each chosen artboard is a page of one file, and each layer with
art on a page is a layer of that page.

- vectorcraft-metafile gets painted_layers: the WMF writer's walk of the
  visible art, layer by layer, with each fill's and stroke's solid paint,
  its miter limit and the swatches of the document and of the documents
  it places.
- The export keeps CMYK, RGB, gray, spot colors at their tints and
  Registration; type is written as outlines, and gradients and patterns
  as one color. The warnings name images, clipping masks, transparency,
  art past a page's edge, dash offsets, dashes aligned to corners, miter
  limits, and each loss the writer reports: nonzero fills written
  even-odd, long paths, rounded dashes, shortened names, low spot tints,
  and spot colors without a name or a known color.
2026-11-27 19:12:32 -08:00
dotCooCoo 1d66710671 Selection: Cmd/Ctrl-clicks step through grouped objects under the pointer
With the Selection tool, the first Cmd-click (Ctrl on Windows and Linux)
now always goes to Direct Selection or Group Selection, also over a
selected object: it picks the object under the pointer, a member of a
group included, and arms Select Behind. While Cmd stays held, each
further Cmd-click over the selection selects the next object under the
pointer, counting the members of groups one by one, and comes back to
the topmost after the last. Letting go of Cmd (a pointer, hover or key
event without it), choosing another tool or switching documents ends it.

Before, the first Cmd-click over a selected object selected the object
behind it at once, and Select Behind stepped through whole groups, so a
member lying under another member of the same group could not be
reached that way.

- doc::hit::leaves_at lists the objects a Direct Selection click picks
  under a point, topmost first, in one traversal of the document; a
  clipping mask or a group drawn with its own geometry effects falls back
  to repeated hit tests. The list stops at 256 objects.
- The session keeps the arming (Session::behind_armed) and passes it to
  the tools as ToolContext::behind_armed.
- Docs: docs/control-protocol.md (ui.pointer), docs/mcp.md,
  docs/target-app-parity.md and docs/ui-parity.md.
2026-11-27 18:47:39 -08:00
dotCooCoo ad9210bcca Restore canceled Composite Fonts sample zoom 2026-11-27 18:29:10 -08:00
dotCooCoo 3dac89fe53 Outline view: test the crossed box in envelopes and blends of placed documents
In Outline mode without Show Images in Outline Mode, an envelope holding
a placed document distorts the document's crossed box, since the
envelope reads the art that PlacedDocument::art gives while placed
documents are crossed. Each step of a blend of placed documents is a
placed document itself, so it is drawn crossed.

- outline_mode_warps_an_enveloped_placed_documents_crossed_box: an Arc
  warp of a placed document draws the same pixels as the same warp of
  its crossed box as a plain path, and the file's art with Show Images
  in Outline Mode on.
- outline_mode_draws_each_step_of_a_blend_of_placed_documents_crossed:
  the step between two placed ends is crossed, and drawn uncrossed with
  the option on.

Docs: docs/ui-parity.md row, docs/mcp.md outlineImages.
2026-11-27 18:12:47 -08:00
dotCooCoo 10a1be94f1 New Document profiles: Use Profile Defaults switches the default fill, stroke and font
file.newProfiles.applyDefaults {name} gives the active document the
Default Graphic Style and [Normal Character Style] of another category's
New Document profile, as one undo step and none when nothing changes. The
swatches, patterns, symbols and brushes the profile's style paints with
come along, its colors are converted to the document's color mode, and a
composite font the profile's default font names replaces the document's
of that name. Objects still linked to the Default Graphic Style and type
in [Normal Character Style] take the new definitions and keep their
overrides, as the Redefine commands do. New art and new type then start
with the profile's look. This is VectorCraft's own command.

- Document Color Mode now converts the fill and stroke of character and
  paragraph styles as well, so a document or profile switched between
  RGB and CMYK no longer keeps style colors in the old mode.
- Art pasted again with an SVG filter that was renamed on the first paste
  takes the same name, instead of a new name on each paste.

Refs #8350
2026-11-27 16:45:08 -08:00
dotCooCoo f119cd9e61 Fill Area: a clipped path its mask cannot cut stops the areas it reaches
When a clipped subpath had more segments or crossings than the crossing
search takes, Fill Area dropped it before the search, so a square that
its visible part crossed was still filled whole. Such a subpath now
stays out of the maps but is kept aside with the masks around it, and
an area it crosses or comes within the gap of is not filled when every
one of those masks reaches the area. An area it stays clear of, or
crosses only where a mask hides it, is filled as before. The hover
counts these subpaths and their masks when it decides whether to
search on another thread. docs/mcp.md describes the rule.

Follows #9336.
2026-11-27 16:43:16 -08:00
dotCooCoo 823619c46e .ai import: envelopes of a stroked straight line map from their stroked box
An envelope whose file saves the size of its contents with their
strokes maps from that box, with margins stored as shares of the
contents' height and width. A straight line along an axis has no
height (or no width), so it got no margins and mapped from its
zero-height geometric box instead.

Margins along a side with no length are now shares of the other
side's length (envelope_margin_lengths). The reader, the envelope's
map, leaving Edit Contents and the .ai writer all measure through it,
so a stroked line opens mapping from its stroked box and saves that
box's size again.

Docs: object.envelope.info params text, docs/mcp.md,
docs/target-app-parity.md.
2026-11-27 13:45:00 -08:00
dotCooCoo f015ccbf51 Retype: docs say which font a shape the winning font does not match takes
The font that the most selected shapes match is chosen per shape, among
the fonts that shape matches (crates/engine/src/cmd/retype.rs, `ranked`
over the part's own matches). A shape with no match in that font is set
in the first of its own fonts in the same order, so one selection can
become type in several fonts. The paragraph now says so.
2026-11-27 13:42:35 -08:00
dotCooCoo ecb097d084 Fix #6310: macOS Copy puts the PDF and SVG on the pasteboard
On macOS, Copy and Cut put one format on the pasteboard: the text (a
type-only copy's text, or the SVG markup with Include SVG Code), else
the picture as TIFF. The PDF that the Clipboard Handling PDF setting
makes and the SVG that Include SVG Code makes were dropped, so apps
that paste vector art got only a TIFF or plain text.

After arboard writes the text or the picture, the other formats are
now added to the same pasteboard item: the SVG as public.svg-image,
the PDF under the system's PDF type and the PNG as public.png, in the
order Copy offers them. A type that can't be added is logged, and
what arboard wrote still carries the copy. This follows craft-libs'
offer/macos.rs. The ownership check still compares the text or
picture arboard wrote.

The Clipboard Handling sentence for PDF now names Windows and macOS.
2026-11-27 13:33:34 -08:00
dotCooCoo 6245d6b118 Outline view: effects reshape a placed document's crossed box
In Outline mode without Show Images in Outline Mode, a placed document
with an effect that changes geometry (Transform, Roughen, plug-in
effects), its own or its group's, drew its file's art reshaped and
without the X. The effects now reshape the crossed box instead, so a
Transform effect moves the crossed box.

- While a frame draws placed documents crossed, a placed document's art
  is its box with both diagonals (PlacedDocument::crossed_art), so every
  effect and evaluation that reads that art uses the crossed box.
- Layers are drawn and measured in the mode their Layer Options give
  them: a template layer in Outline view still shows the file's art,
  and a layer or sublayer whose Preview is off shows the crossed box.
  A layer with effects of its own now follows its Layer Options too;
  before, it drew in the view's mode.
- Kept effect art, cull bounds and the areas redrawn after an edit are
  measured in that mode and kept apart per mode.

Docs: docs/ui-parity.md row done, docs/mcp.md outlineImages.
2026-11-27 13:30:42 -08:00
dotCooCoo 3c807e30d0 Parametric Shape: a new center, size or rotation takes a linked mask and placed gradients along
addon.pathtools.shape.set rewrote only the path and the shape's numbers, so
a linked opacity mask, placed gradients and pattern tiles stayed at their
old place when the shape moved, turned or changed size (a center-handle
drag, an explicit center, W or H with a reference point). The edit now
applies the transform between the old and new numbers to the object, as
object.scale and object.rotate do, and then sets the new outline. Scale
Strokes & Effects and Transform Patterns come from the new `strokes` and
`patterns` params or the preferences.
2026-11-27 13:22:59 -08:00
dotCooCoo 55bf6604be Scripts: app.documents lists the active document first
A script's documents[0] was the first tab, not the active document, so
scripts that read app.documents[0] as the document in front acted on
another one. The scripting guide says documents[0] is always the active
document:
https://ai-scripting.docsforadobe.dev/scriptingJavascript/objectReferences/

Each open document now records when it last became the current one.
documents lists the current document first and then the others from the
one current most recently to the one current longest ago (VectorCraft's
own rule). documents["name"] and getByName search in the same order. A
change a script makes to a document in the back switches to it and back,
and that switch no longer moves the document in the list.

Three tests that read documents[0] as the first tab with two documents
open now read documents[1].
2026-11-27 13:22:06 -08:00
dotCooCoo bf4bb07ec7 Graphs: paint opacity params text matches what a series stores
The params text of paint.setFill and paint.setStroke said a graph series
stores a path's opacity when `opacity` changed it. The commands store it
whenever `opacity` writes the topmost visible row of the kind, also when
the row already had that opacity (capture_series_opacity_writes). The
text now says so, and docs/mcp.md states the rule with the other series
paint rules.
2026-11-27 13:10:53 -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 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 b02c73a8ba Restore canceled Corner and Shared Edge tool settings 2026-11-27 08:22:08 -08:00
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
ruchirguitarandClaude Opus 5.5 1e5bac5fa3 fix(docinfo): work out the path area only while Objects is shown
The area pass normalizes every closed path's geometry, and the Document
Info panel fetches `document.info` again after each edit. A request now
skips the pass (`pathArea` null) when its category is not `objects` or
it passes `pathArea: false`, and the panel asks for the area only while
it shows Objects or All Categories (the cache key records which).

Tests: the engine gives no area for another category or with
`pathArea: false`, and the panel's result has no area while another
category is shown, edits included. Docs: gaps, parity and mcp rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:09:45 +05:30
dotCooCoo 28292e6a02 Verify distinct browser Place sources on current main 2026-11-26 21:47:06 -08:00