Commit Graph
5241 Commits
Author SHA1 Message Date
dotCooCoo 437b477241 Save for Web: Optimize to File Size's params text says Auto Select blends over the matte 2026-11-16 22:49:03 -08:00
dotCooCoo 6a6d6fb801 Save for Web: Auto Select counts the colors written over the matte
With Transparency off, Optimize to File Size's Auto Select counts the
colors of the pixels blended over the matte, which are the colors the
file is written with, so art whose blended pixels need more than 256
colors starts with JPEG instead of GIF.
2026-11-16 22:09:06 -08:00
dotCooCoo 913c5c88b9 Merge main into feat/save-for-web-optimize-to-size 2026-11-16 19:49:10 -08:00
BFlat 973a33e1fb Merge pull request #7949 from dotCooCoo/feat/circle-through-three-points
Shapes: draw the circle through three points
2026-11-17 09:49:57 +07:00
BFlat 685e77af6b Merge pull request #8236 from dotCooCoo/feat/print-custom-scale-link
Print: a link button keeps Custom Scale W and H equal
2026-11-17 09:49:36 +07:00
BFlat dff94107d9 Merge pull request #8247 from dotCooCoo/feat/rasterize-transform-copies
Effects: each copy of a Transform effect listed after Rasterize carries the Rasterize image
2026-11-17 09:48:50 +07:00
BFlat d40909a873 Merge pull request #8267 from dotCooCoo/perf/select-same-parent-walk
Select: Same and Select by Color read each object's parent from the walk
2026-11-17 09:48:26 +07:00
BFlat 9f1da49a92 Merge pull request #8205 from dotCooCoo/fix/package-eps-carried-links
Package: copy the files a placed EPS file's native document links beside its copy
2026-11-17 09:47:44 +07:00
BFlat 39b7ed38f8 Merge pull request #8261 from dotCooCoo/feat/place-shift-click-import-options
Place: a Shift-click with the loaded place cursor shows the file's import options
2026-11-17 09:47:24 +07:00
BFlat db99ecb535 Merge pull request #8104 from dotCooCoo/fix/expand-pieces-raster-budget-ids
Effects: a member the raster budget leaves keeps its random move through Expand Appearance
2026-11-17 09:47:13 +07:00
BFlat 5caa7954b7 Merge pull request #8230 from dotCooCoo/perf/direction-handles-select-set
Select: Object > Direction Handles selects the paths with one set call
2026-11-17 09:47:06 +07:00
BFlat 435f603a37 Merge pull request #8214 from dotCooCoo/perf/cut-at-anchors-select-set
Cut Path: the cut ends are selected with one set call
2026-11-17 09:46:50 +07:00
BFlat 25ae8943d8 Merge pull request #8213 from dotCooCoo/perf/trim-selection-one-pass
Trim at Crossings: the selection is updated in one pass
2026-11-17 09:46:42 +07:00
BFlat 6d8db923c2 Merge pull request #8221 from dotCooCoo/feat/flare-alt-click-default
Flare: an Alt-click draws a flare at the click with the tool's options
2026-11-17 09:46:34 +07:00
BFlat 46b7894231 Merge pull request #8238 from dotCooCoo/feat/blend-options-id-fields
Blend: options on several blends set only the values given; `id` edits one blend
2026-11-17 09:46:15 +07:00
BFlat 457c5fba1c Merge pull request #8251 from dotCooCoo/perf/magic-wand-membership-sets
Magic Wand: compound and selection membership checks use hash sets
2026-11-17 09:45:57 +07:00
BFlat 2d393d8a8a Merge pull request #8094 from el-j/fix/pdfx-transparency-reduction-6861
Fix #6861: Automated transparency reduction for PDF/X and PDF 1.3
2026-11-17 09:45:49 +07:00
BFlat 5232789973 Merge pull request #8076 from dotCooCoo/fix/export-screens-pdf-bleed
Export for Screens: Include Bleed keeps a PDF page's TrimBox at the artboard
2026-11-17 08:20:09 +07:00
BFlat 7c65af31ce Merge pull request #8067 from dotCooCoo/feat/align-3d-preview-bounds-1302
Use Preview Bounds: Extrude & Bevel, Revolve, Inflate and Rotate are measured by their 3D art
2026-11-17 08:19:29 +07:00
BFlat 2510109da1 Merge pull request #8100 from dotCooCoo/perf/brush-targets-dedup-set
Brushes: brush_targets drops repeated paths with a set instead of a linear search of its output
2026-11-17 08:19:20 +07:00
BFlat 79d2536e8e Merge pull request #8089 from dotCooCoo/fix/issue-8063
Part of #8063: Dimension tool points snap to drawn dimensions and show anchor and path labels
2026-11-17 08:19:12 +07:00
BFlat f619888fe2 Merge pull request #8074 from dotCooCoo/feat/intertwine-layers-drop
Layers: dragging objects into an Intertwine group adds them to it
2026-11-17 08:19:04 +07:00
el-j 7194204871 Address review comments: reuse clear_transparency helper and run layer normalization only without transparency 2026-11-17 01:04:57 +01:00
el-j a0edcf73c4 Merge remote-tracking branch 'upstream/main' into fix/pdfx-transparency-reduction-6861 2026-11-17 00:42:30 +01:00
dotCooCoo 68dbb1e6e4 Select: Same and Select by Color read each object's parent from the walk
Select > Same, Select by Color (select.color) and document.find looked up
the parent of every object they checked by its id, through
Document::parent_of and Document::node, to tell members of a compound
path and faces of a Live Paint group from other objects. The walk
already stands on that parent, so it now hands it to the check with the
object. walk_selectable keeps its signature and visits the same objects
in the same order.

The selected objects, their order and the count reply are the same as
before, and so is the Reselect state of Select > Same. Tests compare the
walk and the parents it hands out with the old walk and
Document::parent_of, and the results of six Same commands and
select.color with the old per-id loop, in four isolation scopes, from
rectangles at the top level, in a group and in a sublayer, compound path
members, Live Paint faces and a compound path. In a damaged document
that holds an id twice, the parent read is the one that holds the
object being checked.

The gain shows on large documents. With 220,482 objects, the search of
Select > Same > Fill Color takes a median of 24 ms of CPU time instead
of 83 ms, and of Stroke Color 22 ms instead of 60 ms (release build on
Linux, seven alternating runs of both loops in one process; an ignored
test, select_same_perf, times them).
2026-11-16 15:18:22 -08:00
dotCooCoo 562021f185 Blend: Blend Options sends only what was set; unknown orientation is an error
- The Blend Options dialog sends the spacing, count or orientation only
  when it was set in the dialog or differs from the first blend's, so
  OK on several blends no longer copies the first blend's spacing and
  orientation onto the others.
- object.blend.options: a spacing mode without a count keeps the count
  of a blend already in that mode. An orientation other than page or
  path, a spacing that is not a string, and `value` without `spacing`
  are errors (orientation also in object.blend.make and the options new
  blends start with).
- The Blend panel dims Type and Ramp while any selected blend has no
  spine, since the command refuses easing for such a selection.
- Tests check the live preview while a Ramp or Shift drag is under way.

Supersedes #8022 by ruchirguitar.
2026-11-16 14:38:00 -08:00
dotCooCoo 2d1ecbab32 Place: a Shift-click with the loaded place cursor shows the file's import options
A Shift-click with the place cursor now opens the current file's import
options (Text, DXF, Place PDF or Place PSD) before it is placed, whether
the cursor was loaded with Show Import Options on or off or by
file.place.queue. OK places the file at the click and the cursor moves to
the next file. The options the cursor was loaded with for the file's
format are put aside so the dialog opens, and are used when no dialog
opens for the file (a PNG image, a one-page PDF, a linked PSD file). A
Shift-drag places at the dragged size, as a drag does. Headless, where no
dialog can open, a Shift-click places as a click does.

The place tool marks a Shift-click's file.place with
showImportOptions: true.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 14:18:21 -08:00
dotCooCoo 8970de7da5 Magic Wand: compound and selection membership checks use hash sets
select.magicWand searched lists in three places: paintable looked up
each object's parent in the list of compound paths, add mode looked up
each hit in the selection, and subtract mode looked up each selected
object in the hits. These lookups now use HashSets. The output is still
built by walking the lists, so the wand selects the same objects in the
same order as before.

A test compares paintable, added, subtracted and select.magicWand in
set, add and subtract mode with copies of the earlier searches on a
20,000-path document. An ignored release-build probe times both.
2026-11-16 14:18:19 -08:00
dotCooCoo 00f42826ef Effects: each copy of a Transform effect listed after Rasterize carries the Rasterize image
On a path or compound path, a Transform effect with copies listed after
the object's own Rasterize effect now places the one image Rasterize
makes of the art before it on the original and on each copy: copy k
through the effect's map applied k times, with its pixel grid and its
room around the art, the last copy lowest and the original on top.
Before, the Transform effect copied the art and Rasterize made one image
of all the copies on a grid square to the page.

The image is made once for every placement, also when a shadow or glow
is listed between the Rasterize and Transform effects. The canvas, the
object's bounds, Expand Appearance and PDF export use the same
placements; Expand Appearance and PDF export make a group of images that
share the one image's pixels. Copies stop where the copied art stops,
and a copy scaled to nothing is left out.
2026-11-16 13:55:27 -08:00
dotCooCoo 3e3c95ec37 Blend: options on several blends set only the values given; id edits one blend
object.blend.options wrote the first selected blend's spacing, orientation,
type, ramp and shift onto every selected blend, whatever the call gave. Each
blend now takes only the values given and keeps its own for the rest, through
one closure used for the selection and for `id`.

- `id` edits that blend alone. A hidden or locked blend and an object that
  is not a blend are errors, and the blend's own spine decides whether
  easing is allowed.
- A call that changes no blend records no undo step.
- The Blend panel's Ramp and Shift sliders share one helper: a drag
  previews on the canvas and records one undo step on release, instead of
  one per frame.

Builds on #8022 by ruchirguitar.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 12:42:53 -08:00
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 7036cfb67c Merge main into feat/print-custom-scale-link 2026-11-16 12:16:47 -08:00
dotCooCoo 473b887542 Merge main into feat/flare-alt-click-default 2026-11-16 11:59:16 -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 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 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 57904698e3 Merge main into fix/issue-8063 2026-11-16 10:50:24 -08:00
dotCooCoo cee1dbaa96 Merge main into feat/intertwine-layers-drop 2026-11-16 10:49:58 -08:00
dotCooCoo e5baf0d20a Merge main into fix/export-screens-pdf-bleed 2026-11-16 10:49:54 -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 097eaba2b5 Merge main into fix/transform-copies-raster-effects-groups 2026-11-16 10:35:16 -08:00