Commit Graph
23066 Commits
Author SHA1 Message Date
dotCooCoo 6d2bfe6640 Merge main into fix/craft-libs-f762f98 2026-11-28 17:12:34 -08:00
dotCooCoo 9ed5e06ff3 Dependencies: craft-libs f762f98a, with the status-bar zoom look and the compass clear of the scroll bars
- Every craft-libs crate moves from 610c86792a to f762f98a (craft-libs
  main), which adds the fixed corner-widget inset, the ruler corner's
  plus, popover padding, and a native window's move recorded once.
- The status bar's Zoom field uses ZoomField::status_bar, so it draws
  without an outline in the status bar's look.
- The Rotate View compass is placed in CanvasScrollbars::clear_of
  instead of a copy of the scroll bars' sizes.
- The tools' corner-widget inset is public, and a test holds it equal
  to CornerWidgets::INSET, the inset the canvas draws the widgets at.
2026-11-28 17:12:28 -08:00
.CooCoo 31a5e30057 Merge pull request #10013 from dotCooCoo/fix/move-handles-zero-offset-keeps-live
Direct Selection: a move by nothing leaves a live shape that needs no change live
2026-11-28 17:04:05 -08:00
.CooCoo ed25a5a2cf Merge pull request #9990 from dotCooCoo/fix/repeat-outer-effect-redraw
Render: redraw the effects on a shadowed radial or mirror repeat's copies
2026-11-28 17:02:10 -08:00
.CooCoo bd11114c7b Merge pull request #9988 from dotCooCoo/fix/cjk-wait-in-pointer-tests
Tests: Cutout and Objects on Path clicks wait for the CJK font lookup
2026-11-28 17:01:51 -08:00
.CooCoo acec33a9f2 Merge pull request #9082 from dotCooCoo/feat/scripts-scriptui-dialogs
Scripts: build and show ScriptUI dialogs with new Window("dialog")
2026-11-28 16:51:41 -08:00
.CooCoo d4b6d7f10d Merge pull request #9050 from dotCooCoo/feat/scripts-api-d4-text
Scripts: text frames, text ranges and fonts for scripts
2026-11-28 16:50:36 -08:00
.CooCoo 9c2736bc00 Merge pull request #9875 from Hassan1305/fix-9848-mosaic-stale-warning
Object Mosaic: clear the away warning on return to the original image (#9848)
2026-11-28 16:48:44 -08:00
.CooCoo 2fbb90292a Merge pull request #9877 from Hassan1305/fix-9225-pen-segment-drag
Paths: bend a straight segment evenly, handles from its thirds (#9225)
2026-11-28 16:48:39 -08:00
.CooCoo 358a64bbab Merge pull request #10002 from dotCooCoo/fix/speed-i13656-selection-roots
Selection: the selected roots are found once for each selection
2026-11-28 16:43:22 -08:00
.CooCoo 15aba428ce Merge pull request #9995 from dotCooCoo/fix/speed-i13656-selection-marks
Canvas: the selection's marks are built once per change
2026-11-28 16:43:01 -08:00
.CooCoo e15bb58fbd Merge pull request #10004 from dotCooCoo/fix/speed-i13657-find-font
Find Font: the document's fonts are listed only while the dialog is open
2026-11-28 16:42:39 -08:00
.CooCoo fdb7483d06 Merge pull request #9998 from dotCooCoo/chore/craft-libs-610c86792a
Dependencies: craft-libs 610c86792a, with Live Paint keeping coincident edges in the sweep's order
2026-11-28 16:42:29 -08:00
dotCooCoo 7f96211081 Docs: state the zero-offset rule for path.moveHandles
The params text and docs/mcp.md now say that a move by 0, 0 changes only
the anchors it makes corners, so a live shape whose listed anchors need no
change stays live, and one with an anchor made a corner becomes a plain
path.
2026-11-28 16:36:19 -08:00
dotCooCoo 17a5016538 Merge main into fix/move-handles-zero-offset-keeps-live 2026-11-28 16:22:44 -08:00
dotCooCoo 4fd0ec2bd3 Merge main into fix/cjk-wait-in-pointer-tests 2026-11-28 16:12:48 -08:00
dotCooCoo a8e75a5ab6 Merge main into fix/repeat-outer-effect-redraw 2026-11-28 16:12:30 -08:00
.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
dotCooCoo a1cdf0668a Find Font: repeat the pump test's edit when the font generation changes
Another test thread that changes the font database between the two pump passes makes the
second pass list the fonts again, so the one-listing assertion could fail. The test now repeats
the edit until the generation stays the same across both passes, as kept_over_frames does.
2026-11-28 16:08:59 -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 0bc8805922 Merge main into fix/speed-i13656-selection-roots 2026-11-28 15:49:33 -08:00
dotCooCoo b451e4a6de Merge main into fix/speed-i13656-selection-marks 2026-11-28 15:49:33 -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
dotCooCoo d9d60d7f7f Merge main into fix/speed-i13657-find-font 2026-11-28 15:26:17 -08:00
dotCooCoo d63d6f4db1 Find Font: the document's fonts are listed only while the dialog is open
The dialog pump ran text.fonts and the missing-font check on every new
version of the active document, with or without Find Font open, so each
edit walked the whole document twice. On a 20,000-object document that
was 2.2 ms and 23,443 allocations per edit frame.

The pump now returns at once when the dialog is closed. Opening the
dialog still lists the fonts, and an edit while it is open lists them
again.
2026-11-28 15:26:15 -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
dotCooCoo 8d782b15ac Canvas: the kept selection marks field is crate-visible
SelectionMarks is pub(crate), so the CanvasCache field that holds it is
too; clippy's private_interfaces lint refused a pub field of that type.
2026-11-28 15:17:24 -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 414607a074 Merge main into fix/speed-i13656-selection-roots 2026-11-28 15:00:05 -08:00
dotCooCoo 0ab10f3935 Selection: the selected roots are found once for each selection
selected_roots put the selected objects in paint order and dropped the
inner ones, two walks of the document, every time a command or an
enabled check asked. A rebuild of the menus asks many times for one
selection. The roots are now kept on the thread with the document
version (held weakly, so its address is not reused) and the selected
objects, and found again only when either changes.

With 10,000 rectangles selected, a menu rebuild after Select All went
from about 500 ms to about 340 ms on the build host.
2026-11-28 15:00:04 -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