Commit Graph
808 Commits
Author SHA1 Message Date
yoriswind fbf2332b30 Integrate current upstream while preserving the native appearance marker 2026-11-26 11:13:28 -08:00
yoriswind 476b0763cc Merge main and port Layers appearance marker to native controls 2026-11-26 11:00:49 -08:00
yoriswind e8f96d6021 Integrate upstream and disambiguate the inherited SHA-2 lock entry 2026-11-26 10:35:13 -08:00
yoriswind 1e4f18fc78 Retain owned sampler release and navigation coverage on native Canvas 2026-11-26 10:02:18 -08:00
yoriswind df45c7a63e Integrate upstream documentation while preserving color conversion coverage 2026-11-26 08:13:29 -08:00
yoriswind cc69675d6e Merge current main while retaining indexed global-swatch conversion 2026-11-26 07:17:00 -08:00
dotCooCoo aad3356c9e Merge main into feat/scripts-api-d4c-threads-stories 2026-11-25 23:45:21 -08:00
ruchirguitar d5c8730ef6 G13: remove stale no-submenu clause from M2 roadmap 2026-11-26 13:09:14 +05:30
HassanKhan 8034336671 Smart Guides: gather snap targets topmost first instead of a bounds budget (#8531)
Walk the layers in reverse paint order in collect_inner, so when the
anchor and segment budgets run out the objects in front keep their
anchors, edges and centre. Cost and memory stay as on main; the
separate 100,000-object bounds budget, start_budgets, the pub(super)
Gather and collect_bounds_capped go, with the tests that checked them.
2026-11-26 11:54:05 +05:00
HassanKhan 228c09cc1f Merge remote-tracking branch 'upstream/main' into fix-8531-snap-budget-edges
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-26 11:43:46 +05:00
ruchirguitar 10462bff24 G13: merge main and resolve roadmap conflict 2026-11-26 11:41:17 +05:30
dotCooCoo e3af888a44 Merge main into feat/scripts-api-d6-save-export-open 2026-11-25 19:39:22 -08:00
FredApps ae70a8f174 Resolve main documentation conflict in History row menu PR #8845 2026-11-26 03:27:16 +01:00
jmvergesandClaude Opus 5.5 6a7ee26522 Merge main (a54d28887c) into the font width import branch
Main changed the M3 row of docs/roadmap.md, next to the M4 row this
branch adds its entry to: take main's M3 row and keep this branch's
entry at the front of main's M4 row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 02:12:35 +00:00
BFlat 050f7cf407 Merge pull request #9019 from dotCooCoo/feat/scripts-api-d1a-app-documents
Scripts: app gives scripts the open documents, their selection and page items
2026-11-26 08:50:54 +07:00
ruchirguitar c766f2f450 History panel: add snapshot-safe row context menus and keyboard access 2026-11-26 04:54:14 +05:30
ruchirguitar 56701fa020 G13: add View Snapping submenu 2026-11-25 23:28:16 +05:30
Codex 4e0a1028ad Clarify Quick Actions eligibility in parity docs 2026-11-25 23:18:15 +05:30
dotCooCoo c71fc0a25b Merge main into feat/recolor-preset-library 2026-11-25 09:11:53 -08:00
dotCooCoo 771383bed8 Merge feat/scripts-api-d1a-app-documents into feat/scripts-api-d4b-text-styles 2026-11-25 04:53:10 -08:00
HassanKhan dff90d6f7d Merge remote-tracking branch 'upstream/main' into fix-8531-snap-budget-edges
# Conflicts:
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-25 16:00:38 +05:00
dotCooCoo 3977aa6268 Merge feat/scripts-api-d1a-app-documents into feat/scripts-api-d6-save-export-open
Brings in main through #9019's branch. The PDF presets now come from the shared pdf crate, so a bracketed preset name is looked up with the app's name and "Default" names its default preset.
2026-11-24 22:16:48 -08:00
dotCooCoo 1f1c8ccf8c Merge main into feat/scripts-api-d1a-app-documents 2026-11-24 20:48:43 -08:00
Codex 30d701a5b3 Adapt Properties Quick Actions to the refactored panel 2026-11-24 21:53:38 +05:30
jmvergesandClaude Opus 5.5 6467e3d1d5 Merge main (19ebdcab54) into the font width import branch
Main moved the pdf crate to the craft framework (craft::pdf) and added the
marks and output exports next to this branch's page_widths ones: keep all
three, keep cid::replacement crate-visible for page_widths, and read
craft::pdf in page_widths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 13:56:42 +00:00
dotCooCoo e8a0aa6ba4 Scripts: documents give their file, folder and saved state, close, and save several artboards
- Document.fullName is a File for the document's file, and Document.path a
  Folder for its folder. A document without a file has a fullName of a
  File for its name in Folder.current and a path of "". Both throw
  `Script file access denied` with the document's name when the
  automation read roots do not allow the file.
- Document.saved reads whether the document has unsaved changes. Setting
  it runs the new command document.setSaved, which records the document
  as saved or as changed without saving it and adds no undo step.
- Document.close(saveOptions) closes a document without unsaved changes
  with any SaveOptions value. With unsaved changes,
  SaveOptions.DONOTSAVECHANGES closes it without them, and
  SaveOptions.SAVECHANGES saves them first with file.saveAs, in the
  format the file's extension names and after the write-access check
  saveAs makes, and throws for a document without a file (a converted
  or recovered one included). SaveOptions.PROMPTTOSAVECHANGES, the
  default, throws, since a script cannot show the prompt.
- The script checker reports SaveOptions.SAVECHANGES under filesWritten
  wherever the script reads it.
- A pDFPreset in square brackets, such as [Smallest File Size], names
  the built-in preset of the name inside them.
- artboardRange takes a whole number from 1 as well as a string; any
  other number throws.
- With saveMultipleArtboards true, a .ai or EPS save also writes each
  artboard of the range to a file of its own. Without it the range is
  not used, but text that is not a range of artboard numbers throws.

Document page: https://ai-scripting.docsforadobe.dev/jsobjref/Document/
2026-11-23 19:01:40 -08:00
yoriswind f7a8565ca4 Merge current main for the gradient stop color-mode menu 2026-11-23 09:34:00 -08:00
5af36bae87 Fix #4568: PDF import keeps embedded fonts for text whose family isn't installed (#4569)
* PDF import: keep embedded fonts for text whose family isn't installed

Glyphs drawn in an embedded font whose family isn't available are gathered
during import and built into one small TrueType font per family and style,
kept with the document (font/ttf blob). Text objects record the fonts and a
hash of their text: layout and rendering draw them in the kept font until the
text is edited (undo restores it) or the family is installed. Lines are
spaced against the file's own widths with per-glyph placement (#3756).

* PDF import: satisfy crate layering constraints without format dev-dep

* FileFont: negate us_win_descent in i32 to prevent overflow on extreme negative descenders

* PDF import: a kept font carries the file font's licence flags, and the docs say what that means

Review of #4569: the fsType of the file's font is copied to the font built from its glyphs (a test pins it against Embedding), so exports honour it; the docs state the limits, that the file's font program is not parsed, and that a saved file carries third-party glyphs.

* PDF import: a glyph curve far outside any glyph is left out; docs say what the limits and the font program mean

CodeRabbit on #4569: coordinates beyond 1e6 font units are refused before the curve is subdivided. The docs say the 64-font limit is what draws one type object and that the file's font program is read only for its licence flags and metrics.

* PDF import: two programs of one font keep the stricter licence flags; the docs cite their sources

CodeRabbit on #4569: embedded programs of one family and style share one built font, which kept the first program's fsType; it now takes the stricter of the two, whichever came first. The docs entry cites the Acrobat Help pages and the OpenType fsType specification.

* fmt

* PDF import: embedded fonts are on by default, with an opt-out preference

Owner decision on #4568. Preferences > File Handling > Use fonts embedded in imported PDFs (pdfImportEmbeddedFonts, on by default) and the embeddedFonts param of document.open and file.place: off, a PDF's type in a font the machine lacks is set in the fallback font with the missing-font warning, as before. One test each for on and off, one for the preference reaching the options.

* fmt after merging main

* docs: restore the status lines damaged by merges (main's line plus this PR's note)

* PDF import: set embedded_fonts through a builder method (keeps read_opened under the complexity limit)

* PDF import: move the missing-font notes out of read_opened (complexity limit after the merge)

* #4569: isolate file-font resources and reclaim live faces (UNVERIFIED)

* Preserve carried-font ownership across placement and recovery

* Fix carried-font regression test dependencies and unwind probe

* Use explicit OS2 heights in owned-font reference regression

* Keep native font regression artwork inside document layers

* fix(engine): bind file fonts when reading document profiles

* test(engine): initialize file-font leases in new image fixtures

* test: complete file-font lease initialization in image fixtures

* docs: keep the #4568 entry in the file-format parity status line

* fix(pdf): keep a line with another glyph for the same character as outlines (review)

A font kept with the document has one glyph per character. A glyph of the file's font that
differs from the one already kept for its character (a stylistic alternate that maps to the same
Unicode scalar) marks its line, which is imported as outlines so each glyph draws as the file
does.

* docs: resolve the leftover status-line conflict

* Placed document blob: give the new ImageBlob literal its file_font

* Test: a PDF's two glyphs for one character survive a native save and reopen as the file draws them

* Test: move the native save and reopen half of the two-glyphs regression to the engine (layers: no format dev-dep in pdf)

* Fix embedded-font preference help and English fallback checks

* Format embedded-font preference help with the workspace edition

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: skylartaylor <[email protected]>
2026-11-22 18:18:18 -06:00
dotCooCoo da5344af2c Recolor with Preset: test that grays of different lightness get different tints
The 1 Color Job test now requires a strictly higher tint on the darker of
two grays for a linked ink, and different colors for a process swatch, so
a flat tint fails it. docs/ui-parity.md gets a Recolor with Preset item
and the M3 row in docs/roadmap.md names the preset flow.
2026-11-22 11:14:02 -08:00
dotCooCoo b82dddc71d Docs: G6 and M13 list Document.saveAs, Document.exportFile and app.open 2026-11-22 01:54:03 -08:00
dotCooCoo a5690d2d35 Scripts: stories of one thread share their text index, and a deleted story's missing members say Stale story
Stories read from different frames of one thread share one index of the
story's text while the document is unchanged, instead of each keeping its
own copy. A frame listed in two threads shares only with a story whose
frames match. Story.lines, insertionPoints, textRanges and textSelection
check the story first, so a story whose frame was deleted throws Stale
story.

The cross-document baseFrame test passes a rectangle of the other document
and checks the error and that the rectangle stays a path. docs/mcp.md no
longer says baseFrame and postFix throw, the text-frame entry in
docs/target-app-parity.md no longer lists stories and threading as missing,
and the M13 row in docs/roadmap.md lists text frames and stories.
2026-11-21 22:08:05 -08:00
dotCooCoo c7671c615b Scripts: style objects see a style a batch removes and adds again
- A style object goes stale when the steps of one `command.batch` remove
  its style and add another under the same name, as it does when separate
  `vc.run` calls do. The session notes each batch step's style lists while
  a script runs, and the style objects check each of them.
- `add(name)` with all 4,096 style slots of the run taken throws before it
  adds the style; with one slot left it adds it.
- `typename` of a removed style's `characterAttributes` or
  `paragraphAttributes` throws `Stale style`, as its other members do.
- The style load commands refuse `data` over 64 MB without copying it.
- docs/mcp.md states the 64 MB limit for `data` and decoded `dataBase64`;
  docs/gaps.md G6 and the docs/roadmap.md M13 row list the script text
  and style members.
2026-11-21 21:02:47 -08:00
Drew Dibble b2cb612d8a Merge upstream main into the #7023 ring fix again 2026-11-21 21:34:16 -05:00
dotCooCoo 6cce980e2b Scripts: keep targets and chosen parts when edits restore the selection
- An edit a script makes puts back a Layers panel target, an object
  chosen inside a dynamic symbol instance and an object chosen in an
  Objects on Path group, each with its own selection command.
- Assigning a document's selection selects a symbol instance or an
  Objects on Path group as a whole when one of its objects was chosen.
- file.newPresets lists a grid by column's rows as set, also when there
  are fewer artboards than rows, and New Document's Columns shows the
  columns those rows give the current number of artboards.
- docs/roadmap.md's M13 row names the script object model that is
  available.
2026-11-21 09:46:14 -08:00
RuchirandCursor 9cc4135ee7 Record Quick Actions on the G12 milestone and Properties checklist.
The revision history already listed the selection rules; the milestone row and the per-context checklist did not.

Co-authored-by: Cursor <[email protected]>
2026-11-21 15:36:43 +05:30
RuchirandCursor edfaed0837 Offer Ungroup, Isolate Group and Unite from the whole selection.
Quick Actions read only the first selected object, so a group later in the selection had no Ungroup, several groups still offered Isolate Group, and several paths had no Unite.

Co-authored-by: Cursor <[email protected]>
2026-11-21 15:08:28 +05:30
jmvergesandClaude Opus 5.5 fa18e9607a Merge main (71ba804d38) into fix/6983-followup-page-widths-pick-font-copy
Conflicts in docs only (status lines and table rows): main's entries and
this branch's are both kept, each once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 17:45:30 +00:00
HassanKhan 933f365034 Merge remote-tracking branch 'origin/main' into fix-8531-snap-budget-edges
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-20 22:34:16 +05:00
jmvergesandClaude Opus 5.5 c8fb03bf37 Merge main (774abbc7d9) into fix/6983-followup-page-widths-pick-font-copy
Conflicts in docs only (status lines and table rows): main's entries and
this branch's are both kept, each once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 17:23:42 +00:00
HassanKhan 971997f18c docs: state the 100,000-object cap in the roadmap's Smart Guides line (#8531) 2026-11-20 22:23:30 +05:00
bflatastic baa6e46658 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-21 00:18:52 +07:00
HassanKhan a85462ff77 Merge remote-tracking branch 'origin/main' into fix-8531-snap-budget-edges
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-20 22:13:35 +05:00
bflatastic cc0f98ed6a Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-20 23:46:03 +07:00
ruchirguitar ae21438d48 G12: add Asset Export tile context menus 2026-11-20 22:15:57 +05:30
ruchirguitar edf4e97959 Text styles panel: add item right-click context menu (Options, Duplicate, Delete, Redefine) (#8745)
* Text styles panel: add item right-click context menu (Options, Duplicate, Delete, Redefine)

* fix(text-styles): require text target for clear overrides and update parity docs
2026-11-20 23:43:35 +07:00
ruchirguitar bffbb1493d Appearance panel: address CodeRabbit review feedback
- Forward secondary clicks on name label links for stroke/fill and effect rows
- Enable Reduce to Basic Appearance when any selected subject needs reduction (including compound path children)
- Add headless regression tests for label context clicks and multi-selection reduction
- Update M14 roadmap entry and UI parity evidence, and clean conflict markers in ui-parity.md
2026-11-20 21:53:59 +05:30
jmverges b8cc1f2788 Merge main (f363f0a3e) into fix/6983-followup-page-widths-pick-font-copy 2026-11-20 15:32:52 +00:00
yoriswind 0a10e3eefb Merge current main and preserve sampler navigation documentation 2026-11-20 03:13:13 -08:00
yoriswind 63278b5bac M3: Copy information-panel readouts on click (#8432) 2026-11-19 23:32:41 -08:00
HassanKhan d43d3c0e3a Smart Guides: objects past the anchor budget keep their edges and centre (#8531)
Targets::collect_inner stopped visiting objects once its 20,000-anchor
budget was spent, so in a document with more anchors the objects
visited last (the topmost, newest ones) gave no edges or centre either,
and a ruler guide, a move, a scale or a drawn point did not snap to
them. The anchor budget now caps only the anchors and the segment
budget only the segments; every visible object gives its bounds, up to
a separate cap of 100,000 objects.
2026-11-20 12:17:09 +05:00