Commit Graph
25557 Commits
Author SHA1 Message Date
dotCooCoo 2101a3af56 Tests: check the prefixed export folder holds two entries before checking each is a file 2026-12-04 15:58:20 -08:00
dotCooCoo ddfc1c4c7a Scripts: a method replacement counts for the body that declares the variable
The script checker kept a replacement of a variable's methods
(`give(local)`, `local.saveAs = w`) for the body that had declared the
name so far in the text. A `var` statement declares the name for the
whole body, and a parameter is the function's own variable, so the
replacement could count for the wrong variable:

- A function whose own later `var local` or parameter `local` declares
  the name no longer ends the exemption of an outer `local`'s own
  `saveAs` (`function h(a, local) { return local; }`).
- A replacement now counts for the innermost body around it that
  declares the name anywhere in the body, found once every body's
  names are known.
- When a body past the nesting limit or out of room for its names is
  around the replacement, the declaring body is not known, and the
  replacement counts for a variable of that name in every body.
- The call site looks the replacement up for the body that declares
  the receiver, walking outward from the innermost body.
2026-12-04 01:36:17 -08:00
dotCooCoo cd36c78004 Scripts: a method changed through a computed key, an operator or another name ends the own-method exemption
The declarations pass recorded a function body or loop replacing a
variable's document write method only for `local.saveAs = ...` and
`local['saveAs'] = ...`. A hoisted function or a later loop pass could
still change the method through a compound or update operator
(`local.saveAs += w`, `local['saveAs']++`), or hold the object under
another name (`var y = local; y.saveAs = w`, `give(local)`), and an
earlier `local.saveAs(f)` kept its exemption.

The pass now reads these the way the main pass reads them: any compound
or update operator on a write method, `++local.saveAs`, a key in brackets
that is not one string or number literal, `delete local`, and the
variable used as a value. Each recorded replacement is kept by the body
that declares the variable, so a function's own variable of the same name
keeps its exemption.
2026-12-04 01:18:12 -08:00
dotCooCoo 904cf66f86 Scripts: a method replaced in a loop or a later function, and a global member used as a value, end the own-method exemption
- A loop that assigns `local.saveAs` or `local['saveAs']` marks `local` as assigned in that
  loop, so a call earlier in the loop writes a file.
- A function body that replaces a variable's write method, declared anywhere in the file,
  ends the exemption for that variable's calls. A variable the innermost body declares
  itself is left alone, and a key whose escapes do not decode counts as a write method.
- `$.global.local`, `this.local` and `globalThis.local` used as a value forget the variable's
  methods as `$.global['local']` does. A variable of the same name that the function body
  declares keeps its own.
- The test with two `a.saveAs(f)` calls puts them on separate lines and checks both.
2026-12-04 00:49:56 -08:00
dotCooCoo 644a4e6b8c Merge main into feat/scripts-export-for-screens 2026-12-03 11:15:24 -08:00
.CooCoo 3055e36ad5 Merge pull request #10736 from dotCooCoo/fix/rounded-bevel-cap-triangulation
3D: large caps are cut into triangles without testing every corner per ear
2026-12-03 09:08:22 -08:00
.CooCoo 4cf5678434 Merge pull request #10737 from dotCooCoo/fix/xtask-check-line-endings
xtask: ui-commands --check passes in a checkout with core.autocrlf
2026-12-03 09:07:06 -08:00
.CooCoo abe50250fa Merge pull request #10728 from dotCooCoo/fix/artboard-name-edit-target
Artboards: an unentered name stays with its artboard
2026-12-03 08:49:36 -08:00
.CooCoo c55947d2c1 Merge pull request #10727 from dotCooCoo/fix/cli-export-size
CLI: convert and run --export take --width, --height and --background
2026-12-03 08:49:20 -08:00
.CooCoo e8aa48f1fa Merge pull request #10715 from dotCooCoo/fix/gradient-stop-draft-follows-stop
Gradient: an unfinished field value stays with the stop, point or gradient it was typed for
2026-12-03 08:49:03 -08:00
.CooCoo d91cf654b3 Merge pull request #10699 from dotCooCoo/fix/script-point-undo-selection
Scripts: undoing a point write selects the anchors it dropped again
2026-12-03 08:48:47 -08:00
.CooCoo dc8a26be02 Merge pull request #10695 from dotCooCoo/fix/hyphenation-dialog-zone-gate
Hyphenation: the dialog disables the options that do not apply to the paragraphs
2026-12-03 08:48:30 -08:00
.CooCoo 9a2a06a136 Merge pull request #10693 from dotCooCoo/chore/script-dom-coverage
Tests: cover script DOM range checks, PrintOptions groups and evalFile refusals
2026-12-03 08:48:14 -08:00
.CooCoo e6ef622acb Merge pull request #10688 from dotCooCoo/fix/eps-embedded-font-tests
EPS import: tests for Type 1 encrypted-part lexing and CIDFont metrics, glyph directories and data limit
2026-12-03 08:47:58 -08:00
.CooCoo 70c734d72a Merge pull request #10687 from dotCooCoo/fix/coverage-recolor-theme-legends
Tests: cover the theme picker's masks and blends, and pie legend contrast past the wedge limit
2026-12-03 08:47:42 -08:00
.CooCoo dbacda04ee Merge pull request #10698 from dotCooCoo/fix/script-text-spot-color
Scripts: a text color assigned in a CMYK document is compared as the document stores it
2026-12-03 08:47:10 -08:00
.CooCoo 71feb45ef1 Merge pull request #10745 from dotCooCoo/fix/main-see-all-points-result
Main: removeAll on a clipping path passes on a stale-point error
2026-12-03 08:46:49 -08:00
dotCooCoo a857b49af4 Main: removeAll on a clipping path passes on a stale-point error
#10682 made paths::see_all_points return a Result; d22384d6 had added a call in the mask-release path of removeAll that ignored it, so clippy -D warnings fails on main. The call now passes the error on with ?, as the other three callers do.
2026-12-03 08:46:32 -08:00
.CooCoo 989d4512e7 Merge pull request #10683 from dotCooCoo/test/coverage-gaps-engine-file-limits
Tests: cover the script gate's checked writes and three file-size limits
2026-12-03 08:22:49 -08:00
.CooCoo fff1c92179 Merge pull request #10682 from dotCooCoo/fix/script-point-scan-charged
Scripts: the look for changed path points after each command is charged
2026-12-03 08:22:32 -08:00
.CooCoo 554c0ab1c2 Merge pull request #10681 from dotCooCoo/fix/eps-interpreter-coverage
EPS import: tests for LZW data, skipped image data, save limits and cvs text
2026-12-03 08:22:15 -08:00
.CooCoo 04330419a0 Merge pull request #10679 from dotCooCoo/chore/geom-coverage-batch-18
Tests: cover geom arc, straightness, quad length and anchor table checks
2026-12-03 08:21:59 -08:00
.CooCoo 61ac3d5d57 Merge pull request #10647 from dotCooCoo/fix/raster-400-worker
Canvas: pans at high zoom keep the paths the canvas drew while waiting for the worker
2026-12-03 08:21:40 -08:00
BFlat b8e3576f17 Merge pull request #10558 from ruchirguitar/plate-row-menu
Separations Preview: add a context menu to ink plate rows
2026-12-03 23:15:43 +07:00
BFlat ceb282a6b8 Merge pull request #10561 from ruchirguitar/cleanup-row-menu
Artwork Cleanup: offer actions on scan results
2026-12-03 23:15:23 +07:00
BFlat e4dbbe9521 Merge pull request #10562 from ruchirguitar/codex/fold-finding-menu
Packaging: add a row menu to Fold Lines findings
2026-12-03 23:14:33 +07:00
BFlat 9daf4163eb Merge pull request #10568 from ruchirguitar/fix/web-served-fonts
Web: the site publishes the interface's served fonts under fonts/ui/
2026-12-03 23:14:15 +07:00
BFlat 9f781011b3 Merge pull request #10604 from ruchirguitar/feat/4602-canvas-menu-icons
Canvas context menu: common rows show an icon
2026-12-03 23:13:38 +07:00
.CooCoo f1c39395eb Merge pull request #10677 from dotCooCoo/chore/coverage-gaps-batch3-path-select
Tests: path joins, Pathfinder refusals and unknown selection modes
2026-12-03 07:37:19 -08:00
.CooCoo 557a98c866 Merge pull request #10672 from dotCooCoo/fix/format-write-and-unpack-budget-tests
Tests: checked saves keep the original, compressed files capped on both paths
2026-12-03 07:37:03 -08:00
.CooCoo 6524160f3d Merge pull request #10671 from dotCooCoo/fix/eps-writer-coverage-tests
Tests: cover aligned and pattern strokes in EPS, live art in legacy .ai and top-object grids
2026-12-03 07:36:46 -08:00
.CooCoo 8934a24a27 Merge pull request #10670 from dotCooCoo/fix/eps-ai-reading-limit-tests
Tests: cover the .ai reading limits for text data, meshes and variable libraries
2026-12-03 07:36:29 -08:00
.CooCoo fc19f5a42d Merge pull request #10664 from dotCooCoo/fix/action-playback-current-artboard
Scripts: doScript steps act on the artboard the script made active
2026-12-03 07:36:06 -08:00
.CooCoo 041c6cbfe9 Merge pull request #10660 from dotCooCoo/fix/newgroup-keeps-tracing
Image Trace: object.newGroup at index 0 no longer ends a tracing
2026-12-03 07:35:43 -08:00
.CooCoo a64c923e04 Merge pull request #10658 from dotCooCoo/fix/layer-selection-scans
Scripts: hasSelectedArtwork selects inside an isolated group and charges its scans
2026-12-03 07:35:25 -08:00
.CooCoo 80b6acf602 Merge pull request #10656 from dotCooCoo/fix/print-paper-null-and-socket-ppd
Print: file.print refuses a null paper, and only the local scheduler's sockets read its PPDs
2026-12-03 07:35:06 -08:00
.CooCoo de71cfc9ef Merge pull request #10654 from dotCooCoo/fix/script-image-matrix-locks
Scripts: image matrix assignment refuses locked and hidden images
2026-12-03 07:34:43 -08:00
.CooCoo 6d2b626597 Merge pull request #10653 from dotCooCoo/fix/script-transform-stroke-limit-empty-path
Scripts: transforms keep path strokes within 1000 points and take empty paths
2026-12-03 07:34:28 -08:00
.CooCoo 06d4971200 Merge pull request #10648 from dotCooCoo/fix/dxf-unit-scale-ratio-percent
Scripts: ExportOptionsAutoCAD.unitScaleRatio is a percentage
2026-12-03 07:34:11 -08:00
.CooCoo 4ed98d68c1 Merge pull request #10645 from dotCooCoo/fix/legacy-tracing-first-sight
Scripts: tracings saved without their record catch artwork added before the script reaches them
2026-12-03 07:33:48 -08:00
.CooCoo 3bc1ca34f1 Merge pull request #10643 from dotCooCoo/fix/script-limit-message-immediate-clipboard
Scripts: a Copy's notes written at once keep the recording limit shown
2026-12-03 07:33:25 -08:00
.CooCoo 094523b017 Merge pull request #10642 from dotCooCoo/fix/menu-model-no-rebuild-per-press
Menus: a click on the canvas or a key the canvas takes keeps the menu states
2026-12-03 07:33:08 -08:00
.CooCoo 2000adaa06 Merge pull request #10640 from dotCooCoo/fix/newdoc-preset-category
New Document: a bad preset or presetCategory is an error instead of being ignored
2026-12-03 07:32:45 -08:00
.CooCoo 6010e5c731 Merge pull request #10637 from dotCooCoo/fix/failed-run-keeps-plugin-events
Plug-ins: a failed script run gives back the events its opens pushed out
2026-12-03 07:32:20 -08:00
.CooCoo 9a21dae940 Merge pull request #10636 from dotCooCoo/fix/script-image-read-once
Scripts: placing or relinking an image reads its file once
2026-12-03 07:32:03 -08:00
.CooCoo 9557653cca Merge pull request #10630 from dotCooCoo/fix/windows-paper-across-printers
Print: a Windows paper stays chosen when the new printer lists its name at more sizes
2026-12-03 07:31:40 -08:00
.CooCoo 59306b80eb Merge pull request #10629 from dotCooCoo/fix/memoize-panel-bodies
Performance: idle frames replay the Color, Gradient, Stroke, Character, Paragraph, Swatches, Layers and Appearance panels
2026-12-03 07:31:23 -08:00
.CooCoo 78f7db23a0 Merge pull request #10626 from dotCooCoo/fix/task-bar-more-options-title-case
Task bar: More Options rows read in title case, as their commands do
2026-12-03 07:31:00 -08:00
.CooCoo 26aa108881 Merge pull request #10624 from dotCooCoo/fix/js-export-async-function
JavaScript: modules export async function declarations
2026-12-03 07:30:40 -08:00
.CooCoo 0727763819 Merge pull request #10620 from dotCooCoo/fix/async-function-subclass
Scripts: a class can extend AsyncFunction and GeneratorFunction
2026-12-03 07:30:16 -08:00