Commit Graph
23006 Commits
Author SHA1 Message Date
.CooCoo e0649cf32f Merge pull request #8924 from dotCooCoo/feat/script-warning-reaches
Scripts: the Other Script… warning lists what the script reaches outside the document
2026-11-28 16:09:06 -08:00
.CooCoo dcc6cd8241 Merge pull request #9399 from dotCooCoo/fix/command-dialog-document-scope
Command dialogs: restrict edits to their target document
2026-11-28 16:08:15 -08:00
.CooCoo 27cce03a76 Merge pull request #9989 from dotCooCoo/fix/js-arguments-names-heap
Scripts: an arguments object's map of argument names counts toward the heap limit
2026-11-28 16:07:31 -08:00
.CooCoo d077b7cbb1 Merge pull request #9283 from dotCooCoo/feat/scripts-page-item-blending-mode
Scripts: PageItem.blendingMode reads and sets an object's blending mode
2026-11-28 16:06:38 -08:00
.CooCoo 79a3805b1d Merge pull request #9957 from dotCooCoo/train/carry8496
3D: a ring of overlapping faces is broken at one of its own faces
2026-11-28 16:06:32 -08:00
.CooCoo 8c6e5d7e33 Merge pull request #9129 from dotCooCoo/feat/plugin-api-importer-output-kinds
Plug-ins: importers at API level 4 open type, embedded images, layers and artboards
2026-11-28 16:06:28 -08:00
.CooCoo 4bfa4bef66 Merge pull request #9997 from dotCooCoo/fix/js-eval-new-target
Scripts: direct eval inside a function reads its new.target
2026-11-28 16:06:25 -08:00
.CooCoo bff5f9f185 Merge pull request #9904 from dotCooCoo/feat/distort-text-symbols
Free Transform: Perspective Distort and Free Distort put type and symbol instances' corners on the handles
2026-11-28 16:06:21 -08:00
.CooCoo 3c58811b64 Merge pull request #10007 from dotCooCoo/fix/doc-info-long-values-wrap
Document Info: a value wider than the panel wraps inside it
2026-11-28 16:06:18 -08:00
.CooCoo f326bdb9d3 Merge pull request #9993 from dotCooCoo/fix/bound-select-highlight
UI: a highlighted Blend Mode, Library or font Style applies only once it is chosen
2026-11-28 16:05:51 -08:00
.CooCoo a610247a04 Merge pull request #10001 from dotCooCoo/fix/packaging-fold-lines-layout
Packaging: the Fold Lines role list is as tall as its four roles
2026-11-28 16:05:36 -08:00
dotCooCoo 533a923fa1 Document Info: say in the row comment which values wrap 2026-11-28 15:46:16 -08:00
dotCooCoo 7dd3aa5047 Merge main into fix/doc-info-long-values-wrap 2026-11-28 15:45:57 -08:00
dotCooCoo 97ee32bcf7 Document Info: a value wider than the panel wraps inside it
A row moves its value under the label when the two do not fit on one
line, but a value wider than the whole panel, such as a long document
name, still ran past the panel's edge. The value now shows as
multiline selectable text, so it wraps inside the panel. Short values
still stand at the row end.
2026-11-28 15:45:57 -08:00
.CooCoo 9d6438931f Merge pull request #10003 from dotCooCoo/fix/main-doc-info-row-wrap
Main: a Document Info row wraps only when its label and value do not fit
2026-11-28 15:25:30 -08:00
dotCooCoo 7afd027702 Document Info: a row wraps only when its label and value do not fit
#9963 took wrapping off Document Info rows so each value stands at the panel's right edge. In a narrow panel in German the Flattener Preset row then ran past the panel, and main's gate failed on panels::tests_panel_rows::the_document_info_rows_wrap_in_a_narrow_panel_in_german. A row now measures its label and value: when both fit on one line it does not wrap, so the value stays at the right edge, and otherwise it wraps.
2026-11-28 15:25:27 -08:00
.CooCoo e23c4d7624 Merge pull request #9999 from dotCooCoo/fix/new-document-small-window-rows
New Document: details stay in rows in small windows
2026-11-28 15:00:27 -08:00
dotCooCoo bb55ab3963 New Document: format the small-window layout test 2026-11-28 14:54:58 -08:00
dotCooCoo 548a8015aa Merge main into fix/command-dialog-document-scope 2026-11-28 14:50:18 -08:00
dotCooCoo 2f9621bc38 Scripts: direct eval inside a function reads its new.target
In a .js script, `function F() { return eval("new.target"); } new F()`
threw a SyntaxError: eval code was always parsed as if it were at the
top of a script, where `new.target` is not allowed (ECMA-262 2015
section 18.2.1.1).

A function that calls eval now keeps its new.target in the hidden
binding arrow functions already use, also when it was compiled as ES5.1.
A direct eval looks that binding up through the caller's scopes (one
unit of fuel per scope); when it finds one, the eval code may use
`new.target` and reads that value. At the top of a script, in an arrow
function there, and through an indirect eval it stays a SyntaxError.
`super` in eval code is still not supported.

A test in es2015_tests.rs covers plain, strict, arrow, nested-eval and
class-constructor callers and the three SyntaxError cases; it fails
without the change. Follows #9094.
2026-11-28 14:47:16 -08:00
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 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 66a8c72e1a Merge main into fix/js-arguments-names-heap 2026-11-28 14:34:56 -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 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 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
.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 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
.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