Commit Graph
71 Commits
Author SHA1 Message Date
dotCooCoo fbb0f2d5ff Merge main into feat/scripts-api-d4b-text-styles 2026-11-28 16:57:12 -08:00
.CooCoo d4b6d7f10d Merge pull request #9050 from dotCooCoo/feat/scripts-api-d4-text
Scripts: text frames, text ranges and fonts for scripts
2026-11-28 16:50:36 -08:00
dotCooCoo 31844b57dd Merge feat/scripts-api-d4-text into feat/scripts-api-d4b-text-styles 2026-11-28 16:13:51 -08:00
dotCooCoo 5728ff39cd Merge main into feat/scripts-page-item-blending-mode
# Conflicts:
#	crates/engine/src/tests/script_dom.rs
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-28 14:17:28 -08:00
dotCooCoo 79d78a95de Merge main into feat/scripts-api-d4-text
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/target-app-parity.md
2026-11-28 14:16:28 -08:00
dotCooCoo 1d1c9464cf Merge main into feat/scripts-api-d4-text 2026-11-28 09:12:20 -08:00
dotCooCoo a9fda9f97c Merge main into feat/scripts-app-redraw 2026-11-28 08:12:03 -08:00
.CooCoo c2e4966407 Merge pull request #9255 from dotCooCoo/feat/scripts-scriptui-resources
Scripts: ScriptUI builds windows and controls from resource strings
2026-11-28 08:03:55 -08:00
dotCooCoo 88fb7a8128 Merge main into feat/scripts-document-views 2026-11-28 07:25:53 -08:00
dotCooCoo 441634a7b3 Merge main into feat/scripts-page-item-blending-mode 2026-11-28 07:15:42 -08:00
dotCooCoo ab6a0d44aa Merge main into feat/scripts-scriptui-resources 2026-11-28 05:12:02 -08:00
dotCooCoo 37be9d4372 Merge main into feat/scripts-app-redraw 2026-11-28 04:00:58 -08:00
dotCooCoo e75b26cffc Merge main into feat/scripts-reflection 2026-11-27 23:38:58 -08:00
dotCooCoo 5162f5db7b Merge main into feat/scripts-app-redraw 2026-11-27 22:26:34 -08:00
dotCooCoo 4dc01ead22 Merge main into feat/scripts-page-item-blending-mode 2026-11-27 22:25:45 -08:00
dotCooCoo a9799bfe9a Merge main into feat/scripts-scriptui-resources 2026-11-27 22:17:49 -08:00
dotCooCoo f7ccc194fc Merge main into feat/scripts-document-views 2026-11-27 22:14:06 -08:00
dotCooCoo f56fcd99f6 Merge main into feat/scripts-reflection 2026-11-27 22:13:50 -08:00
dotCooCoo 13c44353cf Merge main into feat/scripts-api-d4b-text-styles 2026-11-27 22:13:49 -08:00
dotCooCoo d7425b47d3 Merge main into feat/scripts-api-d4-text
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/src/tests.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-27 21:57:48 -08:00
dotCooCoo c97b5eac1e Merge main into feat/scripts-api-d7a-variables 2026-11-27 21:57:44 -08:00
dotCooCoo 0669a4525a Merge main into feat/scripts-xmp-objects 2026-11-26 15:20:19 -08:00
dotCooCoo 051781e23d Merge main into feat/scripts-xmp-objects
Keep XMP file buffers in native state and release them at the file run boundary. Count registered namespaces and expanded metadata against the heap limit. Reset marked readers after updates and allow failed library setup to retry.
2026-11-26 13:13:53 -08:00
dotCooCoo 93a5d81d2e Merge main into feat/scripts-api-d7b-tags-notes-uuid 2026-11-26 09:34:56 -08:00
dotCooCoo b64cbe2174 Merge main into feat/scripts-document-views 2026-11-26 08:05:40 -08:00
dotCooCoo db059c1be4 Merge main into feat/scripts-api-d4-text 2026-11-26 00:22:24 -08:00
dotCooCoo 2909471ebc Merge main into feat/scripts-api-d7a-variables 2026-11-25 23:38:36 -08:00
dotCooCoo 562bec3f1e Merge main into feat/scripts-api-d7b-tags-notes-uuid 2026-11-25 23:07:28 -08:00
dotCooCoo 7b776dea92 Merge main into feat/scripts-reflection 2026-11-25 22:14:36 -08:00
dotCooCoo 2fc172e69a Merge main into feat/scripts-xmp-objects 2026-11-25 22:11:49 -08:00
dotCooCoo f525279b27 Merge main into feat/scripts-scriptui-dialogs 2026-11-25 18:42:43 -08:00
dotCooCoo d97786358d Tests: list View, Views and ScreenMode in the script host inventory
Document.views is read-only, so its row no longer lists a setter.
2026-11-25 13:57:25 -08:00
dotCooCoo 76e6b8b919 Merge main into feat/scripts-api-d4b-text-styles 2026-11-25 13:50:39 -08:00
dotCooCoo e593f0c7cc Merge main into feat/scripts-reflection 2026-11-25 13:37:34 -08:00
dotCooCoo 52b6645d5c Merge feat/scripts-api-d1a-app-documents into feat/scripts-app-redraw 2026-11-25 10:24:56 -08:00
dotCooCoo 5088b174fe Merge feat/scripts-api-d1a-app-documents into feat/scripts-page-item-blending-mode 2026-11-25 10:24:30 -08:00
dotCooCoo 06845e7c3e Merge feat/scripts-api-d1a-app-documents into feat/scripts-execute-menu-command 2026-11-25 10:24:27 -08:00
dotCooCoo 948ebd6adb Merge main into feat/scripts-api-d1a-app-documents 2026-11-25 10:21:51 -08:00
dotCooCoo 0ea397db72 Scripts: Fit Artboard to artwork bounds does nothing on a locked or empty artboard
app.executeMenuCommand('Fit Artboard to artwork bounds') threw the
command's error when the active artboard was locked or had no art on
it. The canvas's right-click menu dims Fit to Artwork Bounds then
(DocState::any_art_to_fit), so the script now does nothing and adds
no undo step, as for the other menu items that are not available. The docs state
that an available menu item runs its command and that an error that
command returns throws.

The host-versus-checker name table lists
Application.prototype.executeMenuCommand.
2026-11-25 06:08:03 -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
dotCooCoo 8b05d98951 Scripts: every script reads E4X and has the XML objects
The script host ran its realm with E4X off, so XML literals were syntax
errors and XML, XMLList, Namespace, QName, isXMLName and
setDefaultXMLNamespace were missing from every script, although
vectorcraft-js has them. script.run and File › Scripts now turn E4X on
for .js and .jsx files, script text, #include files, $.evalFile, eval
and Function, and for a #targetengine engine.

script.check lists the e4x and xml features under the language need
instead of hostOnly, since VectorCraft runs them.
2026-11-25 04:23:32 -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 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 1f1c8ccf8c Merge main into feat/scripts-api-d1a-app-documents 2026-11-24 20:48:43 -08:00
dotCooCoo 69d00d5fe1 Merge main into feat/scripts-scriptui-dialogs 2026-11-24 17:20:43 -08:00
dotCooCoo f16defe5db Merge main into feat/scripts-api-d7b-tags-notes-uuid 2026-11-24 17:00:39 -08:00
dotCooCoo e990b43681 Merge main into feat/scripts-api-d7b-tags-notes-uuid
New Document's More Settings now shows the columns a preset's rows give
the current artboards, and a new layout or column count replaces those
rows, in the dialog main rewrote.
2026-11-24 10:50:38 -08:00
.CooCoo 5f35daad7b Scripts: File and Folder give their localizedName (#9185) 2026-11-25 00:54:37 +07:00
dotCooCoo a0e2aa6c19 Merge main into feat/scripts-scriptui-dialogs 2026-11-24 09:22:14 -08:00