Commit Graph
23428 Commits
Author SHA1 Message Date
dotCooCoo b57a4ff927 Document Tools: Flood Fill Artboards keeps an RGB current fill in a CMYK document
Two fixes for review threads on this pull request.

The dialog sent an RGB current fill's working components without
keepModel, so in a CMYK document the engine converted the fill to CMYK.
While the shown color is left unchanged, the dialog now also sends
keepModel: true. An edited color converts to the document's model as
before.

With New Art Has Basic Appearance off and nothing selected, a preview
that drew new art took its new-art paints from that art, and the next
preview then put back the paints the interaction began with. A second
rectangle preview after a fill preview was drawn with the starting fill
instead of the previewed one. The interaction now keeps the paints from
before the inheritance and the next preview starts from them. A fill
chosen during the drag updates them too. After a failed preview, a
cancel or a commit puts back the paints the interaction began with.
2026-11-30 06:20:07 -08:00
dotCooCoo 07dffc15fd Document Tools: Flood Fill Artboards keeps an out-of-sRGB RGB fill when Color is picked
The dialog shows the current fill as a display sRGB color, clamped to
the sRGB range, and converted that shown color back to working RGB when
Color was picked. In a working RGB space wider than sRGB, a saturated
fill did not convert back to itself. While the shown color is left
unchanged, the dialog now sends an RGB current fill's own working
components. Non-RGB fills and edited colors convert as before.
2026-11-30 03:38:14 -08:00
dotCooCoo 07ab97addc Document Tools: Flood Fill Artboards checks params on replay and keeps the defaults on Cancel
- Params that are not an object or null are an error on journal and
  action replay as well as in a batch.
- A call without `artboards` or `all` records the artboard it filled as
  `activeArtboard` for a journal replay; a recorded action leaves it out,
  so playing the action fills the artboard active then.
- The command is disabled when the document has no artboards.
- Canceling a Flood Fill preview puts back the new-art paints it began
  with instead of taking them from the selection.
2026-11-29 18:27:30 -08:00
dotCooCoo 9d3d9bde76 Document Tools: Flood Fill Artboards takes keepModel
- `keepModel: true` keeps an explicit RGB color in RGB in a CMYK
  document, as paint.setFill does; it is declared in the params text,
  docs/mcp.md and ROADMAP.
- A `keepModel` of null or another non-boolean is an error, and nothing
  is edited.
2026-11-29 17:26:32 -08:00
dotCooCoo d2c2f66940 Document Tools: Flood Fill Artboards respects isolation, color model and template layers
- The command is disabled, and refused, while a group is isolated.
- A chosen color goes into the document's color model as paint.setFill
  puts it, so a CMYK document gets a CMYK fill unless keepModel is set.
- Rectangles added to a template layer are not selected, as on a locked
  or hidden layer.
2026-11-29 16:19:09 -08:00
dotCooCoo cd4253e52c Document Tools: Flood Fill Artboards refuses editing modes and bad params
- Flood Fill Artboards is disabled, and refused, while a symbol or a
  pattern is edited, so the rectangles never land in a definition.
- Params that are not an object or null are refused, also when an
  action.batch step is checked before it runs.
- The dialog keeps OK off, with a reason, when Current Fill is chosen
  and there is no current fill.
- With New Art Has Basic Appearance off and nothing selected, a paint
  preview that is replaced or canceled puts back the starting paints,
  so two paint.swap previews commit one swap, while a preview that
  takes its paints from new art it selected is tracked on its own.
2026-11-29 15:44:00 -08:00
dotCooCoo 6148b9aefd Document Tools: Flood Fill Artboards keeps its dialog open for a clipping layer
- The dialog's OK button stays off, with a reason, when the layer name
  matches a top-level layer that holds a clipping mask, which the
  command refuses.
- A batch step takes the live fill, so paint.setFill followed by Flood
  Fill Artboards in one command.batch uses the new fill.
- The OK check counts at most 255 characters after trimming, the same
  limit the command applies.
2026-11-29 14:29:54 -08:00
dotCooCoo 1e31f9b94c Document Tools: Flood Fill Artboards refuses infinite colors and keeps the fill on Cancel
- A color component too large for f32 (c: 1e308, [1e39, 0, 0], gray or
  Lab out of range) read as infinite and reached the rectangles; the
  command now refuses it with "bad color".
- The dialog's Color option opened on the current fill in display sRGB
  and sent it as working RGB, so a document whose working RGB space is
  not sRGB got a shifted color. The dialog now opens on the fill's
  display color and converts the picked color back to working RGB.
- With New Art Has Basic Appearance off and nothing selected, a
  previewed color gave the new rectangles' fill to the new-art paints,
  and Cancel or a replaced preview kept it. Both now put back the paints
  the interaction began with.

Docs: docs/mcp.md.
2026-11-29 10:45:42 -08:00
dotCooCoo 54a6a92878 Document Tools: Flood Fill Artboards adds an artboard-sized rectangle on its own layer
Object > Plug-ins > Document Tools > Flood Fill Artboards... opens a dialog
that previews on the canvas and, on OK, runs the new command
addon.document.floodFillArtboards as one undo step. The command adds an
editable rectangle exactly the size of the active artboard, of listed
artboards or of every artboard, painted with the current fill or a given
color and no stroke. The rectangles go on top of a top-level layer named
"Flood Fill" (or the name given), which is made at the bottom of the
layers when the document has none. A layer that already exists keeps its
lock and visibility, and the current layer stays as it was.

Every given value is checked: null, wrong types, an empty or too long
layer name, a color with alpha, unknown artboards, and artboards together
with all are errors. A current fill of None without a color is an error.
In a preview, the current fill is the one the preview began with.

Docs: docs/mcp.md, ROADMAP.
2026-11-29 04:09:45 -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