dotCooCoo
4b7ac69692
Scripts: fix path handles after main's revert count and review findings on path edits
...
PathItem handles carry the document's revert count, as page item
handles on main do, so path members find their path again.
setEntirePath and the path point setters throw a RangeError for a point
off the canvas. Opening a path whose closing segment is selected keeps
the edit. pathItems.add() leaves new art's paint as it was with New Art
Has Basic Appearance off. addDocument reports settings the built-in
preset refuses. appearance.setNewArt refuses a swatch that is not a
name. Writing one path's points looks only at that path afterwards.
2026-11-29 00:42:20 -08:00
dotCooCoo
0bd735f53d
Merge main into feat/scripts-doc-defaults
2026-11-28 23:20:21 -08:00
dotCooCoo
38dfb800e1
Scripts: leave getIsFileOpen's path comparison as main has it
...
The change to how getIsFileOpen compares paths on and off Windows goes in its own change, with
its test.
2026-11-28 20:03:45 -08:00
dotCooCoo
ecf193cc06
Merge main into feat/scripts-app-undo-redo
...
# Conflicts:
# crates/engine/tests/it/script_host_vs_scriptcheck.rs
# docs/target-app-parity.md
2026-11-28 19:47:12 -08:00
dotCooCoo
0d5850f616
Scripts: build on main's optional item bounds and painting-tool check
...
main's item_rect now gives no bounds for an empty object, and the
Live Paint Bucket check became tool_paints for the fill and the
stroke. rotate and resize leave a path without bounds unchanged, and
appearance.setNewArt uses the same inheritance test as paint.rs.
2026-11-28 18:41:43 -08:00
dotCooCoo
6112616e13
Merge main into feat/scripts-app-undo-redo
2026-11-28 18:30:41 -08:00
.CooCoo
dc2c6ff30f
Merge pull request #9061 from dotCooCoo/feat/scripts-api-d4b-text-styles
...
Scripts: character and paragraph styles for scripts
2026-11-28 18:26:11 -08:00
dotCooCoo
d2a14e2ef5
Merge main into feat/scripts-doc-defaults
...
# Conflicts:
# crates/engine/src/script/dom.rs
2026-11-28 18:11:57 -08:00
dotCooCoo
d471933b0d
Merge main into feat/scripts-doc-defaults
2026-11-28 18:11:42 -08:00
dotCooCoo
44c89a7912
Merge main into feat/scripts-api-d4b-text-styles
2026-11-28 18:11:24 -08:00
.CooCoo
0ac2b74614
Merge pull request #9055 from dotCooCoo/feat/scripts-api-d9-do-script
...
Scripts: app.doScript plays an action of the Actions panel
2026-11-28 17:55:11 -08:00
.CooCoo
1fe4d824c8
Merge pull request #9064 from dotCooCoo/feat/scripts-api-d4c-threads-stories
...
Scripts: nextFrame, previousFrame, story and document.stories for threaded type
2026-11-28 17:38:38 -08:00
dotCooCoo
1935494805
Merge main into fix/script-collection-numeric-names
...
# Conflicts:
# crates/engine/src/tests/script_dom.rs
# docs/target-app-parity.md
2026-11-28 17:18:25 -08:00
dotCooCoo
4999199bd5
Merge main into feat/scripts-api-d4c-threads-stories
...
# Conflicts:
# crates/engine/src/script/dom.rs
# crates/engine/src/script/dom/text.rs
# crates/engine/src/tests.rs
# crates/engine/src/tests/script_text.rs
# crates/engine/tests/it/script_host_vs_scriptcheck.rs
# docs/gaps.md
# docs/mcp.md
# docs/target-app-parity.md
2026-11-28 17:15:13 -08:00
dotCooCoo
1729de3109
Merge main into feat/scripts-api-d9-do-script
2026-11-28 16:57:36 -08:00
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
64c985d328
Merge main into feat/scripts-api-d4c-threads-stories
...
# 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:36:12 -08:00
dotCooCoo
3ce53dbb6c
Merge main into fix/script-collection-numeric-names
2026-11-28 14:35:22 -08:00
dotCooCoo
e2c4d0bbbe
Merge main into feat/scripts-api-d9-do-script
2026-11-28 14:28:32 -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
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
9c2a4ee9eb
Merge main into feat/scripts-api-d9-do-script
2026-11-28 05:27:49 -08:00
dotCooCoo
19cfcf8bbe
Merge main into fix/script-collection-numeric-names
2026-11-28 05:09:44 -08:00
dotCooCoo
37be9d4372
Merge main into feat/scripts-app-redraw
2026-11-28 04:00:58 -08:00
dotCooCoo
269024e088
Merge main into feat/scripts-api-d4c-threads-stories
...
Main gave every class member a reflect type and page item handles a revert
count. The type classes now declare a type for each member, their members
that are not available yet use the unavailable form, TextFrame takes main's
contentVariable, and a text range looks its frame up at the document's
current revert count.
Review fixes:
- A text range length that ends inside a surrogate pair moves its end out
to the end of the character.
- textFrames.removeAll() refuses type on a locked artboard, as
pageItems.removeAll() does.
- Joining a story's text across its frames counts toward the run's data
limit.
- A test shows a script that catches a refused link goes on with the links
unchanged.
2026-11-28 03:35:11 -08:00
.CooCoo
87b3dd9a98
Merge pull request #9853 from dotCooCoo/fix/script-documents-strict-assign
...
Scripts: assigning documents throws in strict mode and is ignored otherwise
2026-11-28 01:24:23 -08:00
dotCooCoo
7d6abb1d23
Merge main into fix/script-documents-strict-assign
2026-11-28 00:29:51 -08:00
dotCooCoo
e75b26cffc
Merge main into feat/scripts-reflection
2026-11-27 23:38:58 -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
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
d3fc73b14c
Merge main into feat/scripts-app-undo-redo
2026-11-27 22:14:35 -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
1371fdab0d
Merge main into fix/script-handles-after-revert
2026-11-27 22:12:29 -08:00
dotCooCoo
fc48b42f71
Merge main into feat/scripts-api-d4c-threads-stories
...
# 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/roadmap.md
# docs/target-app-parity.md
2026-11-27 22:12:29 -08:00
dotCooCoo
1583808eec
Merge main into fix/script-documents-strict-assign
...
# Conflicts:
# crates/engine/src/script/dom.rs
2026-11-27 22:10:35 -08:00
dotCooCoo
dc67320681
Merge main into fix/script-collection-numeric-names
2026-11-27 22:08:45 -08:00
dotCooCoo
ac3056e829
Merge main into feat/scripts-api-d9-do-script
2026-11-27 22:00:04 -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
.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
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