Commit Graph
5767 Commits
Author SHA1 Message Date
dotCooCoo 30d5552795 Select: Object > Direction Handles selects the paths with one set call
Direction Handles cleared the selection and then added each path on its
own, and each add searched the paths already selected, so building the
selection took time that grows with the square of the path count. The
command now selects the paths with one Selection::set call and adds the
anchor sets in one extend. The selection is the same: paths keep their
order, a repeated path keeps its first place and its last anchor set,
and the side fields are cleared as before.

crates/engine/examples/direction_handles_bench.rs times both ways on the
same paths in one process. With 20,000 four-anchor paths, building the
selection takes 1.9 ms of thread CPU time against 69 ms one path at a
time.
2026-11-16 12:39:16 -08:00
dotCooCoo 6be2ef508b Save for Web: Optimize to File Size picks the settings that bring the image under a typed size
Optimize to File Size… under Preset opens rows for a desired size in K (1024 bytes), Start With
(Current Settings, Auto Select GIF/JPEG) and, with slices, Use (Total of All Slices, Each Slice,
Current Slice). OK takes the settings whose files fit, measured by encoding, and the dialog shows
the size found or says that no setting tried fits.

- webExport.optimizeToFileSize searches JPEG quality or GIF/PNG-8 colors, then GIF lossy 100,
  encoding at most 32 trial settings. A lower value can give a larger file, so it measures up to
  6 values spread over the range before it narrows the step. It writes no file and changes no
  remembered setting.
- A desiredK that is missing, not a number, 0 or less, or above 1048576 is an error, as are an
  unknown startWith or use and a bad slice.
- The slices share one setting, so every Use choice changes all of them.
- The result line is dropped when the art or the selection changes.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 12:37:47 -08:00
dotCooCoo 2f7e60dd54 WebP: Lossy with a Quality setting writes a lossy WebP file
WebP Options has a Compression menu (Lossless, Lossy) and a Quality
slider from 0 to 100 that is enabled for Lossy. document.export,
document.serialize and Export for Screens take lossless: false with
quality (default 90) and write a VP8 file, with an ALPH chunk that keeps
the alpha exactly when some pixels are not opaque. Lossless stays the
default. A WebP quality above 100, or one that is not a whole number,
is refused with an error.

The encoder is the one craft-image-codecs already provides; no
dependency changes. The note that lossy WebP isn't available, its
catalog rows and the format text that described it are removed.
2026-11-16 12:30:56 -08:00
dotCooCoo d00e3b6ecd Packaging Tools: Fold Preview picks the print level by a pixel's longer side and draws the board opaque
A print tipped away from the view shrinks up and down but not across, so
the level of the print raster is now chosen by the longer of a pixel's
two sides in flat terms, not its width alone, and fine print lines no
longer alias when the view is tipped.

The board's inside and outside colors were premultiplied by their alpha
and then drawn with full alpha, so a see-through color drew darker
instead. The depth buffer treats every panel as opaque, so the board is
now drawn opaque in its colors' RGB and their alpha is not used.

The tray test now checks that each wall's print faces away from the base
on its own side and that the walls fold below the base.
2026-11-16 12:26:28 -08:00
dotCooCoo 7036cfb67c Merge main into feat/print-custom-scale-link 2026-11-16 12:16:47 -08:00
dotCooCoo cb060a0ea7 Merge main into feat/packaging-fold-preview 2026-11-16 12:04:49 -08:00
dotCooCoo 5171378fd5 Merge main into fix/symbol-drop-across-documents 2026-11-16 12:02:44 -08:00
dotCooCoo aac6250a07 Merge main into fix/blob-params-rejected 2026-11-16 12:01:23 -08:00
dotCooCoo 473b887542 Merge main into feat/flare-alt-click-default 2026-11-16 11:59:16 -08:00
dotCooCoo 10054f611b Merge main into fix/issue-8047-group-marquee 2026-11-16 11:58:46 -08:00
dotCooCoo a616ccfd09 Merge main into fix/shortcut-row-names-translated 2026-11-16 11:57:36 -08:00
dotCooCoo 825cfdd750 Shapes: double-clicking a live shape's corner widget with a shape tool shows the Transform panel
With Rectangle, Rounded Rectangle, Ellipse, Polygon or Star active, a
double-click on a visible corner widget of a selected live rectangle or
polygon shows and selects the Transform panel (window.panel.activate),
wherever it is: closed, docked behind another tab, floating, in an icon
column or in a dock hidden by Tab. A second double-click keeps it on show.
The tool, the selection, the document and the undo history stay as they
were. Pie widgets, spots off the widgets, Line Segment, plain paths and
hidden or angle-excluded widgets do nothing; the Selection and Direct
Selection tools keep their double-click behavior.

Tools return the new Action::Panel, which the engine forwards as
UiRequest::Panel; the desktop app activates the panel, and a headless
pointer_gesture reply carries {"panel": id} in its requests.

Docs: docs/ui-parity.md (#5477 row, also correcting its statement that the
bounding-box handles scale only with the Selection tool) and
docs/target-app-parity.md.
2026-11-16 11:56:38 -08:00
dotCooCoo d33d008010 Merge main into fix/expand-pieces-raster-budget-ids 2026-11-16 11:56:08 -08:00
BFlat 3e75a7eae7 Merge pull request #8013 from dotCooCoo/fix/transform-copies-raster-effects-groups
Effects: each copy of a group's or layer's Transform effect carries the raster effects before it
2026-11-17 02:50:52 +07:00
BFlat fb6845b07a Merge pull request #8161 from dotCooCoo/perf/cut-selection-one-pass
Cut: take the cut objects out of the selection in one pass
2026-11-17 02:50:44 +07:00
BFlat 3e9947ac9d Merge pull request #8179 from dotCooCoo/feat/graphic-styles-drag-to-new-duplicates
Graphic Styles: a style dropped on New Graphic Style is duplicated at the end of the list
2026-11-17 02:50:36 +07:00
BFlat 40e2aecad3 Merge pull request #8174 from dotCooCoo/perf/anchors-many-set
Select: anchorsMany updates the selected objects in one pass
2026-11-17 02:50:10 +07:00
BFlat 5190f99c6c Merge pull request #8173 from dotCooCoo/fix/editing-data-fallback-says-why
.ai import: a refused PDF part's error says why the editing data couldn't be read
2026-11-17 02:50:01 +07:00
dotCooCoo 02e8f3eb54 Flare: an Alt-click draws a flare at the click with the tool's options
With the Flare tool, an Alt-click (Option-click on macOS) now draws a flare
centered at the click at once, with the tool's current options, instead of
opening the Flare Tool Options. Alt counts when it is held as the button goes
down; a drag with Alt draws the flare in two stages as before. While the
perspective grid shows with an active plane, the flare is drawn on that plane
from the click, as the dialog's OK draws it, and a click the plane cannot take
reports the error. A plain click still opens the dialog.
2026-11-16 11:47:43 -08:00
dotCooCoo 782869906d Merge main into fix/issue-8090 2026-11-16 11:40:23 -08:00
dotCooCoo c3ee2cd9ad Lists: restartNumbering false in a threaded frame keeps the continued paragraph's number
When a threaded frame starts inside a numbered paragraph, restartNumbering
false on that frame no longer takes away the number the paragraph has in
the frame before.
2026-11-16 11:38:41 -08:00
dotCooCoo 8b0effde6b Trim at Crossings: the selection is updated in one pass
A trim checked and changed the selection once for every trimmed path
and every piece, and each check or removal went through all selected
objects, so a trim of thousands of selected paths spent time
quadratic in their number on the selection alone. The command now
reads the selection through a set and removes and adds objects once
at the end. The resulting selection is the same as before, including
object order, the key object and key anchor, the direct-selected
anchors and segments, and the fields that a change to the object
selection clears.
2026-11-16 11:30:08 -08:00
dotCooCoo 4133419a31 Merge main into feat/print-overprint-black 2026-11-16 11:23:14 -08:00
dotCooCoo 2af27232e0 Path Precision Tools: a path that ends on a curve still divides it after the curve is cut
The crossing search took a crossing only where the straight pieces it
splits two curves into actually cross. A line trimmed at a curve ends
where that search found the crossing, up to about 0.0001 pt off the
curve. Once the curve was cut as well, its segments were split
differently, the line's end could fall just short of them, and the end
no longer counted as a place on the curve. Trim at Crossings then
removed the curve past that line, to the next crossing or the whole
path.

An open end of a path that lies within 0.001 pt of another path now
meets it at the nearest point there, at any angle. Corners of a path
and closed paths keep the exact test, and paths that lie along each
other still don't cross. Trim at Crossings and its hover, Add Points
at Crossings (with and without cut) and the Join tool's trim and join
of crossing paths use this search. The params text of Trim at
Crossings and Add Points at Crossings and docs/mcp.md say so.
2026-11-16 11:22:22 -08:00
dotCooCoo d549ec4f05 Fix #8090: mesh points picked with a Cmd-click reach the Eyedropper
A Cmd-click with the Eyedropper lends Direct Selection or the Lasso for
the gesture. The lent tool started with no mesh points picked, and the
Eyedropper came back with its old picks, so a point picked that way was
not sampled into and a Shift-click could not add to the picks.

The lent tool now starts from the Eyedropper's picked points, and the
points it leaves picked go back to the Eyedropper, none when it unpicked
them all. A Cmd-click lent to Group Selection, which picks no mesh
points, leaves the Eyedropper's picks as they were.
2026-11-16 11:14:52 -08:00
dotCooCoo eba85ba9a5 Lists: a number given in a threaded frame skips the paragraph continued from the frame before
When a threaded frame starts inside a numbered paragraph, startNumber and
restartNumbering true now go to the next numbered paragraph that begins in
that frame. Before, the continued paragraph took the number, and reflow gave
it to the item the earlier frame shows.
2026-11-16 11:08:11 -08:00
yoriswind 0774371250 #6582: preserve straight fill closure during erasure 2026-11-16 10:57:58 -08:00
dotCooCoo 3dedd7ca56 Merge main into fix/symbol-lookup-index 2026-11-16 10:57:10 -08:00
dotCooCoo 555d5a2b65 Merge main into feat/unembed-several-images 2026-11-16 10:57:06 -08:00
dotCooCoo 7573744a60 Merge main into feat/plugin-budget-preference 2026-11-16 10:54:07 -08:00
dotCooCoo 145941530e Merge main into fix/expand-pieces-raster-budget-ids 2026-11-16 10:53:39 -08:00
dotCooCoo 29f20f8533 Merge main into perf/brush-targets-dedup-set 2026-11-16 10:51:44 -08:00
dotCooCoo 1a596079f0 Merge main into fix/issue-8047-group-marquee 2026-11-16 10:50:46 -08:00
dotCooCoo 57904698e3 Merge main into fix/issue-8063 2026-11-16 10:50:24 -08:00
dotCooCoo f7d89d4d4b Merge main into feat/low-latency-drawing 2026-11-16 10:50:13 -08:00
dotCooCoo cee1dbaa96 Merge main into feat/intertwine-layers-drop 2026-11-16 10:49:58 -08:00
dotCooCoo ad2572734c Merge main into fix/issue-8034 2026-11-16 10:49:56 -08:00
dotCooCoo e5baf0d20a Merge main into fix/export-screens-pdf-bleed 2026-11-16 10:49:54 -08:00
dotCooCoo d1e9e4bc88 Merge main into perf/layer-select-all-one-pass 2026-11-16 10:49:36 -08:00
dotCooCoo 3b3f82b600 Merge main into feat/align-3d-preview-bounds-1302 2026-11-16 10:45:35 -08:00
dotCooCoo 7e769b611c Merge main into feat/circle-through-three-points 2026-11-16 10:43:27 -08:00
dotCooCoo b151643a73 Merge main into perf/selection-batch-toggle 2026-11-16 10:42:42 -08:00
dotCooCoo 33defecb66 Merge main into feat/interpolate-control-points 2026-11-16 10:42:29 -08:00
dotCooCoo 61fcccffcb Merge main into fix/symbol-drop-across-documents 2026-11-16 10:37:56 -08:00
dotCooCoo 8141f22a21 Merge main into fix/confined-exporter-and-placed-pdf-paths 2026-11-16 10:36:11 -08:00
dotCooCoo 80cf2172f1 Tests: drop the confined single-file PDF test of several assets
`assets.export` now refuses `pdfs: "single"` with assets, layers and
`selection: "each"` before any file is checked or written (70fdab8445
on main), so the test's request no longer reaches the link check and
fails with that refusal. A single-file PDF is now written only for
artboards, whose items all hold the same document.
2026-11-16 10:36:10 -08:00
dotCooCoo faabb83143 Merge main into feat/recolor-group-storage 2026-11-16 10:35:40 -08:00
dotCooCoo 54d33bd965 Merge main into fix/i18n-adjacent-placeholders 2026-11-16 10:35:25 -08:00
dotCooCoo 8a8363c262 Merge main into fix/shortcut-row-names-translated 2026-11-16 10:35:25 -08:00
dotCooCoo bdfbbbb744 Merge main into fix/variable-library-warning-kind-names-i18n 2026-11-16 10:35:23 -08:00