Commit Graph
12000 Commits
Author SHA1 Message Date
dotCooCoo d22384d6ba Scripts: release a mask whose clipping path is deleted, charge controlBounds
- remove(), any collection's removeAll() and the document's
  pageItems.removeAll() release the mask of a clip group or clipping
  layer whose clipping path they delete, in the same undo step, so the
  object above it does not become the clipping path. A deletion that
  leaves the clipping path keeps the mask.
- move(group, PLACEATEND) on a clip group's own clipping path leaves it
  where it is; INSIDE and PLACEATBEGINNING still throw node.move's error.
- controlBounds charges each object and anchor it visits against the
  data a run may pass.
- The scoped removeAll() test catches the locked-artboard error inside
  the script and checks that art on an unlocked artboard is still there.
- A test checks that a layer, page item or artboard handle from before
  app.undo() does not name an object added afterwards.

Docs: docs/mcp.md (artboards.insert runs artboard.reorder only when the
index differs from the new artboard's).
2026-12-01 20:38:12 -08:00
dotCooCoo b354c29de0 Type: Make Numbers Sequence keeps a seeded order and its doc line names skipped objects
A new test runs the same eight objects with seed 11, an end and
removeUnused in two fresh sessions and checks that each object gets the
same number and the same objects are removed. The progress doc line says
that in numbers and placeholder modes objects without a match are
skipped before ordering, so they take no number and are never deleted,
and that only a run that changes the document makes an undo step.
2026-12-01 20:31:43 -08:00
dotCooCoo 02077bb5a3 Merge main into feat/js-object-set-prototype-of 2026-12-01 20:25:00 -08:00
dotCooCoo 18b8e71086 Docs: the ownKeys invariant check charges code units only for names it looks up
For an extensible target whose own properties are all configurable, the
check reads each property's descriptor for one unit of fuel and returns
before it looks any name up, so it does not charge for code units. The
paragraph in docs/mcp.md now says which part of the check charges per key
and which part charges per code unit.
2026-12-01 20:25:00 -08:00
dotCooCoo 7ee38e71d0 Merge main into feat/scripts-layer-text-frames 2026-12-01 20:01:47 -08:00
dotCooCoo f2d6ea0c51 Merge main into fix/make-numbers-sequence 2026-12-01 20:00:19 -08:00
dotCooCoo d1c255fa64 xtask: test-lint never-run lists tests that build on macOS or Windows without failing
never-run failed the check on tests of macOS- or Windows-only code, such
as the touchpad gesture tests in quickpenwheel.rs and the Windows
performance counter tests in vectorcraft-cli's perf.rs. CI cannot build
them on Linux, and they run locally on their platform.

A never-run hit on a test that still builds on macOS (aarch64 or x86_64)
or Windows (x86_64 or aarch64) is now listed with the report-only rules,
and its note says which platform to run it on. A test that no desktop
target builds, such as one gated on target_os = "ios" or
all(windows, unix), still fails the check.
2026-12-01 19:54:14 -08:00
ruchirguitar 98680afa91 Separations Preview: add a context menu to ink plate rows 2026-12-02 09:12:31 +05:30
dotCooCoo 6e6a9a6d2f Merge main into fix/craft-fonts-pin-main 2026-12-01 19:29:33 -08:00
ruchirguitar 3e67818f4a Artwork Cleanup: offer actions on scan results 2026-12-02 08:28:41 +05:30
.CooCoo 3860a8025c Merge pull request #10502 from dotCooCoo/fix/common-tangents-metaball
Path Precision Tools: Common Tangents and Smooth Bridge are one dialog
2026-12-01 18:28:19 -08:00
dotCooCoo 1c1dae2234 Merge main into fix/ui-egui-outside-panels-tests 2026-12-01 17:39:54 -08:00
dotCooCoo 38debaa67e Tests: ui-egui tests outside the panels check counts and waits
- Artboard frame tests assert how many frames are drawn before checking
  each one, so a canvas that draws no frames fails them.
- Find Font's refresh test checks the document's one family and the one
  row it shows instead of checking every row of a list that may be empty.
- The freeform paint chip test also checks an opaque point and the chip's
  size, and the holographic test checks the foil chip's size.
- The background wait tests (Quit, packaging and export made at once)
  open the writer's gate when the UI thread starts waiting, through a
  test-only hook in background::wait_until, instead of after a sleep.
  Each asserts that the wait happened.
- Cancel Open waits for the file to be read before Cancel instead of
  sleeping after it.
- The automation roots test checks that the open keeps the same roots.
- The brightness test reads the saved ids and old labels in place of a
  round trip through its own table.
- Removed every_tool_cursors_hotspot_lies_inside_its_icon_box, which
  every_tool_cursors_hotspot_is_on_its_glyph covers, and
  message_dump_lists_the_reported_messages and the schema phrase loop,
  which held by construction.
- dump_source_strings is ignored with a reason; the translator commands
  in docs/development.md pass --ignored.
2026-12-01 17:39:41 -08:00
.CooCoo 44522e9b7e Merge pull request #10506 from dotCooCoo/fix/include-bleed-native-files
Export for Screens: Include Bleed files of an artboard hold the bleed once
2026-12-01 17:32:13 -08:00
FredApps c3d4cd7444 Merge branch 'main' into feat/arabic-language-support 2026-12-02 01:08:16 +01:00
FredApps 559a2205d5 Merge branch 'main' into svg/export-length-unit 2026-12-02 00:35:06 +01:00
.CooCoo 3852fa4afb Merge pull request #10484 from dotCooCoo/fix/pathops-cap-reports
Pathfinder: Divide and Live Paint report paths too complex to map
2026-12-01 15:33:36 -08:00
FredApps 5a4a558f5c Merge branch 'main' into svg/export-length-unit 2026-12-02 00:29:33 +01:00
dotCooCoo 7f10f7aa96 Merge main into feat/scripts-export-autocad 2026-12-01 15:10:18 -08:00
dotCooCoo 9cff79a9ec Merge main into feat/scripts-api-d3-layers-artboards 2026-12-01 15:07:13 -08:00
dotCooCoo c012eb8ee9 Merge main into feat/scripts-pageitem-transforms 2026-12-01 15:00:42 -08:00
dotCooCoo 856d1a3870 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-01 14:59:55 -08:00
.CooCoo aa557da659 Merge pull request #8808 from dotCooCoo/feat/quick-pen-scroll-arc
Quick Pen: Ctrl+wheel over the canvas changes the arc size
2026-12-01 14:57:33 -08:00
dotCooCoo 7abdcad40e Merge main into feat/scripts-text-paint 2026-12-01 14:57:03 -08:00
dotCooCoo bb9a4463ee Merge main into fix/include-bleed-native-files 2026-12-01 14:38:42 -08:00
dotCooCoo 86a5efd04c Export for Screens: Include Bleed files of an artboard hold the bleed once
With Include Bleed, a .vectorcraft, .ai or EPS row wrote the artboard
already grown by the document's bleed and kept the document's bleed as
well. Opened again, the file had the bleed outside the grown artboard, so
a PDF with the document's bleed came out with it twice: a 3 mm bleed made
a 6 mm one.

These files now hold the grown artboard with a bleed of 0. PDF rows and
Full Document files are unchanged. The params text and docs/mcp.md say so.
2026-12-01 14:38:27 -08:00
dotCooCoo 44c5c4ccd9 Scripts: insert returns nothing, stale collections fail toString, charges and reports fixed
- `artboards.insert` returns nothing, as the scripting reference says; `add`
  still returns the new artboard.
- `toString` of `Layers`, `GroupItems`, `CompoundPathItems` and `Artboards`
  checks the collection as `typename` does, so a collection whose container
  is gone throws instead of stringifying.
- The collections' `index` is described as returning their element class,
  with an `itemKey` of any type. `PageItems.parent` and `PathItems.parent`
  are described as any type, since scoped collections return a layer or
  group.
- `hasSelectedArtwork` charges the selection and every node of the layer it
  looks at to the script budget, also when it runs no command.
- A document made during the run whose active artboard the run chose is
  reported when an artboard inserted before it moves it.
- Tests: a test-only counter of built art lists bounds the group loop test,
  and the rejected-parameter checks of `object.newGroup` compare the whole
  layer tree.
2026-12-01 14:18:46 -08:00
dotCooCoo 67ae8f8e58 Merge main into fix/common-tangents-metaball 2026-12-01 14:18:44 -08:00
dotCooCoo be98c65ae7 Merge main into feat/scripts-layer-text-frames 2026-12-01 14:17:36 -08:00
dotCooCoo 9c26334a4a Vector Halftone: unknown styles keep Shape and Angle; refuse a non-string style
The dialog hides Shape and Angle, and leaves them out of the command,
only for a style that names a preset. Custom, no style and a style this
build does not know keep the stored Shape and Angle on screen, since the
renderer uses them. object.vectorHalftone refuses a null or non-string
style; Custom applies only when the key is left out. The shape docs now
say that partial-tone circle, ellipse and diamond dots stay inside their
cell, sized to keep the tone's coverage.
2026-12-01 14:12:51 -08:00
dotCooCoo 40b27cd756 Merge main into feat/scripts-api-d1b-prefs-matrix-clipboard 2026-12-01 14:07:47 -08:00
dotCooCoo a7129f3eed Merge main into feat/scripts-api-d8b-tracing 2026-12-01 14:07:15 -08:00
dotCooCoo 85a46c0e7d Merge main into feat/scripts-api-d8-placed-raster 2026-12-01 14:07:03 -08:00
.CooCoo 0667ef8644 Merge pull request #10421 from dotCooCoo/chore/test-lint-rules
xtask: test-lint reports mirror, constant-echo, fixture-only, never-run and exact-pixel tests
2026-12-01 14:01:51 -08:00
dotCooCoo 9bf07c220e Merge main into fix/script-new-document-overprint-links 2026-12-01 13:53:12 -08:00
dotCooCoo 1b7cde01de Vector Halftone: full-tone dots fill the cell; Style picker shows any stored case
A dot at full tone is now the cell's exact square for every shape but
Line, which keeps its overlap along the row. Before, a full-tone Diamond
or Grid Dots dot was built from its clipped shape, leaving near-duplicate
corner anchors and small gaps between cells.

The live effect's dialog and the Appearance panel's inline editor spell a
stored style such as GRIDDOTS or CUSTOM as the picker's id, so the picker
shows it selected while its choice ids stay the ones the dialog accepts.
2026-12-01 13:40:15 -08:00
dotCooCoo 483bf2363d Scripts: invertMatrix decides overflow from the exact quotient
The determinant and the translation numerators are rounded before the
division, so a value whose exact quotient is below the overflow midpoint
could round to infinity and throw a RangeError, and one at or past it could
come out finite. When the rounded quotient overflows or lies within eight
steps of Number.MAX_VALUE, the exact quotient is now compared with the
midpoint between Number.MAX_VALUE and 2^1024 from exact product parts. An
infinite rounded quotient below it is replaced by the number the exact
quotient rounds to.
2026-12-01 13:25:11 -08:00
dotCooCoo 6230cf282a Merge main into fix/common-tangents-metaball 2026-12-01 13:17:02 -08:00
dotCooCoo 813ef9b3e7 Merge main into fix/pathops-cap-reports 2026-12-01 13:16:59 -08:00
dotCooCoo 5ad69e554a Scripts: fix stale index, clip mask moves, removeAll masks and active artboard
- A stale layer or group collection throws its stale error from index(n)
  for any number, a negative one included, instead of Not found.
- Moving a clipping path directly below the object above it is a no-op
  instead of throwing "an object cannot go below a clipping mask".
- A clip group's removeAll() that deletes every object in it also
  releases the mask in the same undo step, so a later groupItems.add()
  is not made the clipping path. groupItems.removeAll() that leaves the
  clipping path keeps the mask.
- setActiveArtboardIndex stores the chosen artboard on every call, so an
  artboard inserted before the default active one leaves it active, and
  a document the run opened is listed in the report.

Docs: docs/mcp.md.
2026-12-01 13:15:38 -08:00
.CooCoo a5a3e40c5e Merge pull request #9087 from dotCooCoo/feat/scripts-print-printer
Scripts: Document.print prints to an installed printer and app.printerList lists the printers
2026-12-01 13:11:17 -08:00
dotCooCoo d9d9354ec7 Scripts: moving an image cannot make a tracing; counts do only their work
- move() and duplicate() refuse to put an image at the bottom of an
  ordinary group named Image Trace, before the document changes, as
  renaming such a group already does. A tracing's source image moved
  out keeps its own error.
- pathCount and usedColorCount no longer walk the anchor points, and
  anchorCount charges each path inside a compound path it reads.
- The run keeps the reverse of its replacement map, so finding the
  first object of a chain no longer scans the whole map at each step.
- docs: the source image of a traced item is left out of pageItems,
  placedItems and rasterItems and is reached through
  PluginItem.tracing.sourceArt; docs/mcp.md lists the new error.
2026-12-01 13:09:41 -08:00
dotCooCoo ba45b5d5c2 New Document: Columns shows the laid-out count when none is stored
With no stored column or row count, More Settings showed 1 in Columns while
file.new lays a grid out as one row of all the artboards. Entering 1 then
matched the shown value and was dropped, so the stored 0 stayed. Columns now
shows the count file.new uses for the layout, so entering 1 is stored and a
step that leaves the count unchanged changes nothing.
2026-12-01 12:40:23 -08:00
dotCooCoo 193034f469 Vector Halftone: refuse unknown live styles; join dot quadrants cleanly
effect.apply and effect.setParams stored an unknown style such as
"gridDot", which the effect drew as Custom while the dialog hid Shape
and Angle. Both commands now refuse it before editing, as
object.vectorHalftone does, and accept the named styles in any letter
case.

Dot quadrants that meet on an axis, and the corner cutouts of Euclidean
and Elliptical dots past half tone, were joined with a zero-length line
that added duplicate anchors. They now join directly. A zero-tone dot
gives an empty path instead of closing a path with no start.

The params text, docs/mcp.md and the progress line describe the style
rules.
2026-12-01 12:13:48 -08:00
dotCooCoo c6b1625700 Merge main into feat/scripts-pageitem-transforms 2026-12-01 11:23:01 -08:00
dotCooCoo 429bab3afd Merge main into feat/scripts-text-paint 2026-12-01 11:16:48 -08:00
dotCooCoo 988e5ca919 Merge main into fix/common-tangents-metaball 2026-12-01 11:16:00 -08:00
dotCooCoo 6f684e6da9 Path Precision Tools: Common Tangents and Smooth Bridge are one dialog
Common Tangents… now also does what Smooth Bridge… did (#10465).

- Connect tangents joins the two tangents of each kind into one closed
  shape, along the chords between where they touch each path (a point's
  two lines make a triangle). `connect` on
  `addon.pathtools.commonTangents`.
- With External, the dialog shows Straight and Curved. Straight keeps
  the tangent lines; Curved joins the circles along concave arcs, as
  Smooth Bridge did, with Radius, Constant Gap, Reach and Keep
  Originals, which take input only with Curved. `curved`, `radius`,
  `gap`, `reach` and `keepOriginals` on the command; options of the
  other mode are an error.
- The Smooth Bridge… menu item is gone. `addon.pathtools.bridge` still
  runs for scripts and actions, opens the merged dialog with External
  and Curved, and is left out of the command palette and Keyboard
  Shortcuts. A palette search for "metaball" or "smooth bridge" finds
  Common Tangents.

Docs: docs/mcp.md, docs/ui-parity.md, ROADMAP.
2026-12-01 11:16:00 -08:00
dotCooCoo 7097913724 Docs: $.evalFile tries the path as written before its URI forms
The parity entry now says the path as written is read first, and the
decoded URI forms are tried only when it is missing, fails to read or is
refused. A file over the size limit stops the lookup.
2026-12-01 09:58:35 -08:00
dotCooCoo 069a3c4ff6 Color Effects: Randomize Fill Colors colors compounds in a series that names a design it does not draw
A column series can keep the marker design it was given as a line series, and a
line series without markers can keep its column design. Randomize Fill Colors
treated any compound design the series named as a sign that the graph drew the
series' compounds from it, so a compound path made from such a series' columns
kept its fill.

The check now asks which designs the series draws, with the same rule the graph
uses when it redraws designs (`series_drawn_designs`, split out of `draws_with`
in `cmd/graph/designs.rs`), and it runs once per series group and builds the
rule once per graph.

Follows up #10091.
2026-12-01 09:54:52 -08:00