Commit Graph
23660 Commits
Author SHA1 Message Date
dotCooCoo 4c29723f58 Merge main into fix/new-document-card-tile-small-window 2026-11-28 14:40:50 -08:00
dotCooCoo 1733a3d6b3 New Document: details stay in rows in small windows
A narrow Preset Details column (an 800 by 600 or 900 by 700 window) now
shows Height and Artboards side by side with Orientation under them, so
Orientation's two buttons stay side by side instead of stacking, and
the Bleed fields in two rows, Top and Bottom above Left and Right, with
the link button after Right. A column at least 11 control heights wide
keeps the one-row layout.
2026-11-28 14:40:44 -08:00
.CooCoo 10f8411ac0 Merge pull request #9994 from dotCooCoo/fix/selection-text-runs-paints-count
Select: deselecting type counts each run before taking it out of the paints
2026-11-28 14:40:30 -08:00
.CooCoo 6ac7416552 Merge pull request #9972 from dotCooCoo/fix/issue-7257
Fix #7257: thin curved strokes draw with half as many outline lines
2026-11-28 14:39:16 -08:00
.CooCoo d08edbcf19 Merge pull request #9976 from dotCooCoo/fix/symbols-empty-state-appearance-rows
Panels: Symbols shows its empty hint again; Appearance rows line up
2026-11-28 14:36:29 -08:00
dotCooCoo 64c985d328 Merge main into feat/scripts-api-d4c-threads-stories
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/target-app-parity.md
2026-11-28 14:36:12 -08:00
dotCooCoo 24962909b1 Merge main into fix/issue-7257 2026-11-28 14:36:09 -08:00
dotCooCoo a9aa1f405b Render: curve lines keep both turns of a curve that turns back twice
A curve drawn as lines took its line ends from the curve's bending alone.
Where a curve runs out and back twice along almost one line, its two turns
hold almost no bending, so a thin stroke drew it with one step in two
halves: each half held a whole turn, the two halves' gaps canceled, and
the band ran straight from start to end without either turn. A cubic from
(0, 0) out to x = 28.87 and back to x = -28.87 drew only around x = 0.

Each step is now checked against its curve: where the curve lies more
than twice the chord allowance from the step's line, to either side or
past its ends, the step count doubles, up to the curve's equal steps.
Wide strokes draw their long curves the same way and get the same check.
2026-11-28 14:36:09 -08:00
dotCooCoo ce6b32183b Packaging: the Fold Lines role list is as tall as its four roles
The role list took all the room the panel gave it. In the floating
window the panel opens in (260 by 360 pt), Check and Fold Preview were
drawn below the bottom of the panel, and the Fold Angle row was cut off,
with no scroll to reach them. The list now takes its natural height, as
the Learn panel's skill list does, so the controls show under the four
roles.
2026-11-28 14:35:22 -08:00
dotCooCoo 3ce53dbb6c Merge main into fix/script-collection-numeric-names 2026-11-28 14:35:22 -08:00
dotCooCoo 6d8a32bb36 Merge main into fix/repeat-outer-effect-redraw 2026-11-28 14:34:59 -08:00
dotCooCoo 66a8c72e1a Merge main into fix/js-arguments-names-heap 2026-11-28 14:34:56 -08:00
dotCooCoo 5c304ffccd Merge main into fix/cjk-wait-in-pointer-tests 2026-11-28 14:34:52 -08:00
dotCooCoo f7508cf72f Merge main into fix/select-highlight-reads 2026-11-28 14:30:05 -08:00
dotCooCoo 2370d7ffe8 Merge main into fix/speed-i13656-selection-marks 2026-11-28 14:29:04 -08:00
dotCooCoo ee05541d99 Canvas: the selection's marks are built once per change
The canvas built the outlines, anchors and dots of the selection again in
every pass, walking every selected object three times (the outlines, the
anchors and the dots each count the marks first). They are now kept in the
canvas cache with a key of the document's uid and revision, what the view
hides, Halftone Preview, the tool whose marks show and the Selection &
Anchor Display preferences, and built again only when that key changes.

With 10,000 rectangles selected, an idle frame went from about 290 ms to
about 210 ms on the build host.
2026-11-28 14:28:58 -08:00
dotCooCoo e2c4d0bbbe Merge main into feat/scripts-api-d9-do-script 2026-11-28 14:28:32 -08:00
dotCooCoo c75a01b463 Merge main into fix/brush-options-unchanged-approval-b-verify 2026-11-28 14:28:32 -08:00
dotCooCoo 16c63fdec9 Merge main into feat/distort-text-symbols 2026-11-28 14:28:32 -08:00
.CooCoo 2c84465fba Merge pull request #9963 from dotCooCoo/fix/ui-sweep-dock-panels-b
Panels: Document Info values line up, Image Trace Create shows its labels, and Info and Links keep their spacing
2026-11-28 14:27:47 -08:00
dotCooCoo 57cf0f348f Merge main into feat/script-warning-reaches
# Conflicts:
#	crates/ui-egui/src/tests/script_run.rs
2026-11-28 14:23:56 -08:00
dotCooCoo 9c0945545b Merge main into feat/scripts-scriptui-dialogs
# Conflicts:
#	crates/js/src/scriptui.rs
#	crates/js/src/scriptui_tests.rs
#	crates/ui-egui/src/script_runs.rs
2026-11-28 14:23:52 -08:00
dotCooCoo 7e7662a511 Merge main into fix/symbols-empty-state-appearance-rows 2026-11-28 14:22:13 -08:00
dotCooCoo fe4af8db1b Appearance: Fill and Stroke swatches share one column with profiles and notes
Every Fill and Stroke row of a stack now keeps the same room for the
width profile, the stroke notes and the weight, empty where the row has
none, so the swatches line up when a stroke has a non-uniform profile or
notes. The notes' width follows the longest notes in the stack, up to 16
characters; longer notes are cut at the end and show whole in a tooltip.

The Graphic Styles revert test now aims at the object row's thumbnail
past the empty disclosure column that the aligned top-level rows keep.
2026-11-28 14:22:07 -08:00
dotCooCoo 2974180502 Merge main into feat/plugin-api-importer-output-kinds
# Conflicts:
#	crates/engine/src/cmd/plugin.rs
#	crates/plugins/src/lib.rs
#	crates/plugins/src/manifest.rs
#	crates/plugins/src/permissions.rs
#	docs/plugins.md
#	docs/target-app-parity.md
2026-11-28 14:21:28 -08:00
dotCooCoo a869baae60 Select: deselecting type counts each run before taking it out of the paints
The check that chooses between taking removed objects out of the
selection's paints and reading the selection again counted a type object
once, while taking it out reads one stroke weight per run. Deselecting a
type object of 10,000 runs beside two squares took 10,002 weights out
instead of reading the two squares again.

Reads now counts a type object once for each of its runs. A test in
large_edits.rs counts the stroke weights read or taken out; it fails
without the change (10,002 weights).

Follows #9930, which made the same check count the contents of groups.
2026-11-28 14:21:11 -08:00
.CooCoo d76abce927 Merge pull request #9974 from dotCooCoo/fix/status-bar-zoom-presets
Status bar: the zoom field's presets menu lists the zoom stops, Fit on Screen and Fit All again
2026-11-28 14:18:21 -08:00
dotCooCoo 1ce80e6d48 Paint: Invert and Complement refuse a bad target with nothing selected
With nothing selected, `paint.invert` and `paint.complement` recolored the
default fill or stroke before reading `target` and `aligned`, so a bad value
was accepted and changed the default. They now read both before the default
branch, as #8099 does for `paint.setFill` and `paint.setStroke`.
2026-11-28 14:18:20 -08:00
dotCooCoo 9ac55b4320 Pathfinder: pin the outputs of the craft-libs 610c86792a sweep
All 40 outputs keep their shape, subpath and anchor counts. Their areas
and lengths agree with the earlier pins to better than 1e-6 relative;
only the last digits of the coordinates changed.
2026-11-28 14:17:43 -08:00
dotCooCoo 212f81f388 Pathfinder: the winding check test checks a winding that is off
The sweep now gives the triangle and the self-crossing operand of #5478
windings that add up, and 2,000,000 random pairs of a triangle and a
five-point polygon on a 4 by 4 grid found no input that it gets wrong.
The test now checks that the sweep's windings add up on that input and
that a winding counting the triangle twice is caught.
2026-11-28 14:17:43 -08:00
dotCooCoo c24aacb328 Live Paint: edges that leave a vertex together keep the sweep's order
Since craft-libs#721 the sweep places output curves on their inputs near
a flat end. Where a ring's hole and a disk share a circle, it now puts
the two copies of the circle less than the flattening tolerance apart
where they leave a vertex. leaving_angle flattened each edge, after its
ends were moved onto the vertex, so the two copies could swap places
around the vertex and a face was lost: at unit size the ring's face
reported the disk as its source, and livePaint.make gave 2 faces
instead of 3.

leaving_angle now measures each edge as the sweep placed it, before its
ends were moved, and finds the point at distance r on the curve itself
by bisection.
2026-11-28 14:17:43 -08:00
dotCooCoo a7373ec7d6 Dependencies: take every craft-libs crate from craft-libs main at 610c86792a
Every storytold/craft-libs crate and the hayro, krilla and linesweeper
patches move from 51fcc3b041 to 610c86792a, the head of craft-libs main.
xtask pdf-deps expects the new rev.
2026-11-28 14:17:43 -08:00
dotCooCoo 5728ff39cd Merge main into feat/scripts-page-item-blending-mode
# Conflicts:
#	crates/engine/src/tests/script_dom.rs
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-28 14:17:28 -08:00
dotCooCoo c2ef3ae57b Merge main into fix/status-bar-zoom-presets
# Conflicts:
#	crates/ui-egui/src/chrome/status_bar.rs
2026-11-28 14:17:28 -08:00
dotCooCoo 79d78a95de Merge main into feat/scripts-api-d4-text
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/target-app-parity.md
2026-11-28 14:16:28 -08:00
.CooCoo 6467317a97 Merge pull request #9966 from dotCooCoo/fix/ui-sweep-dock-panels-a
UI: Swatches footer stays in view; Stroke arrowhead rows line up
2026-11-28 14:13:39 -08:00
.CooCoo 3bdaa5bcc0 Merge pull request #9991 from dotCooCoo/fix/main-docking-test-next-back
Main: the flyout grip test finds its grip with rfind
2026-11-28 14:10:39 -08:00
dotCooCoo 0cc8be8eb3 Panel docking: the flyout grip test finds its grip with rfind
#9964's floating-group test took the last grip matching the tab's row with filter(..).last(), which clippy's -D warnings rejects on a double-ended iterator (double_ended_iterator_last, then filter_next_back), so main's gate failed at clippy on crates/ui-egui/src/panel_docking/tests.rs:1118. It now uses rfind, which returns the same grip.
2026-11-28 14:10:36 -08:00
dotCooCoo 06c260f637 Render: redraw the effects on a shadowed radial or mirror repeat's copies
A radial or mirror repeat with an effect of its own, such as a drop shadow,
takes its bounds from the object-effects branch, which falls back to
`own_box`. `own_box` measured the placed steps of a spine-aligned blend but
not the rotated or reflected copies of a repeat, so moving such a repeat left
the copies' geometry effects outside the redrawn area. `own_box` now unions
a repeat's placed copies as #9936 does in `cull_bounds_in`.

`placed_live_effect_bounds` now looks for effects below the node only: the
node's own effects run on the placed whole and its callers measure them, so a
repeat or blend whose only effect is its own no longer expands its copies or
steps to measure them.
2026-11-28 13:59:20 -08:00
dotCooCoo 893f0db16a UI: a highlighted Blend Mode, Library or font Style applies only once it is chosen
The Transparency panel's Blend Mode, the Libraries panel's Library and
the font fields' Style select are bound to a value the code compares
with the document after each pass. Under the default write-through
policy, an entry highlighted with the arrow keys was written to that
value, so the code ran transparency.set, library.setCurrent or the
font command before the entry was chosen, and Escape ran it again to
put the value back. Each binding now writes only on commit
(EditPolicy::OnCommit), so Enter or a click applies the entry.
2026-11-28 13:53:53 -08:00
dotCooCoo 6f36d55234 Merge main into train/carry8496 2026-11-28 13:51:41 -08:00
dotCooCoo 9482a5a36f Scripts: an arguments object's map of argument names counts toward the heap limit
An `arguments` object keeps a map with one entry per argument, which the heap estimate left out
at allocation and at collection, so a script that kept many of them could grow past the heap
limit. The object now reserves and charges the map, the collector counts it, and the call's
up-front reservation includes it (arrow functions, which make no `arguments` object, reserve
none). Same accounting as #9928 gave host object handles.
2026-11-28 13:49:29 -08:00
dotCooCoo 6e3c328646 Merge main into fix/issue-7257 2026-11-28 13:49:09 -08:00
dotCooCoo d91b815690 Render: thin curve lines stop where the curve turns back
Each line end of a curve drawn as lines moved out by the curve's whole gap
from the chords beside it, including the part along the chord. Where a
curve runs out and back along almost one line, that part points along the
curve, so the end moved past the turn: a cubic from (0, 0) out to x = 75
and back drew its band out to x = 112.5. The ends now move only across
their chords.
2026-11-28 13:49:09 -08:00
dotCooCoo bca6e772f5 Tests: Cutout and Objects on Path clicks wait for the CJK font lookup
The Japanese pass of gallery_cutout_setting_uses_its_localized_label and
compact_objects_on_path_options_pivot_rotate_reset_and_save measures
controls in one frame and clicks the saved positions in later frames.
When the CJK font lookup finishes in between, the labels change width
and the click can miss. Both tests now call wait_for_cjk_fonts() before
measuring, as #9898 did for the Effect Gallery and Hyphenation tests.
2026-11-28 13:47:50 -08:00
.CooCoo 3e9b4f735c Merge pull request #9947 from dotCooCoo/fix/anchor-inspector-accepted
Anchor Inspector: canceling a field edit restores the anchor or the Points per segment count
2026-11-28 13:40:00 -08:00
.CooCoo 471433d007 Merge pull request #9952 from dotCooCoo/train/carry9280
Title bar: the Close caption button closes the window
2026-11-28 13:39:46 -08:00
dotCooCoo 518bfef631 Merge main into fix/ui-sweep-dock-panels-a
# Conflicts:
#	crates/ui-egui/src/panels/swatches.rs
2026-11-28 13:39:40 -08:00
.CooCoo 854e5a5d5d Merge pull request #9977 from dotCooCoo/fix/packaging-fold-angle
Packaging: canceling a Fold Angle edit restores the fold lines' angles
2026-11-28 13:39:33 -08:00
.CooCoo 972543fc8d Merge pull request #9982 from dotCooCoo/fix/transform-each-copy-refusal
Transform Each: a refused Copy keeps its reason under the rows
2026-11-28 13:39:13 -08:00