Commit Graph
23685 Commits
Author SHA1 Message Date
dotCooCoo 15b9b0ff43 Dialogs: lists inside a scrolling body cap their rows, so debug builds draw them
In debug and test builds, a framework list, table or tile grid shown in a
dialog body that scrolls must cap its rows or take its natural height.
Six dialogs did neither, and the dialog drew only the line "Internal
error: a collection owns its scroll ... (16.3)" in place of its controls
and buttons. Release builds were not affected.

- Select by Artboards: the artboard list shows 9 rows before it scrolls.
- Select by Link Status: the image table shows 9 rows.
- Find Nearest Swatch: the match list shows 12 rows.
- Apply SVG Filter: the filter list shows 7 rows.
- Composite Fonts: a custom set's characters show 5 rows.
- Bullets and Numbering: the preset tiles take their natural height,
  so every preset shows without a scroll of its own.

Each dialog has a test that opens it and checks that its list content
and its buttons are drawn.
2026-11-25 01:52:06 -08:00
dotCooCoo b1a52160af Export for Screens: the Formats row's buttons end at the column's right edge and wrap when the column is narrow
The Formats row (iOS, Android, Format Presets and Format Settings) was a
content-sized row aligned SpaceBetween, so it had no room to spread: the
buttons sat right after the label instead of at the column's right edge,
and the row could not narrow. In the app's least window (800 x 500) the
format grid stacks its cells in a 183 pt column, and the row ran 41 pt
past it, putting the Format Settings button past the dialog's right edge.

The row now fills the column, and its buttons wrap onto another line when
the column is too narrow for them. Asset Export draws the same row.
2026-11-25 01:49:15 -08:00
dotCooCoo 5413935bbd Tests: the Safe Mode launch trials run the frame that opens the choice 2026-11-25 01:46:37 -08:00
dotCooCoo 98a6ed7fc7 Scripts: each view is sized as the area its document was last drawn in
Since the move to the craft UI framework each document's view keeps the
area it last drew the document in, so Document.views now gives a view
for every document the app has drawn, in a tab, a tiled pane or a
floating window, sized as that area. A document the app has not drawn
yet has no view. View and Views also get toString, as the other script
objects have.
2026-11-25 01:06:23 -08:00
dotCooCoo e7eefa569c Script checker: File-only calls on a Folder object are not file reads, writes or dialogs
script.check counted write(), writeln(), copy(), createAlias(), open(),
read(), readch(), readln(), openDlg() and saveDlg() as file reads,
writes or dialogs on any object that may hold a File or Folder object.
A Folder object has none of these functions, so on new Folder(...), a
Folder place such as Folder.temp (other than Folder.current), or a
variable that only ever holds one, the call fails without reaching the
file system. The check now leaves those calls out, using the same rule
that already leaves out setting length, hidden or readonly on such an
object. Folder(...) without new and Folder.current may hold a File
object, so calls on them still count, and the Folder object's own
create(), remove(), rename(), getFiles() and selectDlg() still count
on every object.

Folder object functions:
https://extendscript.docsforadobe.dev/file-system-access/folder-object/
File object functions:
https://extendscript.docsforadobe.dev/file-system-access/file-object/

docs/mcp.md and the progress line in docs/target-app-parity.md state
the rule.
2026-11-25 01:01:43 -08:00
Taha-Mahmoodi cde95058a4 test: exercise outline stroke through canvas menu
- Click the rendered item with Craft command states and frame dispatch.
- Cover linked dimension protection for root and grouped selections.
2026-11-25 13:29:19 +04:30
BFlat 01c602dc40 Merge pull request #9268 from dotCooCoo/fix/recolor-empty-colors-table
Recolor Artwork: with every color preserved, the Colors table shows its empty-state note inside its body
2026-11-25 15:58:55 +07:00
BFlat a383c60f30 Merge pull request #9267 from dotCooCoo/fix/char-style-presets
Character Style Options: Insert Aki, Tsume and diacritic rows offer the Character panel's presets
2026-11-25 15:58:42 +07:00
BFlat b54bb15b8e Merge pull request #9246 from dotCooCoo/fix/window-menu-panel-shortcuts
Window menu: panel rows show their panels' shortcuts
2026-11-25 15:58:21 +07:00
BFlat 3dd6257d16 Merge pull request #9143 from dotCooCoo/fix/command-during-interaction
Undo: a command run during a tool drag is its own undo step
2026-11-25 15:57:51 +07:00
BFlat 0e70a0066e Merge pull request #8944 from dotCooCoo/fix/save-for-web-shift-edits
Save for Web: a color shift survives Done right after the Color Picker, stops at 256 colors and matches keys written another way
2026-11-25 15:57:34 +07:00
BFlat 14b799f6f3 Merge pull request #8860 from dotCooCoo/feat/tabs-x-field-adds-stop
Tabs: a position typed in X or Y adds a stop when the paragraph has none
2026-11-25 15:57:14 +07:00
BFlat 713206e53f Merge pull request #8856 from dotCooCoo/feat/layers-full-selection-square
Layers: a layer or sublayer with all its art selected shows the full-sized square
2026-11-25 15:56:56 +07:00
BFlat 8574f0d83a Merge pull request #8796 from dotCooCoo/fix/value-fields-arithmetic
Fields: number fields outside the shared widgets read field arithmetic
2026-11-25 15:56:38 +07:00
BFlat 0dcb2809f0 Merge pull request #8620 from dotCooCoo/fix/followup-8269
Swatches: New Swatch and Delete Swatch drops carry hidden selected swatches
2026-11-25 15:56:19 +07:00
dotCooCoo 25ee85d03d Scripts: the app.redraw test checks the top item's opacity after the second edit 2026-11-25 00:51:25 -08:00
Taha-Mahmoodi f9e4a77aa0 Merge pinned main into outline stroke eligibility 2026-11-25 13:19:27 +04:30
dotCooCoo 657bc9418e Asset Export: the scale row's Scale, Suffix and Format share the room the Remove button leaves, as production's rows did
The format rows (Scale, Suffix, Format and Remove) laid out over four
Content columns. The Format select is at least a field length wide
whatever room its column offers, and Scale took the room the other
columns leave at their least, so wherever the grid did not stack the
cells, Format and Remove ran past the panel's right edge: at 300 pt,
Remove ended at 481 pt. The Save As Preset row under the table then
laid out in the widened section and ran past the edge too. Export for
Screens draws the same rows.
2026-11-25 00:41:35 -08:00
dotCooCoo caf68eee85 Merge main into feat/scripts-doc-defaults 2026-11-25 00:32:37 -08:00
dotCooCoo 1e382904fa Merge feat/scripts-api-d2-paths-colors into feat/scripts-doc-defaults 2026-11-25 00:32:34 -08:00
dotCooCoo e97b0b49ae Scripts: Document default fill and stroke members and scaleFactor
A script that read or assigned a document's defaultFillColor,
defaultStrokeWidth or another default paint member, or read scaleFactor,
got undefined. The twelve default members now read and set the fill,
stroke and stroke options of the next object drawn, and scaleFactor
reads 1.

- appearance.setNewArt sets new art's fill, stroke and stroke options
  whatever is selected, leaving the selection, its art, the active proxy
  and Recent Colors as they were. Every value is checked before anything
  changes.
- The default members run it only when the value changes. A bad value
  throws an error with nothing changed.
- paths.rs shares its dash length checks with defaultStrokeDashes.
2026-11-25 00:31:11 -08:00
dotCooCoo a303ef2283 Merge main into feat/scripts-document-views 2026-11-25 00:26:34 -08:00
dotCooCoo 656aafffd7 Merge #9019's branch into feat/scripts-document-views
# Conflicts:
#	crates/engine/src/lib.rs
#	crates/engine/src/script/dom.rs
#	crates/ui-egui/src/script_runs.rs
#	crates/ui-egui/src/tests/script_run.rs
#	docs/target-app-parity.md
2026-11-25 00:26:34 -08:00
dotCooCoo 5986c0d94b Scripts: Document.views gives the document's view with its bounds, center and zoom
Document.views holds one view while the desktop app shows the document
on its canvas: every document's while documents are under the tabs, and
only the current document's while they are tiled or one floats in a
window. Without a window (headless) it holds none. The view has
typename, parent, bounds (the part of the document the canvas shows),
centerPoint, zoom (1 is 100%, from 0.0313 to 640) and screenMode.

Setting zoom, centerPoint or screenMode changes the window when the
slice ends, runs no command and adds no undo step, and a run that fails
keeps the change. The screen mode is the app's, so setting it on one
view sets it on every view. A bad value throws and leaves the view as
it was.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-25 00:24:55 -08:00
dotCooCoo 43106385f6 Align and Pathfinder: the panel icons fill their glyph square again
The Align, Distribute, Distribute Spacing, Align To and Pathfinder icons
keep their art 3 units inside a 24-unit view box. The framework draws
every icon in a 16 pt square, so this art spans 12 pt, smaller than the
Lucide icons next to it and smaller than the 15 pt the Align Objects,
Distribute Objects and Pathfinder buttons drew before the framework
port.

The 28 icons now have a 20-unit view box from 2 to 22, the padding the
Lucide icons keep. Their width and height change with it, so strokes
keep their width in pixels. The art itself is unchanged.

A new panel harness method returns a frame's shapes with the images of
its textures, and two tests check that each Align and Pathfinder panel
icon spans at least 20/24 of its square. Both fail without the change
(0.75).
2026-11-25 00:21:01 -08:00
FredApps 929c09f2a4 Merge main into the Document Info path area branch
Keep the current Document Info command fields when adding Path Area, and cover selecting a compound path member by itself and with its parent.
2026-11-25 09:13:15 +01:00
dotCooCoo 2a3db63482 Merge main into fix/followup-8463-preview-test 2026-11-25 00:07:20 -08:00
dotCooCoo c5732dc96b Merge main into fix/quick-pen-shortcut-default 2026-11-25 00:06:55 -08:00
dotCooCoo 6cdd034ed7 Merge main into fix/grid-picker-keeps-entry-model
Document Setup's Grid Colors row now answers through the dialog's color request: an answer equal to the color an entry's box showed leaves a two-color list's entry in its own model.
2026-11-25 00:05:32 -08:00
dotCooCoo dd72983847 Merge main into feat/scripts-app-redraw 2026-11-24 23:59:19 -08:00
dotCooCoo 950cf819dd Merge feat/scripts-api-d1a-app-documents into feat/scripts-app-redraw 2026-11-24 23:59:14 -08:00
dotCooCoo e45b922802 Scripts: app.redraw returns without changing the documents
A script that called app.redraw() stopped with an error, because app had
no such member. The call now returns undefined and adds no undo step. A
run works on its own copy of the documents, and the app draws the
documents as they were before the run until the run ends, so the call
has nothing new to draw.
2026-11-24 23:58:24 -08:00
dotCooCoo 263223d604 Scripts: Run checks the script again before running it
When the script's report has changed since the Other Script… warning
opened, Run runs nothing, says so in the status bar and opens the
warning again with the new report.
2026-11-24 23:57:54 -08:00
dotCooCoo 468b434c09 Plug-ins: a JavaScript plug-in's parameters keep their declaration order
Loading a JavaScript plug-in read its JSON into a map that sorts its keys and
wrote it out again before parsing the manifest, so `params` and each command's
`params` reached dialogs in alphabetical order. The manifest is now parsed from
the plug-in's own JSON (`Manifest::parse_text`), with its size still counted
without `script` and `source`, and a `.vcplugin` read from a folder has
`source` added to its own text instead of being written out again.
2026-11-24 23:52:00 -08:00
dotCooCoo ca2af5d94b Tests: the hidden-characters memo test also tries again when the fonts or hyphenation exceptions change during the edit pass
The attempt now records whether the memo inputs still match the settled
pass right after the edit pass, and accepts it only when they match after
both the edit pass and the zoom pass. Before, a change and restore of the
hyphenation exceptions between the two passes cleared the memo, left the
zoom check passing, and failed the assertion that the object not edited
keeps its layout.
2026-11-24 23:51:08 -08:00
dotCooCoo adf9fb23f6 Color Wheel: Copy Color As does not report a copy without a window
Without a window to copy through, a Copy Color As item still answers its
text, puts nothing on the clipboard and leaves the status bar as it was.
Before, the status bar said the color was copied.
2026-11-24 23:48:52 -08:00
dotCooCoo c6b92415f9 i18n: file pickers show file types in the interface language
The save panel and the Tracing Presets Import... picker passed each file
type's English label to the picker. They now name it with its
file-filter row, falling back to the plain row and then to English.
2026-11-24 23:46:51 -08:00
dotCooCoo f9f0659fc4 Merge main into feat/packaging-fold-angle 2026-11-24 23:45:27 -08:00
dotCooCoo 6c6b1328b1 Merge main into fix/dialogs-framework-widgets 2026-11-24 23:38:11 -08:00
dotCooCoo ddfeaef890 Merge main into feat/scripts-scriptui-dialogs 2026-11-24 23:37:30 -08:00
dotCooCoo a28882a78c Scripts: a hidden ScriptUI control takes no room, and a confirmed event waits behind queued ones
A control whose visible is false, and everything in it, no longer adds to
its container's size or pushes the next control along. An event sent with
ui.dialog.confirm while the dialog still holds events the script has not
taken goes after them, so handlers run in the order the events were given.
2026-11-24 23:37:24 -08:00
dotCooCoo e78c07546e Merge main into fix/profile-mismatch-background-queue 2026-11-24 23:36:54 -08:00
dotCooCoo 76bb8b74d9 Merge main into feat/script-warning-reaches 2026-11-24 23:34:19 -08:00
dotCooCoo d5e305232d Merge main into feat/scripts-page-item-blending-mode 2026-11-24 23:33:02 -08:00
dotCooCoo 630716c81c Scripts: PageItem.blendingMode reads and sets an object's blending mode
A page item's blendingMode gives the object's own blend mode as a
BlendModes value, and assigning one sets it through object.setProps.
The global BlendModes holds the 16 members the scripting constants page
lists; COLORBLEND and SATURATIONBLEND set the Color and Saturation
modes. Any other value throws "blendingMode needs a BlendModes value"
and changes nothing. Assigning the mode the object has adds no undo
step. An object in a hidden or locked layer refuses the change with
"Cannot edit", as opacity does.
2026-11-24 23:33:02 -08:00
dotCooCoo 9d225ba091 Merge main into feat/plugins-load-on-workers
The Safe Mode choice after a stopped launch moves to main's dialog host and keeps listing every
plug-in that was loading: one name in the sentence, or the list with "Disable Listed Plug-ins and
Continue". Automation requests wait in the queue while plug-ins load, and one past its deadline is
answered as expired. File > Open and opening a file still wait for the plug-ins still loading.
2026-11-24 23:31:07 -08:00
dotCooCoo 34b5706d1f Merge main into feat/eyedropper-hover-highlight 2026-11-24 23:28:44 -08:00
dotCooCoo b0219530fe Merge main into fix/swatch-drag-replaced-source 2026-11-24 23:27:44 -08:00
dotCooCoo 1f5a155580 Merge main into fix/test-frames-before-input-once 2026-11-24 23:27:22 -08:00
dotCooCoo b081fd0e0d Live Corners: the Corner Radius fields show a relative radius as a length
A live rectangle or polygon with Relative rounding showed the fraction it stores in its Corner Radius fields, while the Corners pop-up showed the length. The fields now show the length, which object.setLiveShape takes.
2026-11-24 23:23:34 -08:00