Commit Graph
12000 Commits
Author SHA1 Message Date
dotCooCoo ce596d4f57 Arrange Tools: Mark Bounds of Each draws no empty group for an object too small for corner legs
Each corner leg is at most half the side it runs along. An object wider or
taller than the flat limit but with both half-sides under it got a Corner Marks
group with no paths in it. Such an object now gets no corner marks, and a
selection of only such objects is refused with "nothing to mark: the selection
is too small for corner marks" and no undo step. The Rectangle style still
marks it.

Follows up #10148.
2026-12-01 09:47:43 -08:00
.CooCoo 7936fd6f67 Merge pull request #10153 from dotCooCoo/fix/file-new-rejects-bad-rows
New Document: file.new refuses artboard counts that are not whole numbers
2026-12-01 09:47:36 -08:00
.CooCoo d2b21eee81 Merge pull request #10145 from dotCooCoo/fix/placement-options-keeps-links
Links: Placement Options applies to the images it opened on
2026-12-01 09:47:28 -08:00
.CooCoo 9a9cdbcf33 Merge pull request #10140 from dotCooCoo/feat/symbol-drop-keeps-art
Symbols: art dropped on a symbol with Alt+Shift redefines it and stays as it was
2026-12-01 09:47:19 -08:00
.CooCoo fd24af05d7 Merge pull request #10118 from dotCooCoo/fix/layer-options-key
MCP: dialog params texts name the keys ui.inspect reports
2026-12-01 09:47:10 -08:00
dotCooCoo c2cf867f1d Type: Make Numbers Sequence leaves locked type and masks alone and replaces signed numbers
Locked or hidden type inside a selected group is no longer numbered or
deleted, and removeUnused keeps a type object that masks a clipping group
or layer and keeps the selection instead of selecting the numbered objects.
In Numbers mode a minus sign that does not follow a letter is part of the
number, and a number or placeholder that already reads the new number keeps
its text and style. Rows and columns are found among the objects that get a
number, with the true median for an even count. A run that would replace
more than 10,000 numbers or placeholders is refused before any text is
built, and a seed that is not a whole number is refused even with shuffle
off. ui.menuDialog lists the dialog, and the progress doc has its line.
2026-12-01 09:46:40 -08:00
dotCooCoo f01f2ce6c0 Fix #10463: $.evalFile reads File URI paths
File.parent gives a folder in URI notation (/c/Users/..., with %20 for a
space). $.evalFile joined that text to the script's folder as written, so
on Windows $.evalFile(File($.fileName).parent + '/more.jsx') looked under
C:\c\Users\... and reported "include file not found".

When an absolute path starting with one / names no file the script may
read, $.evalFile now also tries it with its escapes decoded and, on
Windows, with /c/... as the drive C:. The path as written is still tried
first, and the scope check, the .. refusal and the file limits apply to
every form. Share and device paths are not converted, and #include lines
are read as before.
2026-12-01 09:30:34 -08:00
Ruchir 68a104ba8f Add item context menus to resource library panels 2026-12-01 23:00:18 +05:30
dotCooCoo 66c01445d5 Pathfinder: Divide and Live Paint report paths too complex to map
When the planar map is skipped because the paths have too many pieces
(SHAPE_BUILDER_MAX_MAP_EDGES, added in 7a46d5ec56), too many segments
or exceed the sweep's work budget, Divide with open paths fell back to
the filled areas. It replaced the selection with the uncut shapes and
deleted the cutting paths without saying so. Live Paint built no faces:
Make reported the paths as too degenerate to paint, and with Gap
Detection a group could get its edges and no faces.

pathops now has try_pathfinder_with, try_live_paint and
try_live_paint_with_gaps, which return TooManyPieces in those cases
without sweeping the filled areas. Divide, Live Paint Make, Merge and
Gap Options use them and stop with an error that leaves the art
unchanged. The caps, and the fallbacks of pathfinder_with, live_paint,
live_paint_with_gaps and the Shape Builder, are unchanged.

When a Gap Options preview fails after one that found gaps, the dialog
no longer keeps drawing the earlier preview's gaps over the groups the
failure put back.

Docs: docs/mcp.md, the commands' params text and the Divide line in
docs/target-app-parity.md.
2026-12-01 09:29:56 -08:00
dotCooCoo 981889ccfb Merge main into feat/scripts-layer-text-frames 2026-12-01 09:11:51 -08:00
dotCooCoo b3c1a31cfa JavaScript: proxy checks follow GetFunctionRealm, subclass order and for-in sources
- A non-object `prototype` on `new.target` walks its bound and proxy chain
  (GetFunctionRealm), so a get trap that revokes the proxy throws a
  TypeError instead of running the constructor.
- A subclassable built-in such as Number no longer unwraps a revoked
  `new.target` before its own argument conversion runs.
- for-in records how many proxies came before the object that first listed
  each name, and the recheck does not ask those proxies for a descriptor, so
  a proxy that did not list a name cannot hide an inherited enumerable one.
- Names from an ownKeys trap take fuel for their code units, and so do the
  names the ownKeys invariant check hashes.
- The DataView argument test expects TypeError for a non-buffer and
  RangeError for a bad offset or length.
2026-12-01 09:06:27 -08:00
dotCooCoo 094adcad4d Merge main into feat/artboard-flood-fill 2026-12-01 09:04:42 -08:00
dotCooCoo b0dff71845 Merge main into feat/scripts-api-d3-layers-artboards 2026-12-01 09:03:42 -08:00
dotCooCoo 5f0b0456d2 Merge main into feat/scripts-text-paint 2026-12-01 09:01:23 -08:00
dotCooCoo 6de89eece9 Merge main into feat/scripts-api-d8b-tracing 2026-12-01 09:00:59 -08:00
dotCooCoo 5530339d99 Merge main into feat/scripts-pageitem-transforms 2026-12-01 09:00:46 -08:00
dotCooCoo 98a89b0600 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-01 08:47:36 -08:00
dotCooCoo 4bb499bb97 Merge main into feat/scripts-api-d1b-prefs-matrix-clipboard 2026-12-01 08:46:33 -08:00
dotCooCoo 602d2142e4 Merge main into chore/test-lint-rules 2026-12-01 07:41:47 -08:00
BFlat 7b5b960f33 Merge pull request #10456 from ruchirguitar/preflight-finding-menu
Preflight: add finding row context menus
2026-12-01 22:40:58 +07:00
BFlat 280dce86c5 Merge pull request #10438 from ruchirguitar/fix/9022-create-outlines-context-menu
Canvas: offer Create Outlines for selected text
2026-12-01 22:21:13 +07:00
dotCooCoo 9aa8eb3413 Merge main into fix/offset-objects-pixel-snap-gap 2026-12-01 07:18:49 -08:00
dotCooCoo 5c907ae60f Vector Halftone: Grid Dots styles use the cell-clipped Circle dot
The Circle dot now stays in its cell and fills it at 100%, which is the
look the Grid Dots styles need, so gridDots and gridDotsAngle use circle
at 0 and 45 degrees and the separate Cell Dot shape is removed. The
dialog's OK and preview leave out the hidden Shape and Angle while a
named style is picked, so the style's own shape and angle apply.
2026-12-01 06:54:15 -08:00
dotCooCoo 219ea91984 Merge main into fix/make-numbers-sequence 2026-12-01 06:52:28 -08:00
ruchirguitar d61d946a3d Color Themes: add a context menu to saved theme rows 2026-12-01 19:59:47 +05:30
dotCooCoo a992850228 Merge main into feat/color-randomly
# Conflicts:
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/menus/ui_commands.rs
2026-12-01 06:26:48 -08:00
dotCooCoo 8ba55104f0 Merge main into feat/group-rows
# Conflicts:
#	crates/engine/src/cmd/plugin_call/reviewed.rs
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/addons/arrange.rs
#	crates/ui-egui/src/menus/ui_commands.rs
#	docs/mcp.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-12-01 06:20:46 -08:00
.CooCoo 4e6cc52aea Merge pull request #10332 from dotCooCoo/fix/script-page-item-edits
Scripts: locked artboards stop path edits, and move and zOrder respect clipping paths
2026-12-01 06:19:21 -08:00
.CooCoo 83b2c22b78 Merge pull request #10148 from dotCooCoo/feat/corner-marks
Arrange Tools: Mark Bounds of Each draws corner marks or a rectangle on each selected object's bounds
2026-12-01 06:18:27 -08:00
Ruchir 8a73135d7f Preflight: add finding row context menus 2026-12-01 19:39:01 +05:30
dotCooCoo 926959780c Merge main into fix/halftone-grid-styles 2026-12-01 06:02:50 -08:00
dotCooCoo a6a0f3361f Vector Halftone: add Grid, Grid Angle, Grid Dots and Grid Dots Angle styles
A new `style` parameter on object.vectorHalftone and the live effect sets
the dot shape and screen angle: grid is Euclidean at 0 degrees, gridAngle
Euclidean at 45, gridDots and gridDotsAngle a new Cell Dot shape at 0 and
45. A shape or angle given with a style wins in the command, and an
unknown style is refused. The dialog adds a Style choice and hides Shape
and Angle while a named style is picked.

The Cell Dot shape is round until it touches its cell's sides, then is cut
flat by them, so the cell is solid at 100%. The Circle shape is unchanged.
2026-12-01 06:02:49 -08:00
Ruchir a8731bf8ed Canvas: offer Create Outlines for text inside selected groups 2026-12-01 19:31:48 +05:30
e28faa0a94 Color Halftone: draw dark dots on light tones (#10316)
* fix(effects): draw dark dots in RGB Color Halftone

(cherry picked from commit 2dbe91af9f)

* Cover dark-on-light RGB halftone polarity

Updated halftone tests to clarify behavior regarding pixel brightness and dot sizes.

(cherry picked from commit babd60e332)

* effects: bound Color Halftone dots at full coverage

(cherry picked from commit 8fb0bf55607762df6e3acc2ed7ed37a643fea022)

* effects: describe Color Halftone ink coverage

(cherry picked from commit 0dbf12514095b6e12cb4414055d8ac47ee1fbcdc)

* Document the change to saved RGB halftones

* Test the bounded edge overlap of full halftone dots

---------

Co-authored-by: Mex <[email protected]>
Co-authored-by: dotCooCoo <[email protected]>
2026-12-01 14:17:04 +01:00
dotCooCoo 87ef847f14 Merge main into feat/scripts-text-paint 2026-12-01 04:42:44 -08:00
dotCooCoo 2c753edc01 Merge main into feat/scripts-layer-text-frames 2026-12-01 04:40:47 -08:00
dotCooCoo 7dbb0036d7 Merge main into feat/artboard-flood-fill 2026-12-01 03:50:33 -08:00
dotCooCoo 3705c2be90 Type Tools: Make Numbers Sequence numbers the selected type objects
Object > Plug-ins > Type Tools > Make Numbers Sequence... and the
addon.type.numbers command fill the selected type objects with numbers
from a start value by a step, optionally stopping at an end value. Each
number replaces the whole text, every number in it, or every {%n}
placeholder. Objects are taken in stacking order, by rows or by columns,
or in a seeded random order, with optional leading and trailing zeros.
The run is one undo step, records none when nothing changes, and refuses
threaded type and bad parameters.

Based on Sergey Osokin's MIT-licensed MakeNumbersSequence script.
2026-12-01 03:40:31 -08:00
dotCooCoo 6d460049fd Merge main into chore/test-lint-rules 2026-12-01 03:32:17 -08:00
dotCooCoo 6a4734337b Step and Repeat: a single cell that changes nothing adds no undo step, and fill accepts an exact fit
- A single cell that neither moves nor groups the artwork and leaves the
  selection unchanged returns without an edit, so Undo and Redo stay as
  they were. Every other single cell (a compound member, some anchors
  or a layer target selected) still selects the result in one undo step.
- With pixel-aligned objects, fill compares the placed edge with the
  sheet edge, so a sheet that fits exactly is no longer rejected because
  of float roundoff, and a first cell never starts outside the sheet.
2026-12-01 03:18:10 -08:00
dotCooCoo f2f0af5ab0 Document Tools: Flood Fill Artboards records Active Artboard as a relative target
With Active Artboard picked, the dialog sent an explicit artboards list, so a
recorded action filled the artboard that was active while recording, or failed
in a document with fewer artboards. The dialog now sends activeArtboard, which
the preview and journal keep and recorded actions leave out, so playback fills
the artboard active then.
2026-12-01 03:02:35 -08:00
dotCooCoo a0c0bce325 Merge main into feat/scripts-api-d8-placed-raster 2026-12-01 02:55:47 -08:00
dotCooCoo 1612fa7047 Merge main into feat/scripts-api-d8b-tracing 2026-12-01 02:46:12 -08:00
dotCooCoo edcad3c183 Tests: test-lint judges negations, cfg escapes and module declarations exactly
- census keeps the polarity of a negation: `!parse(x).is_ok()` is a
  rejection, while `!xs.is_empty()` stays a presence check.
- reads-source looks at the last path literal of a read_to_string
  argument, so `root.join("fixtures.rs").join("input.json")` is not a hit.
- never-run reads an escaped cfg string value as unknown, takes every
  `mod` declaration of a module (`#[cfg(windows)]` and `#[cfg(unix)]`
  both count), and ties a change to an attribute only when that
  attribute excludes a CI target.
- exact-pixel does not count a coordinate passed to a function.
- docs/development.md says when never-run can decide a cfg.
2026-12-01 02:39:39 -08:00
dd1f4d2936 Tools: add search beside Edit Toolbar (#8770)
* Tools: add search beside Edit Toolbar

Open the existing tool-aware command palette from the Tools footer, preserving the customization button and fitting both column layouts.

Closes #8758.

* Format the toolbar Search interaction regressions

* Format the native Search tooltip expectation

* Use the current stroke paint API in Properties

* Scope app-bar test lookups to the title bar

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-01 11:34:49 +01:00
dotCooCoo ec4a813fa3 Scripts: stale placed items are refused as relative objects; exact image matrix checks
- move() and duplicate() resolve a page-item relative object, an add()
  result included, through item_of, so a PlacedItem object made stale by
  embed() throws "Stale page item" instead of acting as a target.
- Assigning matrix compares each requested coefficient exactly with the
  value the getter reports. A coefficient left as reported keeps the
  image's own value, so a change of 5e-10 still moves the image and an
  untouched axis does not shift. A move alone is applied as an offset.
  A matrix that a nearly singular image cannot reach within 1e-6 pt at
  its corners, or that would leave it with no area, throws an error with
  nothing changed, and a change that rounds away runs no command.
- The RasterItem.embedded test calls the getter itself on 1 and on a
  live raster item.
- docs/mcp.md states when assigning matrix runs no command and when it
  is refused.
2026-12-01 02:32:07 -08:00
dotCooCoo 5e309268d7 Document Tools: Flood Fill Artboards' dialog is refused while its command is off
ui.menuDialog opened the Flood Fill Artboards dialog with no document or in an
editing mode the command refuses, and OK then failed. The dialog now checks the
command first and returns its reason. A reopened dialog also rolled back the open
preview only after reading the current fill, so with New Art Has Basic Appearance
off it opened on the previewed fill instead of the fill from before; it now rolls
the preview back first. The params text and docs/mcp.md say when it is refused.
2026-12-01 02:24:30 -08:00
dotCooCoo 8a0b4f880d Merge main into fix/classic-tool-icons 2026-12-01 02:22:42 -08:00
Ruchir 64846b2274 Canvas: offer Create Outlines for selected text 2026-12-01 15:48:58 +05:30
dotCooCoo 99bea87cff Merge main into feat/scripts-api-d8b-tracing 2026-12-01 02:16:37 -08:00