Commit Graph
24017 Commits
Author SHA1 Message Date
dotCooCoo 3a5a7252e2 Merge main into fix/pdf-read-counter-address-reuse 2026-12-01 01:01:39 -08:00
.CooCoo e4eaaabd0b Merge pull request #10352 from dotCooCoo/fix/menubar-padding
Menu bar: a smaller Home button and padding beside each menu title
2026-12-01 01:00:12 -08:00
dotCooCoo 68dbba0b92 PDF: count test reads of a buffer from a mark, not over its address's whole history
reads_of counts reads by buffer address and never forgets them, so a buffer
allocated where another test's freed buffer was read starts with that count.
linked_pages_read_the_file_once_and_a_blank_page_keeps_its_crop_box asserted
reads_of(&blob) == 0 and failed once that way under 16 test threads.

Each read now gets a sequence number. read_mark returns the next one and
reads_of_since counts only the reads at or after a mark. The linked-pages test
takes a mark before opening the file.
2026-11-30 23:05:46 -08:00
.CooCoo 84335645da Merge pull request #10335 from dotCooCoo/fix/linked-profile-listing
New Document: Manage Profiles reports a linked profile as unusable
v0.25.1-nightly.20261201.46594001454.1.g84335645dabd
2026-11-30 20:23:26 -08:00
dotCooCoo 2030c7b2d2 Menu bar: a smaller Home button and padding beside each menu title
Home in the application bar is a small control, so its square and glyph
take the small control sizes. The menu titles are menu rows with the
control padding on each side of the text, so the hover and open
highlight no longer ends at the edge of the letters.
2026-11-30 20:00:26 -08:00
.CooCoo 703252de65 Merge pull request #10334 from dotCooCoo/fix/script-run-accounting
Scripts: list rebuilds count against the run, a stop is not masked, bad answers throw at the call
2026-11-30 19:18:27 -08:00
.CooCoo e4da493676 Merge pull request #10344 from dotCooCoo/fix/selection-tool-hides-anchors
Selection: a path selected whole shows its anchors without direction handles
2026-11-30 19:12:54 -08:00
dotCooCoo 0ae5a199b2 Tests: linked-profile tests take main's with_profiles temp root
with_profiles on main returns the TempDir root as a third value, so the
three new listing tests did not compile after the merge. They now keep
their outside files under that root, which removes them on drop.
2026-11-30 19:11:32 -08:00
.CooCoo ec9c4cf564 Merge pull request #10084 from dotCooCoo/fix/menu-dialog-kind-names
MCP: ui.menuDialog's params text names the dialog keys ui.inspect reports
2026-11-30 18:53:46 -08:00
dotCooCoo f4d82931ea Merge main into fix/linked-profile-listing 2026-11-30 18:52:47 -08:00
dotCooCoo 1e4e7cfbfe Selection: a path selected whole shows its anchors without direction handles
With the Selection tool, a selected path drew the direction handles of
every anchor, so it looked as if Direct Selection were active. The canvas
marks now draw the handles only where a tool drags them: a partial
selection's anchors, a selected segment, and a path selected itself under
a tool that edits anchors. Every other selected path, including the
members of a group or compound path selected whole, shows its anchors
selected with no handles. A lone anchor selected whole is drawn with its
handles retracted.
2026-11-30 18:19:35 -08:00
dotCooCoo 1d6af09cff Scripts: a stop from end when show() fails ends the run
When show() failed (an answer that could not be read, a host call that
threw, or a handler that threw), the dialog's failure function called the
host's end and dropped its result, so an Abort from end did not stop the
run and the script could catch the error and finish. The failure function
now returns that stop, and the answer and call paths end the run with it
before the error reaches the script.
2026-11-30 17:59:40 -08:00
dotCooCoo 26cbcb711e Merge main into fix/menu-dialog-kind-names 2026-11-30 17:54:45 -08:00
dotCooCoo 1662723cae MCP: ui.menuDialog lists the slider keys and Edit Points Only
main now lists the Smooth and Simplify sliders in ui.inspect as dialogs
smoothSlider and simplifySlider, which ui.dialog.set, confirm and cancel
control, and Object › Plug-ins › Selection Tools › Edit Points Only…
opens through ui.menuDialog. The params text of ui.menuDialog,
ui.smoothAuto and ui.simplifyAuto, docs/mcp.md and the menu dialog key
test now say so.
2026-11-30 17:54:45 -08:00
.CooCoo 6b9cd3d462 Merge pull request #10328 from dotCooCoo/fix/script-array-host-collections
Scripts: array methods visit every element of a host collection
2026-11-30 17:31:49 -08:00
.CooCoo e3a265870d Merge pull request #10331 from dotCooCoo/fix/script-tests-check-what-they-name
Tests: script DOM and New Document tests check what they name
2026-11-30 17:05:58 -08:00
.CooCoo ccd1ab5cc0 Merge pull request #10330 from dotCooCoo/fix/new-document-card-tile-flake
Main: resting-card test picked Home screen cards in random node order
2026-11-30 16:55:47 -08:00
.CooCoo 251d06b8b3 Merge pull request #10329 from dotCooCoo/fix/script-app-members-checks
Scripts: getIsFileOpen keeps backslashes in Unix file names; DocumentPreset checks its receiver
2026-11-30 16:42:58 -08:00
.CooCoo 8292a1cc0e Merge pull request #10325 from dotCooCoo/fix/step-repeat-review-findings
Step and Repeat: the dialog stays on its document, and copies go in at once
2026-11-30 16:26:25 -08:00
.CooCoo 585ba75306 Merge pull request #10324 from dotCooCoo/fix/script-docs-match-code
Docs: script and edit.clear notes describe what the code does
2026-11-30 16:14:09 -08:00
dotCooCoo 1ce1d2ccf2 New Document: Manage Profiles reports a linked profile as unusable
file.newProfiles and Manage Profiles checked a profile's file with
is_file, which follows a link. A profile file that was a link to a
document was listed as customized with Edit on, while file.new refuses
to read a link and gives the new document the defaults. A link that
led nowhere, or a folder, was listed as not customized, so Reset was
off and could not remove it, and Edit on a link that led nowhere wrote
the shipped profile where the link pointed.

The profile's file is now looked at without following a link:

- file.newProfiles lists a link or a folder as customized, with
  unusable: "not a plain file".
- Manage Profiles dims that profile's name, says why in its tooltip,
  and turns Edit off. Reset stays on for a link and removes the link,
  not the file it leads to. Reset is off for a folder, and
  file.newProfiles.reset gives an error instead of deleting a folder.
- file.newProfiles.edit gives an error for a link or a folder, and
  creates a missing profile file without following a link put there.

Docs: docs/mcp.md (New Document profiles) and the command help.
2026-11-30 16:07:05 -08:00
dotCooCoo aba076239d Scripts: document that a probed host indexer gives the element
The Array.prototype methods that skip missing elements, such as forEach
and map, read each index of a host collection with one indexer call
that has `true` as a third argument and use its answer as the element.
The docs of the module, HostClass::index and host_index now say that
such a call gives the element itself, or undefined when there is none,
and that reads without the third argument, such as those of join, are
ordinary reads.
2026-11-30 15:55:05 -08:00
dotCooCoo fe89d3f81e Scripts: list rebuilds count against the run, a stop is not masked, bad answers throw at the call
- pageItems, pathItems and textFrames build their list of a document again
  after every edit. The rebuild walked the whole document without counting
  anything against the run, so a loop that edits and reads a collection in a
  large document did unbounded host work. A rebuilt list now counts 16 bytes
  per object (as the selection's list does) against the run's host-call
  allowance, and the path and type lists count the page items they scan.
- An edit's own ordinary error was returned ahead of a stop (an uncatchable
  Abort) from putting back the selection or switching back to the active
  document, so a script could catch it and go on. A stop now comes first.
- An answer to a waiting call that could not be read as a value (nested too
  deep, too many entries) ended the run instead of being thrown at the call.
  It is now thrown there, where the script can catch it, and a ScriptUI dialog
  that waited for the answer stops showing, as when its host call fails.
- The selection cost test also compares the host calls, under the same
  64 KiB limit for both documents.
2026-11-30 15:54:45 -08:00
dotCooCoo c0002dbc09 Merge main into fix/menu-dialog-kind-names 2026-11-30 15:53:46 -08:00
dotCooCoo 0a56d7df9d Tests: script DOM and New Document tests check what they name
- The grid-by-column test now checks each artboard's row and column, so
  RLGridByCol must fill from the rightmost column. It compared only the
  number of distinct rows and columns before, which a left-to-right fill
  also passes.
- The keepEmpty test asserts that keepEmpty false deletes the compound
  path, instead of accepting any state other than an empty compound.
- The addDocument profile test closes the profile document before the
  script reads the profile, so the read goes through the app-folder
  exemption and not through the rule for open documents' files.
- The report-origin test adds authored ReferenceError controls for
  Window and activeDocument, and for BridgeTalk thrown as an error
  object, so a hint list that grows to those names cannot change a
  message the script wrote.
- New Document profile tests, and the temporary folders and files in
  script_dom.rs and script_run.rs, use vectorcraft_testkit::TempDir, so
  a failing assertion no longer leaves process-id folders behind. The
  linked-profile test keeps its link target in the same temporary
  folder.
2026-11-30 15:50:56 -08:00
dotCooCoo e4506377ba Main: the resting-card test checks only the New Document dialog's cards
resting_preset_cards_stand_on_a_tile took the first unselected list item
in the frame's access tree. That tree also holds the Home screen's
document cards behind the dialog, which lie flat by design, and the
update lists nodes in hash-map order, which changes from process to
process. When a Home card came first the test failed, so it failed on
some runs of the full workspace and passed alone.

The test now walks the dialog node's subtree and checks every unselected
card in it, so the result no longer depends on node order.
2026-11-30 15:49:02 -08:00
dotCooCoo b8ee4686b0 Scripts: getIsFileOpen keeps backslashes in Unix file names; DocumentPreset checks its receiver
app.getIsFileOpen treated any path with a backslash as a Windows path,
turning each backslash into a folder separator and ignoring letter case.
On macOS and Linux a backslash is a character of a file name, so
getIsFileOpen answered true for the path /work/a\b.ai while /work/a/b.ai
was open.
Paths now get the Windows rules only on Windows or when they start with a
drive letter.

DocumentPreset.typename and toString() answered for a preset kept from
an earlier run with #targetengine, while its settings throw a TypeError.
Both now check the preset the way the settings do.

Documents.addDocumentNoUI(startupPreset) was missing. It now makes the
document addDocument(startupPreset) makes.
2026-11-30 15:39:56 -08:00
.CooCoo b8470d947f Merge pull request #5272 from ljkx/fine-nudge-5258
Nudge: Ctrl/Cmd+arrow moves by a tenth of the keyboard increment (#5258)
2026-11-30 15:27:20 -08:00
dotCooCoo a353ebef69 Scripts: array methods visit every element of a host collection
Array.prototype methods called on a host collection with more than 4,096
elements, such as forEach over a document's page items, visited only the
indices held as properties. A host collection keeps its elements in the
host, so those methods skipped every element. They now visit every
index of an object whose class has an indexer.

Each element read also called the indexer twice, once to test presence
and once to read the value. The methods now read an index of such an
object with one call, the one `k in object` makes, and take its answer as
the element.
2026-11-30 15:22:04 -08:00
.CooCoo 26e721e719 Merge pull request #10199 from dotCooCoo/docs/rescore-current
Docs: readiness and depth scores match what main ships
2026-11-30 15:11:50 -08:00
dotCooCoo 162b7962d9 Merge main into fix/script-docs-match-code 2026-11-30 15:09:19 -08:00
dotCooCoo 8b42847f90 Docs: Documents.add checks artboardRowsOrCols for every layout 2026-11-30 15:09:19 -08:00
.CooCoo 90e08df23f Merge pull request #10312 from dotCooCoo/fix/ui-frame-stability
Menus: a menu opens under its title on a monitor beside a portrait one
2026-11-30 15:02:38 -08:00
dotCooCoo 4ef58e025f Docs: script and edit.clear notes match what the code does
- app.documents.add: artboardRowsOrCols sets the rows of GridByCol and
  RLGridByCol and the columns of GridByRow and RLGridByRow; Row, RLRow
  and Column do not use it.
- PageItem.duplicate runs node.move on the copy only with a relative
  object, and move and duplicate skip node.move when the object is
  already in place.
- edit.clear takes null for guides, keepEmpty and keepJoined as the key
  left out, as switch_or reads them.
- The scripts entry in docs/target-app-parity.md no longer lists type
  as missing; document.textFrames ships.
2026-11-30 14:59:21 -08:00
dotCooCoo f498c562e2 Merge main into fix/step-repeat-review-findings 2026-11-30 14:51:53 -08:00
dotCooCoo 8bd0b57c57 Step and Repeat: the dialog stays on its document, and copies go in at once
The Step and Repeat dialog now acts only on the document it was opened
on. Its preview no longer runs on another document, and OK is refused
there, or after File > Revert, with the reason shown. Opening the dialog
again rolls back the earlier dialog's preview instead of leaving its
copies on the canvas.

object.stepAndRepeat makes every copy first and inserts them in one
pass, so a large grid walks the document a fixed number of times
instead of once per copy. The stacking order of the copies is
unchanged. A negative margin, and a gap of minus the width or height
or less, are refused instead of being clamped or folding the grid back
on itself.
2026-11-30 14:51:52 -08:00
.CooCoo 639ce5004e Merge pull request #10304 from dotCooCoo/fix/smooth-bridge-says-why
Smooth Bridge: a refusal says why an object is not a circle
2026-11-30 14:39:43 -08:00
.CooCoo cb0a23d293 Merge pull request #9052 from dotCooCoo/feat/scripts-api-d6-save-export-open
Scripts: documents save, export and open through Document.saveAs, exportFile and app.open
2026-11-30 14:36:03 -08:00
dotCooCoo 3c14744d7d Merge main into docs/rescore-current
# Conflicts:
#	docs/target-app-parity.md
2026-11-30 14:24:15 -08:00
.CooCoo 38846fcdf3 Merge pull request #10116 from dotCooCoo/feat/edit-points-only
Selection Tools: Edit Points Only narrows a Direct Selection to its anchor points
2026-11-30 14:19:49 -08:00
.CooCoo 27a91089bf Merge pull request #10092 from dotCooCoo/fix/simplify-smooth-dialog-host
MCP: the Simplify and Smooth sliders show in ui.inspect and answer ui.dialog
2026-11-30 14:19:32 -08:00
.CooCoo 0b55e3160a Merge pull request #10085 from dotCooCoo/fix/color-value-finite
Colors: a color with a component too large to store is refused
2026-11-30 14:19:14 -08:00
dotCooCoo 09f6e7b996 MCP docs: Simplify opens the popover only when no retained settings select the dialog 2026-11-30 14:09:28 -08:00
BFlat cf2d168d49 PDF import: inline images with the same dictionary keep their own pixels (#10313)
An inline image has no object of its own, and the interpreter keys an image
by its dictionary alone, so every inline image of one size and encoding got
the key of the first one and was imported with its pixels: Type 3 glyphs drawn
as inline stencil images came in as the wrong letters. An inline raster image
is now keyed by its samples too, and a stencil image by its decoded pixels.

Fixes #9247
2026-12-01 05:05:57 +07:00
.CooCoo f4f42de9d8 Merge pull request #10239 from dotCooCoo/fix/plugins-whole-tree-reads
CI: declare the files each crate reads in other crates, for test selection
2026-11-30 14:05:36 -08:00
.CooCoo 462b851eb7 Merge pull request #10257 from dotCooCoo/fix/merge-duplicate-tests
Tests: merge two duplicate engine tests, keeping every assertion
2026-11-30 14:05:18 -08:00
.CooCoo c4673da129 Merge pull request #10256 from dotCooCoo/fix/shrink-slow-test-inputs
Tests: the 3D face-limit and gray-level smoothing tests check the same cases with small inputs
2026-11-30 13:51:34 -08:00
.CooCoo a2b629ad06 Merge pull request #10254 from dotCooCoo/fix/ci-drop-prune-watcher
CI: drop the cache prune watcher job; cache-prune.yml prunes after each run
2026-11-30 13:51:17 -08:00
.CooCoo f9e65c09cd Merge pull request #10242 from dotCooCoo/fix/xtask-test-lint
xtask: test-lint checks the tests a change touches for weak assertions
2026-11-30 13:51:00 -08:00
.CooCoo 5c9e3276a8 Merge pull request #10263 from dotCooCoo/fix/engine-tests-into-it
Tests: nine engine integration test files join the tests/it binary
2026-11-30 13:50:42 -08:00