Commit Graph
20420 Commits
Author SHA1 Message Date
dotCooCoo 9145bd3203 i18n: translate the function type limit messages
The plug-in host's two new messages for a function type past 32
parameters or results get @msg rows in every complete-message catalog.
2026-11-20 20:29:07 -08:00
dotCooCoo 4cd36c8428 Merge main into fix/retype-drawn-shape-font-state 2026-11-20 20:29:06 -08:00
dotCooCoo f2eb016e98 Tests: transform turns about the same pivot with a null or omitted origin
transform_rejects_a_mistyped_reflect_copy_or_origin_before_editing ran
a rotate with a null origin and checked only that the call succeeded.
It now compares the resulting path with the same rotate with origin
left out, so a null origin that moved the pivot would fail the test.
2026-11-20 20:26:14 -08:00
dotCooCoo 15b4898f85 Canvas: a new working CMYK space renders a Working CMYK proof again
A proof of the working CMYK space converts through the working color
settings. With a profile assigned to the document in place of the
working CMYK space, Edit › Color Settings changes the working settings
while the active settings stay the same, and the canvas kept showing
the proof through the previous working space.

- The canvas's frame key also holds the working color settings
  (`cms::working_settings`).
- The test now requires a re-render after `edit.assignProfile`, and
  checks that a new working CMYK space re-renders a Working CMYK proof
  while the active settings stay the same.
2026-11-20 20:24:36 -08:00
dotCooCoo c9d6c8f126 Docs: an Alt-drag copy of a clipping path in Draw Behind goes above it
The progress line now says that in Draw Behind the copy of the clipping path of a clip group or a clipping layer goes directly above it, so the clipping path stays the bottom object, as docs/mcp.md and copy_beside already do.
2026-11-20 20:23:32 -08:00
dotCooCoo 153f6c0750 Scripts: script.grants reports an error when the grants file cannot be read
script.grants listed no grants when Script Grants.json was there but
could not be read, was larger than 4 MiB, did not parse, had another
version or held no list of grants, or when its lock could not be taken.
It now returns "the script file permissions could not be read: {e}" in
those cases, as script.grants.revoke already fails on such a file. A
missing grants file still lists none, and a grant in the file that is
not well formed is still left out.

The run-time grant lookup keeps reading such a file as holding no grants.
The new message has a row in every complete-message catalog. The params
text, docs/mcp.md and the Scripts line in docs/target-app-parity.md state
the error.
2026-11-20 20:23:01 -08:00
dotCooCoo 8d4f9e4f35 Color Settings: a background open whose profile question is gone finishes off the UI thread
A file read off the UI thread that waits behind another file's profile
question, and has no question any more once Color Settings change, now
does the rest of its read (policies, linked files, type) off the UI
thread, as an answered file does, instead of on the UI thread. It opens
at once when no thread can start, and a failure is reported once.

A profile question that comes while another dialog is open (a paste
waiting for its Swatch Conflict answer, say) now waits until that dialog
closes instead of replacing it and canceling the paste.

Follows #7733.
2026-11-20 20:22:29 -08:00
dotCooCoo 12fd6872cc Pathfinder: setting Soft Mix's Mixing Rate to the value it has records no undo step
effect.setParams compared a Pathfinder effect's values other than its
Pathfinder Options exactly, so a mixingRate of 50 over a stored 50.0
counted as an edit and recorded an undo step. A float now compares with
any number by value, and two integers still compare exactly.
2026-11-20 20:22:14 -08:00
dotCooCoo bd3f69f233 Path Precision Tools: Common Tangents finds a run's sample by binary search
The touching-run search looked up the sample before each angle with a
linear scan over the run, so a long run of samples within the tolerance
cost time in proportion to the square of its length. It now collects the
run's sample angles once and uses partition_point, which gives the same
sample at every angle.
2026-11-20 20:09:25 -08:00
dotCooCoo 9eb8cd6146 Merge main into feat/draw-behind-alt-drag-copy 2026-11-20 20:07:57 -08:00
BFlat 9fff48d88f Merge pull request #8910 from dotCooCoo/fix/similar-fonts-thai-scan
Type: the font scan tells whether a family sets Thai as loading it does
2026-11-21 11:03:21 +07:00
BFlat f593dff00c Merge pull request #8903 from dotCooCoo/fix/plugins-folder-special-files
Plug-ins: the plug-ins folder can't block startup on a special file
2026-11-21 11:02:50 +07:00
BFlat 93388d642f Merge pull request #8887 from dotCooCoo/fix/tangent-circle-close-contacts
Path Precision Tools: the Tangent Circle Tool finds both circles where two second segments touch close together
2026-11-21 11:02:18 +07:00
BFlat 4ce43b1091 Merge pull request #8532 from dotCooCoo/feat/distorted-image-commands
Links: Relink, Embed and Unembed keep a distorted image's corners
2026-11-21 11:01:53 +07:00
BFlat ddcefb86c9 Merge pull request #8918 from storytold/train/carry8875
Path Precision Tools: the Tangent Circle Tool leaves out a circle that would reach past the canvas (#8875)
2026-11-21 11:00:19 +07:00
BFlat 5b52369187 Merge pull request #8919 from storytold/train/carry8873
Dimension: pointer moves read a compound path's members once per revision (#8873)
2026-11-21 10:58:44 +07:00
dotCooCoo 94f4d54b04 Width tool: an Alt-double-click on one of several selected points edits them all
An Alt-press on a width point's center narrows the selection to that point,
ready to drag a copy. A release without a drag kept it narrowed and did not
remember the earlier selection, so an Alt-double-click on one of several
selected points opened Width Point Edit for that point alone, where a plain
double-click opens it for all of them. A release without a drag now
remembers the earlier selection as a plain click does, and an Alt-drag
still copies only the point under the pointer.
2026-11-20 19:57:05 -08:00
BFlat 1a1a939bdf Merge pull request #8858 from dotCooCoo/fix/style-redefine-series-own-links
Graphic Styles: Redefine Graphic Style keeps the own style of a path inside a series group linked to the target
2026-11-21 10:56:45 +07:00
BFlat 9078e13d78 Merge pull request #8867 from dotCooCoo/perf/selection-widgets-kind-first
Selection: on-canvas widgets check an object's kind before its editability
2026-11-21 10:56:16 +07:00
dotCooCoo 0575c1604a Swatch libraries: adding a pattern again reuses its numbered colors
Since the change that brings a library pattern's global and spot colors
under a numbered name ("Ink 2") when the document gives the name another
color, adding the same pattern or color again added more copies, and
Use Library Item still linked a pattern's art to the document's own
color of that name.

- A library color whose name the document gives another color is the
  document's numbered copy with the same color, so adding it again adds
  nothing. A numbered name that the same call also picks is not shared.
- A pattern the document holds with its art linked to the document's
  own color of a name, as pasting with Merge leaves it, is reused
  instead of coming in again as "Squares 2".
- `added` lists the colors a pattern brought, after the picked swatches.
- A library tint added with its base color links to the base's name in
  the document, and a later add finds it there.
- library.use brings a pattern's colors the same way.

Docs: docs/mcp.md.
2026-11-20 19:55:08 -08:00
dotCooCoo b763053289 Merge main into fix/flare-lone-x2-y2-error 2026-11-20 19:55:07 -08:00
dotCooCoo d4cd3f2c48 Tests: the missing-font question's tests check the open question and the clicked caret
An answer that names another question, Cancel or OK, now has to leave the
open question answerable: the right token's OK still starts the edit at the
clicked character. The canvas double-click lands a quarter of the way into
the text, and after OK the caret has to be the one a click at that point
puts in the type being edited.
2026-11-20 19:52:46 -08:00
bflatastic 3bda231dd6 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/target-app-parity.md
2026-11-21 10:46:25 +07:00
bflatastic 8daaa2995b Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/tools/src/dimension.rs
2026-11-21 10:43:59 +07:00
dotCooCoo 5132eaebfe PDF: a distorted CMYK image with an image mask keeps the resolution its pieces need
A distorted CMYK image whose opacity mask is a gray image with the
same corners writes the mask as the image's /SMask, and every piece of
its mesh draws that one image. The image was resampled for the size its
transform places it at, before the pieces' shared size was known, so
with downsampling on every piece stretched a smaller image across the
corners. The masked image is now resampled for the size the pieces
share, as the same image without a mask is, and the pieces are drawn
from the same expansion they were measured on.
2026-11-20 19:42:31 -08:00
BFlat 96726b1f41 Merge pull request #8837 from dotCooCoo/fix/live-paint-contents-group-targets
Live Paint: graphic styles on a group's contents give fills to its faces and strokes to its edges
2026-11-21 10:39:37 +07:00
dotCooCoo 4cf72518e1 i18n: the message scan skips a status local bound in a block that has ended
status_locals took the nearest `let name = ` before a `.status(name)` call,
even when that `let` was in an inner block that closed before the call. For
`let note = "Outer"; { let note = "Inner"; log(note); } app.status(note);`
the untranslated-strings report listed "Inner" and missed "Outer".

The scan now skips a binding whose block a `}` closes before the call.
Braces inside string and character literals are skipped with quoted_end,
the helper without_comments already uses. message_scan_reads_locals_given_to_a_status
covers the shadowing case and a status local followed by brace literals.
2026-11-20 19:39:10 -08:00
BFlat d77b6d9309 Merge pull request #8870 from dotCooCoo/fix/dimension-guide-member-holder
Dimension: a guide member of a compound path does not hold a preview-bounds corner
2026-11-21 10:39:09 +07:00
BFlat 54f256f666 Merge pull request #8634 from dotCooCoo/fix/select-widget-drags-settle
Selection: widget drags read the release point and a tool switch cancels them
2026-11-21 10:38:43 +07:00
BFlat f558297963 Merge pull request #8681 from dotCooCoo/feat/retype-near-matches
Retype: near matches within a tolerance, and words outlined as one compound path
2026-11-21 10:38:18 +07:00
BFlat 911177c775 Merge pull request #8874 from dotCooCoo/docs/3d-shadow-expands-blurred-as-image
Docs: a blurred 3D shadow expands to an image
2026-11-21 10:37:51 +07:00
BFlat 53fe391488 Merge pull request #8865 from dotCooCoo/fix/palette-typo-order-docs
Command Palette: docs order typo matches by the field the word is met in
2026-11-21 10:37:26 +07:00
BFlat 193f110ebe Merge pull request #8864 from dotCooCoo/fix/relink-edited-mask-docs
Docs: Relink and Update Links keep a clipping mask edited in the document
2026-11-21 10:37:02 +07:00
BFlat de11798f93 Merge pull request #8892 from dotCooCoo/fix/kinsoku-paste-relayout-test
Kinsoku sets: tests for pasted type and shaped lines under a custom set
2026-11-21 10:36:41 +07:00
BFlat 43e0407cd0 Merge pull request #8891 from dotCooCoo/fix/eraser-drag-midpoint-tip
Eraser: a drag's outline takes the tip halfway along each step in two more cases
2026-11-21 10:36:19 +07:00
BFlat 6aaef5ad68 Merge pull request #8886 from dotCooCoo/fix/outline-compound-strokes-not-fill
Pathfinder: Outline of a compound shape with no fill adds no stroke of its own
2026-11-21 10:35:55 +07:00
BFlat 7945ef5c86 Merge pull request #8884 from dotCooCoo/fix/safe-mode-expand-symbol-art
Expand Appearance: Safe Mode checks symbol art that a group's raster effect draws
2026-11-21 10:35:31 +07:00
BFlat f39e3e06cf Merge pull request #8871 from dotCooCoo/feat/draw-behind-place-symbol
Symbols: in Draw Behind a placed instance goes directly below the selection
2026-11-21 10:35:08 +07:00
BFlat ada693c03c Merge pull request #8868 from dotCooCoo/perf/legacy-ai-gradient-index
Legacy .ai: gradient definitions are found by a key of their gradient
2026-11-21 10:34:44 +07:00
BFlat c86bb07a44 Merge pull request #8854 from dotCooCoo/fix/confined-single-pdf-test-artboards
Tests: a confined single-file PDF of several artboards checks every artboard it carries
2026-11-21 10:34:16 +07:00
BFlat e8b23c5ba9 Merge pull request #8852 from dotCooCoo/fix/mesh-picks-survive-tool-switch
Mesh: picked points stay picked between the mesh-point tools
2026-11-21 10:33:52 +07:00
BFlat a5f9966ca5 Merge pull request #8861 from dotCooCoo/feat/freeform-lines-leave-ends-line
Gradient: moving out of a freeform object ends the Lines mode line
2026-11-21 10:33:27 +07:00
BFlat 4c0edd8844 Merge pull request #8904 from dotCooCoo/feat/script-check-host-classes
Script checker: setting a File's length, hidden or readonly counts as a file write
2026-11-21 10:32:19 +07:00
dotCooCoo 2e6976e884 Tests: a selected group member's anchor is the point its move snaps by
A press near an anchor of a member selected inside a group grabs the
member by that anchor, with Smart Guides or Snap to Point on, and a
drag lands that anchor on another object's anchor. The new test covers
the snapping origin that #8091 gave such a press; it fails when
hover_point stops reading selected art under the pointer.
2026-11-20 19:31:34 -08:00
BFlat 9704f52fc8 Merge pull request #8812 from dotCooCoo/fix/shape-tools-smart-guide-labels
Shape tools: the Smart Guide label of a hover goes when the pointer leaves the canvas
2026-11-21 10:31:04 +07:00
dotCooCoo e14312ae59 PDF export: a color-masked CMYK image with an image mask keeps its hidden colors hidden
A CMYK image with an opacity mask on its own pixel grid is written with
the mask's alpha as its soft mask. That path recoded the image's own
pixels and ignored its color mask, so the colors the color mask hides
were drawn wherever the mask's alpha was not zero.

The soft mask is now the mask's alpha multiplied by the alpha of the
pixels the color mask shows, and the cache key includes the shown
pixels. A test covers a plain and a distorted image.
2026-11-20 19:29:36 -08:00
dotCooCoo 320c4d4146 Path Precision Tools: Common Tangents keeps both lines from a point close to a round path
When two or more neighboring sampled normal angles all came out within the
touching tolerance, the root search took the run as one place where the
outlines touch and returned a single line at its middle. A point just
outside a circle, with both of its tangents on neighboring samples, then
got one line that misses the circle instead of two.

The search now looks between each pair of those samples for a value that
leaves the tolerance, and finds the roots between those places: a crossing
where the sign changes, a dip where it does not. A run that stays within
the tolerance, as at a corner, still gives one line.
2026-11-20 19:29:36 -08:00
dotCooCoo 1106a8f667 Tests: check Revolve's surface alpha under colored lights in absolute terms
colored_revolve_faces_leave_no_alpha_holes_at_one_to_one compared each
representation only with its own 3x render, so a 60% opacity lost or
applied twice by SVG or PDF import passed at both scales. The test now
also reads the alpha inside the body: 153 within 3 levels with a fill
opacity of 60%, 214 within 3 levels with 60% gradient stops (front and
back faces at 60% each), and 255 when opaque.
2026-11-20 19:28:51 -08:00
dotCooCoo a6c0557819 Align: align.toSelection returns "artboard" for one object only without the Artboard tool
With one object selected, no anchor points selected and the Artboard tool
chosen, align.toSelection returns "selection", the stored choice. The params
text and docs/mcp.md now name that condition, and crates/mcp/src/ui_catalog.rs
is regenerated. A test covers the case.
2026-11-20 19:28:21 -08:00
dotCooCoo d0689d1f68 Document Info: frames that fetch nothing reuse the cached rows without copying them
The panel's document.info cache was read by value on every call, so
each frame of the panel deep-copied the whole JSON result even when
nothing was fetched, a frame with its menu open copied it once more,
and a refresh copied it again to store it. The cache is now an Arc: a
frame whose key matches returns the stored result, and a refresh
stores the new one without a copy.

The key is unchanged (document, revision, Selection Only and, while the
Artboard tool is current, its options), a category still filters the
stored result, and a failed fetch leaves the stored result in place.

Tests: frames_that_fetch_nothing_reuse_the_cached_rows checks that idle
frames share one result with the same rows as the by-value read, and
that each key change stores a new one; cached_rows_read_timing (ignored)
times both reads.
2026-11-20 19:27:24 -08:00