Commit Graph
23685 Commits
Author SHA1 Message Date
dotCooCoo d534dcbf6e Scripts: charge host object handles and preset settings to the run's limits
- An object of a host class counts its handle and its cache entry toward
  the heap when it is made and after each collection.
- Reading an object of a host class as data, the receiver of a member
  call included, charges its class name and handle to the data limits
  before they are copied.
- The settings of a run's DocumentPreset objects are held to 16 MiB
  together; a setting assigned again counts only its new value.
- getIsFileOpen treats `\` as part of a name outside Windows, except in
  a path with a drive letter.
- Assigning an opacity reuses the stored one only when the value equals
  what the getter reports.
- file.new's artboardLayout messages list `rows`.
- The selection de-dup uses a set; the host name inventory lists
  app.undo and app.redo; the getIsFileOpen test quotes its paths as JSON.
- docs/mcp.md: a null presetSettings uses the preset's settings, and the
  preset settings limit and the getIsFileOpen comparison are described.
2026-11-24 18:51:52 -08:00
dotCooCoo 49755faf39 Color Wheel: retyping the hex field's text keeps the opacity it shows
The field shows an opacity as two alpha digits, so 50% shows as 80.
Committing that text unchanged applied 128/255 and recorded an undo
step. Text that matches the field now applies the opacity the field
shows, so a single object keeps it exactly and the other selected
objects take it. Any other text, such as rgb(255 0 0 / 50.4%), still
applies its own alpha.
2026-11-24 18:50:35 -08:00
dotCooCoo 57a85d4a55 Tracing Presets: the selected preset's settings sit beside the list, under its name in strong type
Since the port the manager drew the list, its buttons, the preset's name
and its settings in one column, with the name in body type. The list and
its buttons are now one column and the name and settings a second, as in
production and as Perspective Grid Presets lays out the same sheet. The
name is set in BodyStrong, and "Presets:" and the built-in note are muted
captions.

New test: the settings start right of the list's buttons and level with
the list, and the name's font differs from its list row's.
2026-11-24 18:49:31 -08:00
dotCooCoo aadcdb774a Tests: the progress window's delay counts on the app's clock (now_override in tests), which the background-job tests hold still, and the heavy filter shortcut test keeps its run on a manual job queue, so neither depends on how fast a loaded machine runs 2026-11-24 18:45:30 -08:00
dotCooCoo bd6d7c9117 Dialogs: rows of controls in the 3D, Character Style, Adjust Colors and Color Guide dialogs are framework Rows and Stacks, and presses inside a row apply after it
A framework container may run its body more than once in a pass. The HP-GL pen rows now draw
from the dialog's values on every run and report a typed color, Remove, Add and a swatch press,
which apply once after the rows; the picker opens after them. A picked pen color is no longer
left unread when the table is longer than a plot takes. The classic 3D surface navigator and
Map Art buttons, Bevel Shape, the light's Add and Delete buttons and its color row, Stylistic
Sets, the Adjust Colors channels and the Color Guide Options sliders use Row and Stack the same
way. A Stack's measuring run no longer writes the values the Adjust Colors and Color Guide
Options rows edit.
2026-11-24 18:41:33 -08:00
dotCooCoo ceb49e7896 New Document: Orientation shows a page icon for Portrait and for Landscape, named for screen readers, as production's buttons did 2026-11-24 18:38:30 -08:00
dotCooCoo 567dfccdfb Export for Screens: an artboard's picture keeps its proportions in its square tile or row thumbnail (fit_rect), as production's did 2026-11-24 18:36:15 -08:00
dotCooCoo b1d67df34d Tests: the Picked files group test checks that both paths are inside the group
The test for a script's file dialog with two picked files checked only that a
group named Picked files exists. It now walks that group's accessibility
children and checks that /picked/a.txt and /picked/b.txt are among them, so a
group drawn without the paths fails the test.
2026-11-24 18:33:19 -08:00
dotCooCoo ebf27e1feb Merge main into feat/i18n-bg-messages 2026-11-24 18:23:37 -08:00
dotCooCoo b4cccf2d95 Tests: Direction segments are checked by their radio button role
The Art Brush Options test now reads labels only from the radio button
nodes that Segmented gives its segments, so a tooltip label on another
node no longer passes it.
2026-11-24 18:22:19 -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 c5c54e15f2 Save for Web: a color shift survives Done right after the Color Picker
The Color Picker's OK for a color table cell now shifts the color in the
table at once, so Done or Save before the dialog draws again keeps the
shift. The table marks list a color written twice in one list once.
2026-11-24 18:07:00 -08:00
dotCooCoo 51cad79867 Control bar: test area type's vertical alignment rank with type selected
- New test: with area type selected, the vertical alignment buttons leave
  the bar before Opacity, Recolor Artwork and the Style picker, and the
  Align buttons after them leave first. It runs with the Character and
  Paragraph groups shown and with both turned off, so it covers the
  vertical alignment group's rank and the Align strip's rank when only
  vertical alignment shows.
- The `rank::TYPE` doc comment now says where the rank sits: type groups
  leave after Select Similar, Snapping and the X/Y/W/H fields, and before
  every other member.
2026-11-24 18:06:52 -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 d285d8b9a4 Merge main into feat/color-wheel-hex-alpha-css 2026-11-24 18:05:18 -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 db7810888d Dialogs: four dialogs use framework components, and count fields show no unit
The Paragraph Style Options Tabs buttons, the Script File Access list, Split Into Grid's
fields and the 3D Bevel heading are framework components, as the rest of their dialogs are.

- Paragraph Style Options › Tabs: Add, Delete Tab and Clear All Tabs are framework buttons
  in a row.
- Script File Access: the list of picked files is a scrolled stack named "Picked files",
  up to 120 pt high before it scrolls. New test
  `tests::script_run::a_scripts_file_dialog_lists_several_picked_files_in_a_named_group`.
- Split Into Grid: the fields are a framework grid of two columns, rows on the left and
  columns on the right; before, the egui grid inside the form drew the Columns fields over
  the Rows fields. New test
  `dialogs::tests_accessibility::split_into_grid_lays_out_its_fields_above_add_guides`.
- 3D Bevel: the heading is a section named Bevel with Reset as its control. New test
  `dialogs::revolve::tests::the_bevel_heading_is_a_section_between_cap_and_bevel_shape`.

Zig Zag's Ridges per segment, the bevel's Repeat and Revolve's Segments are counts and show
no unit after the number, as production's did; before, Ridges showed a percent sign and
Repeat and Segments showed px. Roughen's Detail no longer shows a percent sign either.
Production showed "/in" after it, and craft-libs has no per-inch count unit for that yet,
so it shows no unit. New tests
`dialogs::effect::tests::zig_zag_ridges_and_roughen_detail_show_no_percent_sign` and
`dialogs::revolve::tests::the_bevel_repeat_and_the_revolve_segments_show_no_unit`.
2026-11-24 17:42:32 -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 aa8c9b8d36 Scripts: ScriptUI builds windows and controls from resource strings
new Window() and add() threw that resource specifications were not
available yet. They now read a resource specification in place of the
type, as
https://extendscript.docsforadobe.dev/user-interface-tools/resource-specifications/
describes it: a type, then braces holding `name: value` properties,
where `name: Class { ... }` defines a control.

- `crates/js/src/scriptui_resource.rs` reads `[name:] Type { ... }`.
  A value is null, true, false, a quoted string, a number, an inline
  array or an inline object. The commas between properties may be left
  out, as in the page's own example. A malformed specification throws a
  SyntaxError. One longer than 1 MiB or nested more than 64 deep throws
  a RangeError; these limits are VectorCraft's own.
- With a resource specification, new Window() and add() read no other
  argument. `properties` gives the creation properties. Each control in
  the braces is added through add(), with its limits of 512 controls
  nested 16 deep, and set as the container's property of its name. A
  list's `items` gives its item texts, as add()'s third argument does.
  Each other value is assigned to the property of its name. Palettes and
  windows still throw that they are not available yet.
- The script.run params text, docs/mcp.md and the Scripts line in
  docs/target-app-parity.md describe resource specifications.
2026-11-24 17:29:22 -08:00
dotCooCoo 96318e888e Merge main into fix/crop-image-wide-apply-cancel 2026-11-24 17:28:58 -08:00
dotCooCoo 6d0d4bd1a4 Merge main into fix/script-grants-read-failure 2026-11-24 17:26:58 -08:00
dotCooCoo 69d00d5fe1 Merge main into feat/scripts-scriptui-dialogs 2026-11-24 17:20:43 -08:00
dotCooCoo 46478976ce Scripts: a window answer names a control by its text only when the control has no name
A headless window step whose control matched no name fell back to the
first control with that text, even when that control had a name of its
own, so a step could reach a different control than the one it named.
The text now matches only controls without a name.
2026-11-24 17:20:38 -08:00
dotCooCoo 4c3b4b5464 Color panel: the Fill and Stroke wells show a gradient, None and a pattern through PairWell::paint and well_paint, as the Tools panel's proxy does, instead of black, as production's Color panel did 2026-11-24 17:04:24 -08:00
dotCooCoo 854feab983 Revolve gizmo: the rings, plates and readouts draw through the content painter's own painter, and the Transparency panel imports DataColor with the other style types 2026-11-24 17:02:27 -08:00
dotCooCoo 95c0d489ad Tests: the Map Art surface preview of the classic 3D dialog is as tall as the theme's plot size and at least as wide, read from the canvas named Surface in the accessibility tree 2026-11-24 17:02:26 -08:00
dotCooCoo 466c4e98c7 Graphic Styles: the large tip is a card thumbnail (size.thumb.card) wide and its square picture fills it, in place of a fixed 132 pt square 2026-11-24 17:02:26 -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 cd3511ce1f Merge main into feat/plugin-menu-placement 2026-11-24 16:59:39 -08:00
dotCooCoo 99ffa0ebd8 Plug-ins: a command's menu.after is checked before its spaces are trimmed
A menu.after value with a control character at either end, or longer than 64 characters before its
spaces are trimmed, is refused with the same error as other wrongly shaped values.
2026-11-24 16:59:34 -08:00
dotCooCoo 828df8c7b5 Scripts: app.undo and app.redo step through the run's own edits
app.undo() and app.redo() run edit.undo and edit.redo in the active
document, so they reach only the steps the running script made, and the
run still ends as one undo step. With no such step they change nothing,
and with no document open they throw "No active document".
2026-11-24 16:54:12 -08:00
dotCooCoo bf4b1fb01f Print: the printer row shows Setup… for the printer chosen
The Print dialog never set the framework dialog's driver controls, so
the printer row had no Setup… button and print.printerSetup could not
be reached from the dialog.

- The row shows Setup… when the print service can open printer
  settings and the destination is a printer. For PDF File, and when
  the service cannot open printer settings, the row has no Setup….
  Before the port the dialog showed the button disabled in those
  cases, with a tooltip; the framework's printer row can only show or
  hide it, so it is now hidden and has no tooltip.
- The pump sets the controls after the frame has drawn the row, so
  a change of printer shows on the next frame. The pump asks for that
  frame when the controls change, and the row updates without waiting
  for input.
- A Setup… press while no printer settings are available is ignored.
2026-11-24 16:35:13 -08:00
dotCooCoo 2447f9e358 UI: dialog and panel labels, separators and notices use Text, Divider and Notice
Labels drawn with raw `ui.label` and `ui.weak` in the Export As, DXF,
EPS, HP-GL, PNG, Simplify, Map Art, Print and Save Options dialogs and
in the Graphic Styles and Layers panels now use the framework's Text,
so each one is in the accessibility tree. The hints under the export
dialogs and the Layers footer count use the caption role in the muted
shade. The Print Summary rows are selectable text named Pages, Options
and Warnings.

The Stroke panel and the Swatches library menu draw their separators
with Divider. The HP-GL pen error and the kinsoku set problem show as
an inline Notice in the bad tone and are announced as alerts, and the
legacy .ai artboard note shows as an info Notice.

The Art Brush Options Direction segments are arrow icons with the
tooltips Left to Right, Right to Left, Top to Bottom and Bottom to Top,
and a screen reader reads those names instead of the arrow glyphs. The
app's icon set gains left and right arrows drawn like the existing up
and down arrows.
2026-11-24 16:27:19 -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 13224857bf Scripts: screen readers name every ScriptUI control and read a disabled panel as disabled
An edit field, list or slider with no visible prompt and no name from the
script had an empty screen-reader name. It is now called "Text" for an
edit field and "Value" for the other controls. A panel the script set to
enabled = false was reported to screen readers as enabled; it is now
reported as disabled.
2026-11-24 16:01:35 -08:00
dotCooCoo 9fe7bd19c5 Panels: rows of side-by-side controls are Row and Stack, and stay inside the panel
The rows of controls that sat in raw horizontal layouts inside framework
containers are the framework's Row, Stack and Grid.

- Stroke: the Arrowheads row fills the field. The two heads share the
  width Swap leaves, and Swap moves to a new line when all three do not
  fit. Before, the row ran past the panel's right edge. The Profile row
  is a Row.
- Color Themes: the Create tab's hex row is a Row, so its two buttons
  stay inside a panel at its least width.
- Color Wheel: the rows are a Stack, and the top row is a Grid with the
  proxy at its content width and the wheel or the box beside it. When the
  box and its strip do not fit beside the proxy, they go under it. Before,
  the strip ran past the panel and was as tall as the room.
- Align panel, Properties panel's Align row, Control bar's Align strip and
  paragraph row, Paragraph panel's lists row, and the gradient stop
  editor's two rows are a Row. They lay out as before.
2026-11-24 16:00:20 -08:00
dotCooCoo 1975975a71 Merge main into feat/js-es2015-modules 2026-11-24 15:28:29 -08:00
dotCooCoo 4728893389 Merge main into feat/js-es2015-modules 2026-11-24 15:28:22 -08:00
dotCooCoo c3f5eac706 Menus: Open With, Object › Plug-ins and File › Scripts show their notes as disabled rows
With no importer plug-in installed, File › Open With held only the heading
"No importer plug-ins installed". The menu layout drops a heading with no
item after it and then drops the submenu it leaves empty, so Open With
disappeared from the File menu. Object › Plug-ins lost its "No filter
plug-ins installed" heading the same way, since a separator follows it,
and so did File › Scripts' notes ("Some scripts were not listed", "The
Scripts folder cannot be read" and the loading notes).

These rows are now a disabled placeholder item, the form the menu layout
keeps for an empty list. The item runs no command and shows its text in
the UI language. The menu listing, the macOS menu bar and the
translation tests treat it as they treat a Coming Soon row: disabled,
with no command.
2026-11-24 15:27:38 -08:00
dotCooCoo 85399ece43 Tool icons: the Slice Tool shows its new icon
dc-slice.svg was registered, but tool_icon still mapped tool-slice to slice_knife, so the Slice Tool showed the old icon.
2026-11-24 15:24:55 -08:00
dotCooCoo 3ad7a77378 Merge main into feat/retype-installed-fonts 2026-11-24 15:24:41 -08:00
dotCooCoo 80ae7f8923 Merge main into fix/distinct-tool-icons 2026-11-24 15:23:27 -08:00
dotCooCoo 7a85e09b26 Merge main into feat/retype-installed-fonts 2026-11-24 15:21:47 -08:00
dotCooCoo 99fccade63 Control bar: with type selected, Opacity and Recolor Artwork stay while the type groups leave
The Character and Paragraph groups were drawn without a rank, and a member
without a rank never leaves the bar. When type's controls did not fit, every
ranked member ahead of them left instead: Snapping, the width profile, Recolor
Artwork and then Opacity.

- A new `rank::TYPE`, below the other ranks, ranks the Character group, the
  Paragraph group and area type's vertical alignment buttons, so they leave
  before the members ahead of them.
- With type groups shown, the Align buttons after them take the same rank and,
  coming last, leave first.
- `text_style` is looked up only when the Character or Paragraph group is on.

The new test narrows the bar step by step with a text object selected and
checks that Opacity, Recolor Artwork and the Style picker show at every width
that shows the Character group.
2026-11-24 15:20:13 -08:00