Commit Graph
23165 Commits
Author SHA1 Message Date
dotCooCoo 321ae3dfc0 Scripts: describe app.redraw apart from undo and redo, and drop a repeated indexer test
app.redraw() changes nothing, so docs/mcp.md now describes it on its own. The undo step a run
leaves is stated for documents that were open before the run and are still open after it.
main's own indexer tests already check the receiver's and the key's limits.
2026-11-28 19:24:00 -08:00
dotCooCoo 6112616e13 Merge main into feat/scripts-app-undo-redo 2026-11-28 18:30:41 -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
.CooCoo ac031311a2 Merge pull request #10018 from dotCooCoo/fix/speed-i13854-node-lookup
Performance: Document::node reads the node from the lookup cache without copying its path
2026-11-28 17:32:41 -08:00
.CooCoo 01f24fa4e4 Merge pull request #10010 from dotCooCoo/fix/addon-dialogs-revert
Add-on dialogs: a draft from before File › Revert leaves the restored drawing alone
2026-11-28 17:29:07 -08:00
.CooCoo a637f843c6 Merge pull request #10014 from dotCooCoo/fix/speed-i13853-cursor
Canvas: a wheel pan or zoom keeps the tool's cursor until the view is still
2026-11-28 17:28:54 -08:00
.CooCoo 67adc70369 Merge pull request #9775 from dotCooCoo/fix/brush-options-unchanged-approval-b-verify
Keep unchanged Brush Options out of document history
2026-11-28 17:28:50 -08:00
.CooCoo 75e639a024 Merge pull request #9915 from dotCooCoo/feat/arc-join-path-end
Three-Point Arc: join arcs to open path ends and snap to carry a path on
2026-11-28 17:28:46 -08:00
.CooCoo a836ddd7a7 Merge pull request #10019 from dotCooCoo/fix/speed-i13853-layers
Layers: the selection squares read held art from the listed rows
2026-11-28 17:28:42 -08:00
.CooCoo 9f322c6a73 Merge pull request #9992 from dotCooCoo/fix/invert-empty-selection-target
Paint: Invert and Complement refuse a bad target with nothing selected
2026-11-28 17:28:38 -08:00
.CooCoo 6355b468a5 Merge pull request #10009 from dotCooCoo/fix/panel-harness-off-window
Tests: panel harness clicks fail on controls outside the window
2026-11-28 17:28:34 -08:00
.CooCoo 398fdd672c Merge pull request #10017 from dotCooCoo/fix/js-collections-iterator
Scripts: Map, Set and typed array constructors read their argument through its iterator
2026-11-28 17:28:11 -08:00
.CooCoo f431acf693 Merge pull request #10016 from dotCooCoo/fix/pattern-bend-pen-samples
Brushes: pen-driven art and pattern brushes keep the size of a short pen change
2026-11-28 17:28:08 -08:00
.CooCoo 0beaaec050 Merge pull request #9975 from dotCooCoo/fix/select-highlight-reads
UI: a highlighted list entry applies only once it is chosen
2026-11-28 17:27:54 -08:00
.CooCoo 774891d6ff Merge pull request #8088 from jmverges/fix/6983-followup-page-widths-pick-font-copy
.ai import: type takes the installed copy that sets its PDF part's widths
2026-11-28 17:25:40 -08:00
.CooCoo 664571cbef Merge pull request #9852 from dotCooCoo/fix/script-collection-numeric-names
Scripts: collection reads look up names such as -1 and 1.5
2026-11-28 17:18:51 -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
.CooCoo 31a5e30057 Merge pull request #10013 from dotCooCoo/fix/move-handles-zero-offset-keeps-live
Direct Selection: a move by nothing leaves a live shape that needs no change live
2026-11-28 17:04:05 -08:00
.CooCoo ed25a5a2cf Merge pull request #9990 from dotCooCoo/fix/repeat-outer-effect-redraw
Render: redraw the effects on a shadowed radial or mirror repeat's copies
2026-11-28 17:02:10 -08:00
.CooCoo bd11114c7b Merge pull request #9988 from dotCooCoo/fix/cjk-wait-in-pointer-tests
Tests: Cutout and Objects on Path clicks wait for the CJK font lookup
2026-11-28 17:01:51 -08:00
dotCooCoo b9e61e9754 Merge main into fix/speed-i13854-node-lookup 2026-11-28 17:00:33 -08:00
dotCooCoo 4fc4cbca0b Performance: Document::node reads the node from the lookup cache without copying its path
Document::node went through index_path, which copied the node's index
path out of the lookup cache into a new Vec, walked the tree to check it,
and walked it again to return the node. The menus' states call it for
every selected object in many of their checks, so a rebuild of the menu
states with 10,000 objects selected made hundreds of thousands of copies.

node now follows the place the cache has for the id once, without a
copy. When the cache has no single place for it, the path is deeper than
32 levels, or the node there no longer has the id, it looks the node up
as index_path does.

vectorcraft_doc::path_copies counts the paths the cache copies out, for
the new test.
2026-11-28 17:00:31 -08:00
dotCooCoo 1e20ae2543 Merge main into fix/speed-i13853-layers 2026-11-28 16:52:15 -08:00
dotCooCoo 7fcd28eaa5 Brushes: pen-driven art and pattern brushes keep the size of a short pen change
With Scale or Width on a pen input, a pattern tile or art brush art was
bent by checking the outline at evenly spaced positions, so a pen change
that fell between two of them was drawn at the size on either side. A
10 x 4 pt tile on a 10 pt path with a pressure peak at 2.2 pt was 2 pt
either side there instead of 6 pt.

The bent outline is now split at the recorded pen samples where the size
turns by more than the outline's tolerance, in both the fitted curves and
the chords, so those samples land on anchors. Samples that keep the size
on a straight course add no anchors.
2026-11-28 16:52:01 -08:00
.CooCoo acec33a9f2 Merge pull request #9082 from dotCooCoo/feat/scripts-scriptui-dialogs
Scripts: build and show ScriptUI dialogs with new Window("dialog")
2026-11-28 16:51:41 -08:00
dotCooCoo e7bf7b789f Scripts: Map, Set and typed array constructors read their argument through its iterator
new Map, new Set, new WeakMap and new WeakSet read their argument by
index (an array, a string or an object with a length), so a generator,
a Map, a Set or any other iterable was a TypeError, and an array whose
@@iterator was replaced was still read by index. They now read it
through GetIterator and close the iterator when adding an entry throws
(ECMAScript 2015, sections 23.1.1.1, 23.2.1.1, 23.3.1.1 and 23.4.1.1).
A Map or WeakMap entry that is not an object is a TypeError.

The typed array constructors and %TypedArray%.from read a source with
an @@iterator method through its iterator to the end before mapping
it, and any other source as an array-like object (sections 22.2.1.4
and 22.2.2.1).

Map.prototype[@@iterator] is entries, Set.prototype[@@iterator] is
values, %TypedArray%.prototype[@@iterator] is values, and the Map, Set
and array iterators inherit %IteratorPrototype%, so for-of and spread
walk them.

Changed behavior: an array-like object without @@iterator passed to
new Set or new Map is now a TypeError, and Uint8Array.from([1, 1], f)
with an f that changes the array maps the values read before f ran.
2026-11-28 16:51:11 -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
.CooCoo 9c2736bc00 Merge pull request #9875 from Hassan1305/fix-9848-mosaic-stale-warning
Object Mosaic: clear the away warning on return to the original image (#9848)
2026-11-28 16:48:44 -08:00
.CooCoo 2fbb90292a Merge pull request #9877 from Hassan1305/fix-9225-pen-segment-drag
Paths: bend a straight segment evenly, handles from its thirds (#9225)
2026-11-28 16:48:39 -08:00
.CooCoo 358a64bbab Merge pull request #10002 from dotCooCoo/fix/speed-i13656-selection-roots
Selection: the selected roots are found once for each selection
2026-11-28 16:43:22 -08:00
.CooCoo 15aba428ce Merge pull request #9995 from dotCooCoo/fix/speed-i13656-selection-marks
Canvas: the selection's marks are built once per change
2026-11-28 16:43:01 -08:00
.CooCoo e15bb58fbd Merge pull request #10004 from dotCooCoo/fix/speed-i13657-find-font
Find Font: the document's fonts are listed only while the dialog is open
2026-11-28 16:42:39 -08:00
.CooCoo fdb7483d06 Merge pull request #9998 from dotCooCoo/chore/craft-libs-610c86792a
Dependencies: craft-libs 610c86792a, with Live Paint keeping coincident edges in the sweep's order
2026-11-28 16:42:29 -08:00
dotCooCoo 7f96211081 Docs: state the zero-offset rule for path.moveHandles
The params text and docs/mcp.md now say that a move by 0, 0 changes only
the anchors it makes corners, so a live shape whose listed anchors need no
change stays live, and one with an anchor made a corner becomes a plain
path.
2026-11-28 16:36:19 -08:00
dotCooCoo 48300cebe3 Layers: the selection squares read held art from the listed rows
Each frame with the Layers panel open, every row's selection square
walked the art below its node to find whether it held a selected
object, so a layer with 10,000 objects walked all of them in every
frame. The rows now list the nodes that hold selected art in one pass
over the tree when they are listed again (on each revision or
selection change), and the square reads that list.
2026-11-28 16:34:40 -08:00
dotCooCoo 17a5016538 Merge main into fix/move-handles-zero-offset-keeps-live 2026-11-28 16:22:44 -08:00
dotCooCoo c49e10268e Add-on dialogs: a draft from before File › Revert leaves the restored drawing alone
The shared add-on dialogs checked only the document's uid, which
File › Revert keeps while it replaces the drawing. A dialog left open
across a revert previewed on and applied to the restored art. They now
record the revert count with the uid, stop previewing after a revert, and
refuse OK with "The document was reverted. Reopen this dialog to
continue.", as Vector Halftone does since #9943.
2026-11-28 16:21:31 -08:00
dotCooCoo cf2556a7a3 Merge main into fix/select-highlight-reads 2026-11-28 16:13:54 -08:00
dotCooCoo 055b0e786f Merge main into fix/brush-options-unchanged-approval-b-verify 2026-11-28 16:13:10 -08:00
dotCooCoo 4fd0ec2bd3 Merge main into fix/cjk-wait-in-pointer-tests 2026-11-28 16:12:48 -08:00
dotCooCoo a8e75a5ab6 Merge main into fix/repeat-outer-effect-redraw 2026-11-28 16:12:30 -08:00
.CooCoo e0649cf32f Merge pull request #8924 from dotCooCoo/feat/script-warning-reaches
Scripts: the Other Script… warning lists what the script reaches outside the document
2026-11-28 16:09:06 -08:00
dotCooCoo a1cdf0668a Find Font: repeat the pump test's edit when the font generation changes
Another test thread that changes the font database between the two pump passes makes the
second pass list the fonts again, so the one-listing assertion could fail. The test now repeats
the edit until the generation stays the same across both passes, as kept_over_frames does.
2026-11-28 16:08:59 -08:00
.CooCoo dcc6cd8241 Merge pull request #9399 from dotCooCoo/fix/command-dialog-document-scope
Command dialogs: restrict edits to their target document
2026-11-28 16:08:15 -08:00
.CooCoo 27cce03a76 Merge pull request #9989 from dotCooCoo/fix/js-arguments-names-heap
Scripts: an arguments object's map of argument names counts toward the heap limit
2026-11-28 16:07:31 -08:00
.CooCoo d077b7cbb1 Merge pull request #9283 from dotCooCoo/feat/scripts-page-item-blending-mode
Scripts: PageItem.blendingMode reads and sets an object's blending mode
2026-11-28 16:06:38 -08:00
.CooCoo 79a3805b1d Merge pull request #9957 from dotCooCoo/train/carry8496
3D: a ring of overlapping faces is broken at one of its own faces
2026-11-28 16:06:32 -08:00
.CooCoo 8c6e5d7e33 Merge pull request #9129 from dotCooCoo/feat/plugin-api-importer-output-kinds
Plug-ins: importers at API level 4 open type, embedded images, layers and artboards
2026-11-28 16:06:28 -08:00
.CooCoo 4bfa4bef66 Merge pull request #9997 from dotCooCoo/fix/js-eval-new-target
Scripts: direct eval inside a function reads its new.target
2026-11-28 16:06:25 -08:00