Commit Graph
23452 Commits
Author SHA1 Message Date
dotCooCoo 6ef6df3407 Scripts: round artboard rows as main's New Document test expects, and drop pathItems= from the host table
Cause of the CI failures on 212090fd7a:
- main's dialogs::new_document test a_presets_rows_reach_the_document_create_makes
  sets artboardLayout.rows to 3.6 and expects 4, but this branch refused a
  rows value that was not a whole number. rows now rounds like columns and is
  still refused outside 1 to 1000.
- script_host_vs_scriptcheck listed Document.prototype.pathItems=, the
  setter of main's placeholder. This branch makes pathItems a read-only
  collection, like pageItems, so the row goes.
2026-11-29 06:45:32 -08:00
dotCooCoo 212090fd7a Merge main into feat/scripts-doc-defaults 2026-11-29 05:51:56 -08:00
dotCooCoo 7a71837dea Scripts: keep new-art defaults and direct selections through path edits
- PathPoint.remove() renumbers the direct-selected anchors and segments
  after the removed point, and drops the removed anchor and the selected
  segments it ended, through selection commands after the points are
  written. A removed anchor no longer stays selected, and the same index
  no longer selects a different point.
- pathItems.add() reads new art's paint after the target document is
  active, so a path added to a document in the back keeps the stroke
  that document's selection gives new art.
- Paths a script draws put new art's paint back afterwards, so a
  defaultStrokeWidth the script set applies to every path it draws, not
  only the first.
- appearance.setNewArt refuses a fill or stroke paint with a setting a
  paint does not take, such as opacity, instead of applying the rest.
2026-11-29 05:51:46 -08:00
Dylan M. Taylor b3514b6277 fix(packaging): resolve SonarCloud regex reliability findings in nightly-release-tests.py (#10076) 2026-11-29 08:26:47 -05:00
dotCooCoo dd93247cbf Scripts: tests index page items topmost first and check the preset fallback
Cause of the script_dom and script_dom_paths failures: main's 9872e6b679
("page items report their own members, and lists start with the topmost
object") made pageItems, pathItems and the selection list art topmost first.
The branch's tests still indexed the objects bottom first, so pageItems[1]
and pathItems[0] named the other object. The tests now make the objects in
the order the lists read them, and index them topmost first.

The own-members test asked about rotate, which this branch makes available,
so it now asks about transform, which is not available yet.

The fallback test for addDocument relied on five 1,000,000 pt artboards not
fitting, but a new DocumentPreset puts them in one column. It now unsets the
layout so the built-in preset puts them in one row, and the test fails when
addDocument falls back to the saved preset of the same name.
2026-11-29 04:41:14 -08:00
Dylan M. Taylor d4d8da4544 chore(ci): allow manual workflow_dispatch for SonarCloud (#10070) 2026-11-29 06:43:03 -05:00
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
.CooCoo 5f92d8987f Merge pull request #10040 from dotCooCoo/fix/scriptcheck-linear-steps
Script check: a script whose only finding is unsure names is scanned once
2026-11-28 23:02:49 -08:00
.CooCoo 81e7545e1b Merge pull request #10045 from dotCooCoo/fix/set-corners-commit
Set Corners: typed values reach the preview
2026-11-28 22:55:49 -08:00
dotCooCoo ea99ddfa63 Merge main into fix/scriptcheck-linear-steps 2026-11-28 22:20:45 -08:00
.CooCoo 67f9daecb8 Merge pull request #9932 from makesomethingshit/fix/9814-web-file-drop-once
Web: route each dropped file once
2026-11-28 22:17:33 -08:00
.CooCoo c62571e073 Merge pull request #8822 from Hassan1305/fix-8531-snap-budget-edges
Smart Guides: the topmost objects keep their snap targets in a document past the anchor budget (#8531)
2026-11-28 22:17:29 -08:00
.CooCoo 8f719e5186 Merge pull request #10046 from dotCooCoo/fix/speed-i13854-menu-rebuilds
Menus: a key press rebuilds the menu states once
2026-11-28 22:15:15 -08:00
dotCooCoo 9e5e698372 Merge main into fix/speed-i13854-menu-rebuilds 2026-11-28 21:55:13 -08:00
.CooCoo 88772eefd1 Merge pull request #10043 from dotCooCoo/fix/panel-drags-after-file-revert
Drag and drop: panel drags held across File › Revert are not dropped on the restored drawing
2026-11-28 21:53:55 -08:00
dotCooCoo e6ffa5cc9e Merge main into fix/panel-drags-after-file-revert 2026-11-28 21:43:03 -08:00
.CooCoo 677414e15e Merge pull request #8131 from dotCooCoo/feat/color-wheel-copy-color-as
Part of #978: Copy Color As in the Color Wheel panel copies the color as hex, hex with alpha, CSS or CMYK values
2026-11-28 21:39:54 -08:00
dotCooCoo 288c14310d Merge main into feat/color-wheel-copy-color-as 2026-11-28 21:39:07 -08:00
.CooCoo 8ea80cb3bf Merge pull request #9093 from dotCooCoo/feat/hairline-slivers
Clean Up: remove hairline slivers thinner than a set width
2026-11-28 21:38:18 -08:00
.CooCoo 208185a7cf Merge pull request #10039 from dotCooCoo/fix/speed-i13930-global-edit-preview
Global Edit: the preview after an edit compares only the changed objects again
2026-11-28 21:38:02 -08:00
.CooCoo f9769056a1 Merge pull request #10041 from dotCooCoo/fix/save-options-radio-rows
Save options: All/Range and Transparent/Opaque radios have no empty caption over them
2026-11-28 21:37:46 -08:00
.CooCoo 3d5a154ed0 Merge pull request #10042 from dotCooCoo/fix/scriptcheck-linear-work
Scripts: the checker scans a script that binds no name once
2026-11-28 21:37:31 -08:00
dotCooCoo 63f1b5d45f Merge main into fix/speed-i13854-menu-rebuilds 2026-11-28 21:33:25 -08:00
HassanKhan 78795e188b Merge remote-tracking branch 'upstream/main' into fix-8531-snap-budget-edges
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-29 10:20:07 +05:00
.CooCoo 7da0740ae9 Merge pull request #10029 from dotCooCoo/fix/speed-i13929-dimmed-rows
Menus: a dimmed row runs its command's check once per rebuild
2026-11-28 21:13:40 -08:00
dotCooCoo 5f99cb7ebb Libraries: a swatch row held across File › Revert is not added to a library
The Libraries panel accepted a swatch row dragged before File › Revert and added the restored swatch of that name. Membership::grabbed now refuses stale rows, for the hover marker and on release.
2026-11-28 21:05:01 -08:00
dotCooCoo 1930ef33dd Set Corners: typed values reach the preview
The Set Corners dialog did not bind its values to the host fields that
the preview reads, so after typing a radius of 7 and a lower angle of
120 the host fields still held 10 and 0. The dialog now binds its
values with Bind::bound(fields), as the Arrange dialogs do.
2026-11-28 21:01:35 -08:00
.CooCoo 7a8866e036 Merge pull request #9251 from dotCooCoo/feat/scripts-app-undo-redo
Scripts: app.undo and app.redo step through the run's own edits
2026-11-28 20:55:35 -08:00
dotCooCoo a3ccd60b5b Script check: a script whose only finding is unsure names is scanned once
A script without includes whose declarations give names values the analysis
does not read came back from its first scan with `Known::unsure` set and no
names. `settle` counted that as something known and scanned the script again,
which found the same and doubled the scan's steps. The proptest
`any_bytes_are_checked_in_linear_work` shrank one such input to 104 bytes that
took 550 steps, over its bound of 536.

`settle` now keeps the first scan when it found no bound names and no File
objects: the flag comes from the script's own declarations, which the first
scan already read.
2026-11-28 20:55:33 -08:00
dotCooCoo 967f83c442 Merge main into fix/scriptcheck-linear-work 2026-11-28 20:50:15 -08:00
dotCooCoo 30d22d07c8 Scripts: the checker scans a script that binds no name once
A script whose only finding about its variables was that a name in
brackets is not one literal (o[k]) was scanned a second time. That
finding comes from the names the script declares, which the first scan
has already read, so the second scan gave the same report and added up
to three steps a byte. A 104-byte input of single-character tokens took
550 steps against the 536 the property test allows.

The check now repeats a scan only when a variable holds a member chain
or a File or Folder object. The property tests take their bound from
the number of scans: five steps a byte for a script scanned once, and
seventeen for one scanned up to five times.
2026-11-28 20:50:13 -08:00
dotCooCoo d81c6f85ba Merge main into fix/speed-i13929-dimmed-rows 2026-11-28 20:49:48 -08:00
dotCooCoo cb75bb73fc Merge main into feat/scripts-app-undo-redo
# Conflicts:
#	crates/engine/src/cmd/scripts.rs
2026-11-28 20:45:40 -08:00
.CooCoo 2255484d45 Merge pull request #9132 from dotCooCoo/feat/js-es2015-modules
JavaScript: a .mjs script runs as an ECMAScript 2015 module
2026-11-28 20:44:58 -08:00
dotCooCoo cac93ca107 Merge main into feat/js-es2015-modules 2026-11-28 20:44:06 -08:00
.CooCoo eaad35e231 Merge pull request #9108 from dotCooCoo/feat/plugin-api-localized-labels
Plug-ins: names and labels show in the UI language from the manifest's translations
2026-11-28 20:41:55 -08:00
.CooCoo 197ffe8a78 Merge pull request #10037 from dotCooCoo/fix/stroke-panel-label-column
Stroke: the panel's rows share one label column, so their controls start at one x
2026-11-28 20:37:42 -08:00
.CooCoo 95cecd4881 Merge pull request #10038 from dotCooCoo/fix/undo-row-names-action
Menus: Edit › Undo and Redo name the step in the menu bar and the context menu
2026-11-28 20:37:27 -08:00
dotCooCoo bcb4ab729a Merge main into fix/save-options-radio-rows 2026-11-28 20:11:35 -08:00
dotCooCoo 8b30502be9 Save options: All/Range and Transparent/Opaque radios have no empty caption over them
The All and Range radios under the artboard check box of the .ai,
VectorCraft and EPS save options, and EPS's Transparent and Opaque
radios, were radio rows with an empty name, which the form draws as an
empty caption: a blank band about one row tall above the radios. Both
rows now use stacked options, so the radios follow the row above them.
The Transparent/Opaque row carries the option's label as the group's
accessible name.
2026-11-28 20:11:28 -08:00
dotCooCoo 5a8f56dc4e Merge main into feat/hairline-slivers 2026-11-28 20:07:16 -08:00
dotCooCoo aa5f1bdca1 Clean Up: Hairline Slivers leaves art at 0% opacity alone
A sliver at 0% opacity, or inside a group or layer at 0% opacity, paints
nothing, so Clean Up and Select > Object > Hairline Slivers now skip it.
The params text and docs/mcp.md say so, and docs/mcp.md also names what a
group or compound path used as a clipping path holds among the objects
both commands leave.
2026-11-28 20:07:16 -08:00
.CooCoo 9393a36007 Merge pull request #8894 from dotCooCoo/fix/swatch-drag-replaced-source
Swatches: a swatch replaced during a drag is not duplicated or deleted on drop
2026-11-28 20:06:13 -08:00
.CooCoo 70e3cc7e02 Merge pull request #8824 from dotCooCoo/fix/issue-1232
Live Corners: pick any corner widget with Direct Selection
2026-11-28 20:05:41 -08:00
dotCooCoo a3334bce1d Merge main into fix/speed-i13854-menu-rebuilds 2026-11-28 20:05:20 -08:00
dotCooCoo 9ed6cba61a Menus: a key press rebuilds the menu states once
The menus' state key took the pass number of a frame with a click or a
key press, and no number on other frames. The key therefore changed on
the frame after a press and again on the frame after that, and each
change built every row's state again: two rebuilds for one key press.

The key now keeps the pass of the last frame with a pointer button
pressed or released or a key pressed, so each of them changes it once.
A pointer release counts because a click ends there.

Test: menus::tests::a_key_press_rebuilds_the_menus_once counts the
rebuilds over a key press and the four frames after it: 1, and 2
without the change.
2026-11-28 20:05:20 -08:00
dotCooCoo 728da50e7b Merge main into fix/swatch-drag-replaced-source 2026-11-28 20:04:11 -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 45fc9cf55c Merge main into fix/speed-i13930-global-edit-preview 2026-11-28 20:03:00 -08:00