Commit Graph
23660 Commits
Author SHA1 Message Date
dotCooCoo 56de7f0f5b Image Trace: line up the settings rows in one label column
The Image Trace panel, the Tracing Presets details and the preset editor
gave each settings row its own label column, so the Threshold, Paths,
Corners, Noise and Stroke sliders started at different x positions and
had different lengths. The rows now share one FieldGroup, so every
select and slider starts at the width of the widest label, including
across the Advanced section.
2026-11-28 18:04:53 -08:00
dotCooCoo 36744f4651 Merge main into fix/stroke-panel-label-column 2026-11-28 18:01:59 -08:00
dotCooCoo 8270b4f982 Stroke: the panel's rows share one label column
The Weight, Arrowheads, Scale, Align and Profile rows each sized their
own label column, so their controls started at different x positions.
The panel now shows its rows in one FieldGroup, and they share the
widest label.
2026-11-28 18:01:58 -08:00
dotCooCoo 4a76a579ac Merge main into fix/tools-rail-fits-all-tools 2026-11-28 18:01:32 -08:00
dotCooCoo 799c6f01be Tools: a short rail shows its scroll bar with the pointer away
When the window is too short for every tool, the Tools panel, toolbars
made with New Toolbar and torn-off tool strips scroll their tools. The
scroll bar showed only while the pointer was over the rail, so nothing
showed that tools were hidden. The rail now keeps its scroll bar visible
whenever its tools do not fit (ToolRail::bar_at_rest).
2026-11-28 18:01:32 -08:00
dotCooCoo 9b438e3cdf Merge main into fix/3d-dialog-document-units 2026-11-28 18:01:09 -08:00
dotCooCoo a7e5a58661 3D: length sliders show pt, or px in a pixels document
Extrude & Bevel's Depth and bevel Width and Height, and Revolve's Offset,
showed px in a points document. The classic Extrude & Bevel and Revolve
rows and the Map Art X and Y rows showed the document's unit after a
number of points. These sliders show the number of points they hold, so
each now shows pt, or px in a pixels document, through one rule
(three_d_classic::length_unit).
2026-11-28 18:01:08 -08:00
dotCooCoo c0bf4bd30b Docs: test262 counts match what cargo xtask test262 reports on main
The progress lines for the ES5 language runs, the ECMAScript 2015
collections and binary data runs, and the generator runs gave counts from
before later changes. On main at 0ac2b74614, cargo xtask test262 reports
4,676 of 4,682 ES5 language runs, 1,514 of 1,514 collection and binary
data runs, and 1,285 of 1,289 generator runs (669 tests) passing. The
generator tests that use classes now parse, so the 4 remaining generator
failures are the caller and arguments restrictions.
2026-11-28 17:59:50 -08:00
dotCooCoo 33748616bc Merge main into fix/appearance-well-spacing 2026-11-28 17:59:13 -08:00
dotCooCoo 031cdb1db0 Appearance: Fill and Stroke swatches no longer touch between rows
Each Fill and Stroke row drew its swatch at the control height, the
same height as the row, so the swatches of neighboring rows touched.
The swatch is now a small control, so it sits inside its row with room
above and below.
2026-11-28 17:59:10 -08:00
dotCooCoo 6d3680e554 Smart Guides: split the scale snap's edge helpers out of snap_scale_edges
The function stays under Clippy's cognitive complexity limit.
2026-11-28 17:58:23 -08:00
.CooCoo 0ac2b74614 Merge pull request #9055 from dotCooCoo/feat/scripts-api-d9-do-script
Scripts: app.doScript plays an action of the Actions panel
2026-11-28 17:55:11 -08:00
makesomethingshit ed7a50825f Web: test that the shell takes each browser drop once 2026-11-29 10:54:13 +09:00
dotCooCoo 25ba33c7e6 Merge main into fix/craft-libs-f762f98 2026-11-28 17:53:05 -08:00
dotCooCoo 2c18b10d17 Merge main into feat/distorted-image-place-replace 2026-11-28 17:41:51 -08:00
.CooCoo 1fe4d824c8 Merge pull request #9064 from dotCooCoo/feat/scripts-api-d4c-threads-stories
Scripts: nextFrame, previousFrame, story and document.stories for threaded type
2026-11-28 17:38:38 -08:00
dotCooCoo 8a269c4ce8 Scripts: direct eval inside a method or derived constructor reads super
In a .js script, `class B extends A { m() { return eval("super.x"); } }`
and `class B extends A { constructor() { eval("super()"); } }` threw a
SyntaxError: eval code was parsed with only `new.target` allowed, never
`super` (ECMA-262 2015 section 18.2.1.1).

Each compiled code now records what `super` and `new.target` may do in
eval code it runs: the rules of its function's body, the rules of the
code around an arrow function, or the rules the eval code itself was read
with. A direct eval parses its code with the caller's rules, so
`super.name` and `super[key]` work inside a method, accessor or class
constructor, and `super(...)` works inside a derived class's
constructor, also from an arrow function or a nested eval there. A plain
function inside a method, the top of a script, an indirect eval and a
`Function` body still give a SyntaxError. `super(...)` in eval code binds
`this` once; a second call is a ReferenceError.

Two tests in es2015_tests.rs cover the allowed and SyntaxError cases and
fail without the change; a third checks that a `Function` body reads its
own `new.target`. docs/mcp.md describes the rule. Follows #9094.
2026-11-28 17:34:04 -08:00
.CooCoo ac031311a2 Merge pull request #10018 from dotCooCoo/fix/speed-i13854-node-lookup
Performance: Document::node reads the node from the lookup cache without copying its path
2026-11-28 17:32:41 -08:00
dotCooCoo a0d26d1593 Merge main into fix/scale-snap-geometric-bounds 2026-11-28 17:32:20 -08:00
dotCooCoo 4ceaee694a Smart Guides: a scale lines up geometric edges with Use Preview Bounds on
With Use Preview Bounds on, dragging a bounding-box handle with the
Selection tool, a shape tool or Free Transform lined up the outside of
the selection's stroke with the other art's geometric bounds, which
Smart Guides use for the targets. A stroked object then stopped half a
stroke short of the edge it showed a guide for, the same mismatch moves
had before.

- The handle still drags the visual box, and the edges of the
  selection's geometric bounds line up with the targets and with even
  spacing. The margins between the two boxes keep their size unless
  Scale Strokes & Effects is on, when they scale with the box. Snap to
  Grid and Snap to Pixel still use the bounds the box shows, and the
  Slice Selection tool is unchanged.
- Tool contexts carry the Scale Strokes & Effects preference.
- New tests drag the right-middle handle of a rectangle with a 20 pt
  stroke toward another rectangle with the Selection tool and with Free
  Transform.

Part of #6436
2026-11-28 17:32:11 -08:00
.CooCoo 01f24fa4e4 Merge pull request #10010 from dotCooCoo/fix/addon-dialogs-revert
Add-on dialogs: a draft from before File › Revert leaves the restored drawing alone
2026-11-28 17:29:07 -08:00
.CooCoo a637f843c6 Merge pull request #10014 from dotCooCoo/fix/speed-i13853-cursor
Canvas: a wheel pan or zoom keeps the tool's cursor until the view is still
2026-11-28 17:28:54 -08:00
.CooCoo 67adc70369 Merge pull request #9775 from dotCooCoo/fix/brush-options-unchanged-approval-b-verify
Keep unchanged Brush Options out of document history
2026-11-28 17:28:50 -08:00
.CooCoo 75e639a024 Merge pull request #9915 from dotCooCoo/feat/arc-join-path-end
Three-Point Arc: join arcs to open path ends and snap to carry a path on
2026-11-28 17:28:46 -08:00
.CooCoo a836ddd7a7 Merge pull request #10019 from dotCooCoo/fix/speed-i13853-layers
Layers: the selection squares read held art from the listed rows
2026-11-28 17:28:42 -08:00
.CooCoo 9f322c6a73 Merge pull request #9992 from dotCooCoo/fix/invert-empty-selection-target
Paint: Invert and Complement refuse a bad target with nothing selected
2026-11-28 17:28:38 -08:00
.CooCoo 6355b468a5 Merge pull request #10009 from dotCooCoo/fix/panel-harness-off-window
Tests: panel harness clicks fail on controls outside the window
2026-11-28 17:28:34 -08:00
.CooCoo 398fdd672c Merge pull request #10017 from dotCooCoo/fix/js-collections-iterator
Scripts: Map, Set and typed array constructors read their argument through its iterator
2026-11-28 17:28:11 -08:00
.CooCoo f431acf693 Merge pull request #10016 from dotCooCoo/fix/pattern-bend-pen-samples
Brushes: pen-driven art and pattern brushes keep the size of a short pen change
2026-11-28 17:28:08 -08:00
.CooCoo 0beaaec050 Merge pull request #9975 from dotCooCoo/fix/select-highlight-reads
UI: a highlighted list entry applies only once it is chosen
2026-11-28 17:27:54 -08:00
.CooCoo 774891d6ff Merge pull request #8088 from jmverges/fix/6983-followup-page-widths-pick-font-copy
.ai import: type takes the installed copy that sets its PDF part's widths
2026-11-28 17:25:40 -08:00
dotCooCoo f0769af30e Tests: the DXF writer goldens keep LF line endings in a checkout with core.autocrlf
export_bytes_match_shared_writer_goldens compares the DXF writer's output
with crates/cad/tests/data/shapes_r12.dxf and shapes_r2018.dxf byte for
byte. With core.autocrlf=true, git checked both files out with CRLF line
endings while the writer emits LF, and the test failed. A root
.gitattributes now marks those files -text, so git checks them out with
the LF bytes stored in the index.
2026-11-28 17:25:22 -08:00
.CooCoo 664571cbef Merge pull request #9852 from dotCooCoo/fix/script-collection-numeric-names
Scripts: collection reads look up names such as -1 and 1.5
2026-11-28 17:18:51 -08:00
dotCooCoo 1935494805 Merge main into fix/script-collection-numeric-names
# Conflicts:
#	crates/engine/src/tests/script_dom.rs
#	docs/target-app-parity.md
2026-11-28 17:18:25 -08:00
dotCooCoo 91e54b669e Clean Up: Hairline Slivers' widths use the stroke unit in the framework dialog
The parameter dialog on main builds its rows through the craft UI
framework, so the unit rule for the Hairline Slivers width rows moves
there: `Setting` carries the stroke unit's `LengthUnits` for
`object.path.cleanUp` and `select.object.hairlineSlivers`, or points
when the stroke unit rounds 0.001 pt to 0.
2026-11-28 17:16:09 -08:00
dotCooCoo 4999199bd5 Merge main into feat/scripts-api-d4c-threads-stories
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/src/script/dom/text.rs
#	crates/engine/src/tests.rs
#	crates/engine/src/tests/script_text.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/gaps.md
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-28 17:15:13 -08:00
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
dotCooCoo 6e117821db Merge main into feat/hairline-slivers 2026-11-28 17:03: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
dotCooCoo b9e61e9754 Merge main into fix/speed-i13854-node-lookup 2026-11-28 17:00:33 -08:00
dotCooCoo 4fc4cbca0b Performance: Document::node reads the node from the lookup cache without copying its path
Document::node went through index_path, which copied the node's index
path out of the lookup cache into a new Vec, walked the tree to check it,
and walked it again to return the node. The menus' states call it for
every selected object in many of their checks, so a rebuild of the menu
states with 10,000 objects selected made hundreds of thousands of copies.

node now follows the place the cache has for the id once, without a
copy. When the cache has no single place for it, the path is deeper than
32 levels, or the node there no longer has the id, it looks the node up
as index_path does.

vectorcraft_doc::path_copies counts the paths the cache copies out, for
the new test.
2026-11-28 17:00:31 -08:00
dotCooCoo 1729de3109 Merge main into feat/scripts-api-d9-do-script 2026-11-28 16:57:36 -08:00
dotCooCoo fbb0f2d5ff Merge main into feat/scripts-api-d4b-text-styles 2026-11-28 16:57:12 -08:00
dotCooCoo 1e20ae2543 Merge main into fix/speed-i13853-layers 2026-11-28 16:52:15 -08:00
dotCooCoo 7fcd28eaa5 Brushes: pen-driven art and pattern brushes keep the size of a short pen change
With Scale or Width on a pen input, a pattern tile or art brush art was
bent by checking the outline at evenly spaced positions, so a pen change
that fell between two of them was drawn at the size on either side. A
10 x 4 pt tile on a 10 pt path with a pressure peak at 2.2 pt was 2 pt
either side there instead of 6 pt.

The bent outline is now split at the recorded pen samples where the size
turns by more than the outline's tolerance, in both the fitted curves and
the chords, so those samples land on anchors. Samples that keep the size
on a straight course add no anchors.
2026-11-28 16:52:01 -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
dotCooCoo e7bf7b789f Scripts: Map, Set and typed array constructors read their argument through its iterator
new Map, new Set, new WeakMap and new WeakSet read their argument by
index (an array, a string or an object with a length), so a generator,
a Map, a Set or any other iterable was a TypeError, and an array whose
@@iterator was replaced was still read by index. They now read it
through GetIterator and close the iterator when adding an entry throws
(ECMAScript 2015, sections 23.1.1.1, 23.2.1.1, 23.3.1.1 and 23.4.1.1).
A Map or WeakMap entry that is not an object is a TypeError.

The typed array constructors and %TypedArray%.from read a source with
an @@iterator method through its iterator to the end before mapping
it, and any other source as an array-like object (sections 22.2.1.4
and 22.2.2.1).

Map.prototype[@@iterator] is entries, Set.prototype[@@iterator] is
values, %TypedArray%.prototype[@@iterator] is values, and the Map, Set
and array iterators inherit %IteratorPrototype%, so for-of and spread
walk them.

Changed behavior: an array-like object without @@iterator passed to
new Set or new Map is now a TypeError, and Uint8Array.from([1, 1], f)
with an f that changes the array maps the values read before f ran.
2026-11-28 16:51:11 -08:00