Commit Graph
25080 Commits
Author SHA1 Message Date
dotCooCoo 96ba49f5bd Files: check a write again before it is put in place off Unix
Off Unix, write_atomic_checked asked `allowed` once, before the file
was written, so a destination that stopped being allowed while the file
was filled still received it. The check now runs again after the fill,
right before the rename, and again before the content is copied over a
file whose folder refuses the rename. A refusal removes the staging
file and leaves the target as it was.

The hard-link fixtures in the capture tests unwrap the link again, as
the other hard-link tests in the engine do (script_io.rs, plugins.rs).
2026-12-02 23:09:11 -08:00
dotCooCoo 14e8959bc0 Scripts: tighten rasterize clip bounds and imageCapture destination checks
- object.rasterize and Document.rasterize refuse clipBounds that reach
  none of the selected objects' own bounds, including a rectangle in the
  gap between two of them, instead of replacing the art with a
  background-only image.
- imageCapture checks its destination again on every write the export
  makes and as the file is committed, so a destination that becomes a
  link to an open document or a linked file while the art renders is
  refused.
- imageCapture refuses a destination whose real path is not valid UTF-8
  instead of writing under a name with its bytes replaced.
- A missing linked file's name in the other Unicode normalization form
  counts as the linked file in folders that ignore the form (macOS, and
  casefolded folders on Linux).
- The hard-link tests skip on volumes without hard links.
- docs/mcp.md: imageCapture rounds clip dimensions to the nearest pixel;
  rasterize rounds fractional dimensions up.
2026-12-02 22:19:16 -08:00
dotCooCoo f46d591204 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 20:30:16 -08:00
dotCooCoo 8714ec7731 Scripts: rasterize refuses sources clipped differently, capture checks file identity
- object.rasterize with ids refuses objects whose nearest clip group or
  clipped layer differs, before rendering: the image goes where the last
  object is, so mixed sources would be clipped by another object's path.
- Document.rasterize reads the image id from the command's result inside
  the run's savepoint, so an id above 2^53 binds the new RasterItem and a
  missing id undoes the edit.
- Document.imageCapture refuses a destination that is another name of an
  open document's file or a linked file (same device and inode, or same
  volume and file index), and on Unix any file with other hard links,
  which an in-place write would change under every name.
- Docs: gaps.md and target-app-parity.md list what rasterizing and
  capturing still lack; mcp.md states the clipping rule, the hard-link
  rule and that a later OS write failure can leave some files written.
2026-12-02 20:10:56 -08:00
.CooCoo 4002b2b66c Merge pull request #9304 from dotCooCoo/feat/scripts-text-paint
Scripts: character attributes set the fill and stroke of text
2026-12-02 20:01:08 -08:00
dotCooCoo c1470adfc6 Merge main into feat/scripts-text-paint 2026-12-02 18:14:59 -08:00
dotCooCoo b51d13d2a4 New document: a replayed rows count over 1000 is kept to 1000
A file.new step replayed from a journal or the Actions panel rounded
artboardLayout.rows and then refused a result over 1000, so a step with
rows 1000.5 or 5000 stopped the playback. The rows count now follows the
columns rule: it is rounded, must be 1 or more, and is kept to at most
1000. Recent stores the kept count. docs/mcp.md says the same.
2026-12-02 17:28:48 -08:00
dotCooCoo a7c7dae179 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 17:25:26 -08:00
.CooCoo 15cc3b048f Merge pull request #10581 from dotCooCoo/fix/print-paper-size-to-cups
Print: the job asks CUPS for the paper size chosen
2026-12-02 17:20:21 -08:00
.CooCoo cd502f08e8 Merge pull request #9073 from dotCooCoo/feat/scripts-api-d1b-prefs-matrix-clipboard
Scripts: app gives scripts preferences, matrices and the clipboard
2026-12-02 17:08:38 -08:00
.CooCoo 5d8deddaf0 Merge pull request #9048 from dotCooCoo/feat/scripts-api-d3-layers-artboards
Scripts: documents give scripts their layers, groups, compound paths and artboards
2026-12-02 16:50:47 -08:00
dotCooCoo 7b433a52fe Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 16:27:15 -08:00
dotCooCoo dc94ae977c Docs: matrix records passed in need only the six mValue fields
The matrix functions read only mValueA to mValueTY from a record passed
in. The typename "Matrix" is on the records they give back.
2026-12-02 16:10:05 -08:00
.CooCoo e72ff7480d Merge pull request #9062 from dotCooCoo/feat/scripts-api-d8-placed-raster
Scripts: documents give scripts their placed and raster images
2026-12-02 16:07:47 -08:00
dotCooCoo 98c6e5fb20 Merge main into feat/scripts-api-d3-layers-artboards 2026-12-02 15:57:11 -08:00
.CooCoo c800d92d1f Merge pull request #10610 from dotCooCoo/fix/one-column-rail-edit-toolbar
Tools: show Edit Toolbar alone in the one-column rail
2026-12-02 15:54:40 -08:00
dotCooCoo 44b238b814 Merge main into feat/scripts-text-paint 2026-12-02 15:51:24 -08:00
dotCooCoo 15d11beb83 Print: a second scheduler on a loopback port supplies its own paper sizes
A `CUPS_SERVER` or `ServerName` of `localhost`, `127.0.0.1` or `::1` counts
as this machine's scheduler only with no port or port 631. On another port
(a second CUPS instance) the dialog no longer reads `/etc/cups/ppd`, whose
queues belong to the default scheduler, and asks `lpoptions` and IPP
instead.

When the named server is one of CUPS's own domain sockets and neither the
PPD nor `lpoptions` lists sizes, the IPP lookup asks `localhost` on the IPP
default port, as it already does when no server is named. `ipptool` rejects
a URI whose host is a socket path (`httpSeparateURI` in CUPS's
`cups/http-support.c`), so another socket path is not asked.
2026-12-02 15:48:30 -08:00
.CooCoo 822651dc7a Merge pull request #9266 from dotCooCoo/feat/scripts-export-autocad
Scripts: exportFile writes DXF with ExportOptionsAutoCAD
2026-12-02 15:42:04 -08:00
dotCooCoo e369013463 Merge main into feat/scripts-api-d3-layers-artboards 2026-12-02 15:37:51 -08:00
.CooCoo 923fd71b89 Merge pull request #10600 from dotCooCoo/fix/pdf13-transparency-scan
Tests: the PDF 1.3 transparency check reads dictionaries only
2026-12-02 15:30:26 -08:00
dotCooCoo 60383e1ac1 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 15:28:08 -08:00
.CooCoo df95fb0d3e Merge pull request #10616 from dotCooCoo/fix/home-title-display-size
Home: the title is drawn at 24 points again
2026-12-02 15:27:08 -08:00
dotCooCoo ab35e04329 Merge main into feat/scripts-api-d1b-prefs-matrix-clipboard 2026-12-02 15:23:31 -08:00
.CooCoo 1bb9699b5c Merge pull request #10617 from dotCooCoo/fix/float-tools-beside-rail
Tools: a strip floated before the canvas is laid out opens beside the rail
2026-12-02 15:12:26 -08:00
.CooCoo 7e25c134e0 Merge pull request #10613 from dotCooCoo/fix/flatten-raster-fast-png
EPS export: flattened effect rasters are written with fast PNG compression
2026-12-02 15:01:51 -08:00
.CooCoo 99e81b7b54 Merge pull request #10611 from dotCooCoo/fix/workspaces-open-their-panel
Workspaces: built-in workspaces open their panel again
2026-12-02 14:56:11 -08:00
.CooCoo d708b00dee Merge pull request #10615 from dotCooCoo/fix/halftone-dot-segments
Vector Halftone: write each round dot with four curves again
2026-12-02 14:50:00 -08:00
.CooCoo 684f2e1ec2 Merge pull request #9295 from dotCooCoo/feat/scripts-pageitem-transforms
Scripts: PageItem translate, rotate, resize and transform move and reshape objects
2026-12-02 14:38:51 -08:00
dotCooCoo d73dad7ee0 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 14:38:27 -08:00
dotCooCoo 32f4dfd62a Docs: title-bar Search shows only while the app bar is wide enough
In a narrow window the title bar drops Search, so the one-column Tools
note now names Help > Search Commands... and its shortcut first.
2026-12-02 14:29:36 -08:00
dotCooCoo fae03ac701 Merge main into fix/print-paper-size-to-cups 2026-12-02 14:27:22 -08:00
.CooCoo 827d27f0d3 Merge pull request #10609 from dotCooCoo/fix/marquee-control-bounds-reject
Marquee: skip paths whose control box lies apart from the marquee
2026-12-02 14:20:34 -08:00
dotCooCoo b47eaf582c Merge main into feat/scripts-api-d8-placed-raster 2026-12-02 14:14:45 -08:00
dotCooCoo 326c88a8f3 Merge main into feat/scripts-api-d3-layers-artboards 2026-12-02 14:12:01 -08:00
dotCooCoo f24eff2963 PDF: stream length test helper ignores names ending in obj
stream_length took the last "obj" substring in the text as the object
header, so a stream dictionary name such as /Tag/obj moved the scan past
the outer dictionary and lost its /Length. The keyword now counts only at
the start of the text or after PDF white space.
2026-12-02 14:11:32 -08:00
dotCooCoo cb98b72a58 Scripts: fix a run's linked files at its first step
A run whose first step is an exact document.open still reads the open
documents' linked files then, so a link retargeted while the run is paused
gives a later command no read access to the new target. The open itself
still gets no linked-file access.
2026-12-02 14:10:57 -08:00
dotCooCoo 1f2e9bff33 Merge main into feat/scripts-export-autocad 2026-12-02 14:02:36 -08:00
dotCooCoo f3c5127a4b Merge main into feat/scripts-api-d1b-prefs-matrix-clipboard 2026-12-02 13:59:55 -08:00
dotCooCoo 3140831da9 Merge main into feat/scripts-text-paint 2026-12-02 13:57:18 -08:00
dotCooCoo b91beb68fd Scripts: refuse read-only export files, hidden rasterize sources and capture over write-only documents
- A multi-file export checks every destination before writing and refuses an
  existing read-only file, as save does, so no file is written.
- object.rasterize and Document.rasterize refuse an id that is hidden or in a
  hidden layer or group, as they refuse locked ones.
- imageCapture compares open documents and linked files that only a write root
  covers, so it no longer replaces such a document's file.
- The blank-capture test also checks the pixel count, as test-lint asks.
2026-12-02 13:56:42 -08:00
dotCooCoo b7bc86522c Tools: a strip floated before the canvas is laid out opens beside the rail
window.floatTools placed a new strip at the canvas's top left, and fell
back to (0,0) when no view had been laid out yet: right after a document
opened, or with no document open. The strip then covered the top of the
docked Tools rail.

Without a laid-out view, the strip now opens beside the docked rail it
came from (else the Tools panel's), level with the rail's top and the
float space's cascade inset away from it, on the side toward the middle
of the window. A dragged tear-off still opens at the pointer.
2026-12-02 13:52:39 -08:00
dotCooCoo f5111b293d Home: the title is drawn at 24 points again
The compact type was set to 92% of its nominal sizes (body 13 to 12,
labels 12.5 to 11.5, captions 11.5 to 10.5), but the display type that
draws the Home title stayed at 26 points on a 32-point line, so the
title drew about 8.7% larger than in 0.24.1. The display type is now
24 points on a 29-point line, its nominal 26 on 32 at the same scale.

A test checks that the title keeps the nominal title-to-body
proportion against the compact body type, and that its line keeps the
framework's display line proportion.
2026-12-02 13:51:35 -08:00
.CooCoo f207334070 Merge pull request #10592 from dotCooCoo/fix/print-dialog-printer-discovery
Print: the dialog finds printers on a background job
2026-12-02 13:50:53 -08:00
dotCooCoo 5f3f52c9d5 Merge main into fix/halftone-dot-segments 2026-12-02 13:31:25 -08:00
dotCooCoo c679af091d Vector Halftone: write each round dot with four curves again
The cell-clipped dots split every elliptical arc at 45 degrees, and the
quadrants were joined with a zero-length line where they met on an axis.
A round dot that stays inside its cell had 8 curves and 3 extra anchors
instead of 4 curves, and the halftone's SVG export grew to about twice
its size.

- Arcs are split at 90 degrees, one curve per quarter turn.
- Quadrants and spot corners that meet at the same point are joined
  without a line, so the join adds no anchor.

Tests: an unclipped Circle and Ellipse dot is 4 curves and no line, and
no dot shape repeats an anchor where its quadrants or corners meet.
2026-12-02 13:31:19 -08:00
dotCooCoo 5ce02bb64b Flatten Transparency: write rasterized areas as fast-compressed PNGs
Since #7669 the flattener's rasters have been encoded through the shared
image codec with its default compression (zlib level 6). EPS export, and
any other export that flattens, encodes every rasterized area this way
and then decodes it again right away, so a document with many live
effects exported about 170 ms slower to EPS. The rasters are now written
with PngCompression::Fast, as the SVG filter raster already is
(crates/effects/src/svg_filter.rs). The pixels and the EPS output bytes
do not change.
2026-12-02 13:26:00 -08:00
dotCooCoo 1c9efecfb6 Workspaces: built-in workspaces open their panel again
Switching to Essentials Classic, Automation, Layout, Painting, Printing
and Proofing, Typography, Web or Touch, or resetting one, brought its
panel to the front of its group but no longer opened it from a column
collapsed to icons, so the panel stayed hidden.

A workspace record keeps the panel open from the icons again: each
built-in names its panel, a workspace left or saved keeps the one open
then, and switching or Reset opens it. A recorded panel the new layout
does not show from icons stays closed. Workspaces saved without the
field open none.

The Essentials Classic test checks the open panel again, and new tests
cover Painting, Automation, switching back as left, Reset, saved
workspaces and the preferences' JSON.
2026-12-02 13:20:56 -08:00
dotCooCoo 499055bbbd Tools: show Edit Toolbar alone in the one-column rail
The one-column Tools rail stacked Search above Edit Toolbar in its
footer. The extra row made the default rail taller than a 1000 pt
window holds, so the rail scrolled and Edit Toolbar was out of view.

A one-column rail now shows Edit Toolbar alone. Search Commands stays
in the title bar, Help > Search Commands... and its shortcut. The
two-column rail keeps Search beside Edit Toolbar.

Tests: one_column_rail_shows_edit_toolbar_in_a_1000_point_window; the
#8758 layout test checks the one-column footer, and the search query
test runs on the two-column rail.
2026-12-02 13:16:38 -08:00
dotCooCoo d583b8053f Merge main into feat/scripts-pageitem-transforms 2026-12-02 13:09:44 -08:00