Commit Graph
23685 Commits
Author SHA1 Message Date
dotCooCoo 6fcd193186 Merge main into feat/pattern-brush-scale-pen-inputs 2026-11-27 23:32:31 -08:00
HassanKhan 841a3f0d39 Paths: follow the pointer from near a straight segment's ends
The grab position mapped onto the thirds form is no longer clamped a
second time, so a grab close to an end still lands on the pointer.
2026-11-28 12:31:55 +05:00
dotCooCoo dc2f212acd Strokes: a click on the dot a round or projecting cap draws for a lone anchor hits the path
A round or projecting cap draws a dot for a subpath that never leaves
its first point: a closed lone anchor, or a line or curve back to the
same point. StrokeLayer::hits ruled the click out by the box of the
segments, which leaves out a closed lone anchor, and then measured
only segments with length, so a click on the dot missed. The fast
path for a plain centered stroke in hit_leaf also returned no hit for
a path whose only subpath is a closed lone anchor.

hits now measures each such subpath as the dot the stroke draws: a
disc for a round cap and an axis-aligned square for a projecting cap,
as wide as the stroke's body, on undashed strokes without a width
profile, which are the strokes that draw a dot. Inside and outside
strokes keep to their side of a closed path. Butt caps draw no dot
and still miss. The fast path hands a click near a closed lone anchor
to the full check.

Hover, Select Behind, Direct Selection and the Eyedropper go through
the same hit test, and a marquee over the anchor already selects it.
2026-11-27 23:30:58 -08:00
.CooCoo a859b6947d Merge pull request #9027 from dotCooCoo/feat/scripts-api-d7a-variables
Scripts: documents give scripts their variables, data sets and variable libraries
2026-11-27 23:30:13 -08:00
dotCooCoo 0a46b8e849 Scripts: script tests build with main's host classes and preset checks
main added HostClass initializers in host_tests.rs without the reflect
`info` field, a second test named
assigning_undefined_to_the_selection_throws_and_keeps_it, and type and
size checks on DocumentPreset settings.

- host_tests.rs: the six new HostClass initializers give `info`.
- The selection test for an index past the end of pageItems is renamed
  assigning_an_index_past_the_end_to_the_selection_throws_and_keeps_it.
- The preset heap tests used titles of 512 KiB and an array of 20,000
  booleans as a title, which the setter now refuses. They now reach the
  run's heap with 4,092-byte titles, and compare presets holding a
  four-number documentBleedOffsetRect with presets holding an eight-byte
  title, so each array element still counts.
2026-11-27 23:29:12 -08:00
dotCooCoo 94afe08eba Docs: unfilled-interior selection skips bounds hits and Preview-off layers
A symbol instance, text, a blend or an envelope is hit anywhere in its
bounds, and that hit keeps a click from reaching an unfilled path below.
Art on a layer whose Preview is off is hit in outline, so its unfilled
paths are not picked from inside.
2026-11-27 23:26:28 -08:00
dotCooCoo 6de3d000dc Keyboard Shortcuts: drop the group rows for Save Summary and Scripts folder scripts
main's #9357 grouped ui.pdfSummary.* under File and ui.runInstalledScript
under File > Scripts. On this branch a UI command whose params doc starts
{path} or {path: ...} needs a path, so neither is listed in Keyboard
Shortcuts, and commands_no_menu_holds_are_grouped_by_their_menu_or_panel
failed on the merged tree because those two GROUPS rows grouped nothing.
2026-11-27 23:26:27 -08:00
dotCooCoo 441d9161a5 Swatches: Swatch Libraries and Show Swatch Kinds report that they open a menu
The two footer buttons open menus but set no popup kind, so the footer
drew no dropdown arrow under them and screen readers were not told they
open a menu. Both now call `.popup(PopupKind::Menu)`, as the menu
buttons in the Brushes, Graphic Styles, Symbols and library panel
footers do.

`panel_harness` gains `Panel::popup_kind`, which reads the popup kind a
control reports from the accessibility tree.
2026-11-27 23:23:13 -08:00
dotCooCoo 248db5df83 Merge main into feat/plugin-api-live-effect-appearance 2026-11-27 23:22:15 -08:00
HassanKhan 2047c048b5 Paths: bend a straight segment from its thirds (#9225)
A straight segment's handles sit on its anchors, so bending it moved
them straight out of the anchors and curled its ends. bend_segment now
gives it its handles at its thirds first (the same line) and maps the
grab position onto that form, so it bows evenly and the grabbed point
still follows the pointer.
2026-11-28 12:20:40 +05:00
dotCooCoo 41eef74720 Effects: geometry effects work from bounds that hold lone anchors
A geometry effect is given the object's box as its reference, for
example the center a Transform effect scales and rotates about. Drawing,
the preview bounds, Expand Appearance's first step, shape art, the
outline check of the .ai reader and a stroke's effects before a Transform
that makes the stroke a path of its own measured that box with kurbo's
bounding_box, which counts only segments. A lone anchor was left out, and
a path of one anchor measured a box at the origin, so it scaled about
(0, 0). PathData::bounds, which the selection's box, Align, Transform
Each and every later effect in the stack use, holds lone anchors.

- geom: anchored_curve_bounds measures a BezPath as PathData::bounds
  measures the path it stands for.
- render, effects and the .ai reader give geometry effects that box.
  Gradient reference boxes and clip regions are unchanged.
2026-11-27 23:16:54 -08:00
dotCooCoo 306153fe10 Merge main into feat/plugins-web-worker 2026-11-27 23:16:19 -08:00
dotCooCoo 689b44ff13 Web: the stylus wheel reads into the framework's pen source
main moved the pen input onto the craft UI framework's PenSource, which
queues each reading and pairs the readings with a frame's pointer moves.
The web build now writes one reading per move, coalesced positions
included, with the wheel from Pointer Events' tangentialPressure, in
place of the StylusFeed moves the branch used before. The wheel rules
are unchanged: 0 reads as no wheel until the pen reports another value,
and another pen, the other end, a canceled press or a pen that left the
hover range reads it afresh.

The canvas-side pairing (frame_moves, StylusFeed::set_move) is gone on
main, so the branch's two ui-egui tests for it are dropped; the
vectorcraft-web tests check the readings written for each move.
2026-11-27 23:15:28 -08:00
.CooCoo 980e91ce95 Merge pull request #9876 from dotCooCoo/fix/scripts-menu-duration-import
Tests: the Scripts menu tests import Duration again
2026-11-27 23:11:09 -08:00
dotCooCoo 9acde80654 Tests: name BridgeTalk where a run needs an object scripts here do not have
Window is defined now that ScriptUI dialogs run, so new Window('dialog') no longer fails with the advice that names the `vc` object. an_error_names_the_script_its_place_and_kind and failed_script_report_keeps_message_and_adds_origin use new BridgeTalk() instead, which still fails with that advice.
2026-11-27 23:08:16 -08:00
dotCooCoo 875f49fc8d Merge main into feat/plugins-web-worker
The plug-in runtime keeps main's JavaScript plug-ins beside the web worker's module bytes and checked loads: a JavaScript plug-in's bundle is kept for the worker like a module, and load_checked loads it from its bundle.
2026-11-27 23:05:07 -08:00
dotCooCoo e99a3e11cf Merge main into feat/toolbar-command-buttons 2026-11-27 23:03:16 -08:00
dotCooCoo 2b2ff867a5 Scripts: class and object literal methods are named, computed methods keep their home object
The merge of main left object literal methods without a `name`, since
main named them with SetFunctionName and the branch defines them through
InitMethod. Methods and accessors defined with a home object are now
named as they are defined: after their key, with `get ` or `set ` before
an accessor's name and a Symbol's description in brackets.

- A named class's constructor takes the class's name before its methods
  are defined, so a static `name` member replaces it. An anonymous class
  takes the name it is assigned to unless a static member defines `name`.
- Computed methods and accessors in object literals have the object as
  their home object (new InitMethodKey), so `super` works in them.
- Class method keys and `super[key]` keep Symbol keys instead of
  converting them to strings.
- Classes have generator methods (`*m() {}`); a generator constructor is
  a syntax error.
- docs/target-app-parity.md and docs/mcp.md describe the new behavior;
  the class line drops test262 counts measured before main added
  destructuring, generators and function names.
2026-11-27 23:02:32 -08:00
dotCooCoo 6d457aa5e9 Tests: the Scripts menu tests import Duration again
main does not compile its ui-egui tests: crates/ui-egui/src/tests/scripts_menu.rs uses
Duration at lines 37, 320 and 324 without importing it (error E0433, "cannot find type
`Duration`"). #9816 removed the `use std::time::Duration;` line when its own uses went
away, and a354d09af4, merged at about the same time, added new uses of Duration in the
same file. Each passed CI on its own head; the two together do not build.
2026-11-27 23:00:30 -08:00
dotCooCoo 9fb14228c1 Scripts: the cross-document thread test reads app.documents active document first
app.documents now lists the active document first, so after file.new the new document is
documents[0] and the document with the three frames is documents[1]. The test picks each
document by that order.
2026-11-27 22:54:37 -08:00
dotCooCoo a2e04d98e0 Scripts: a script run after the startup scripts plays the Actions panel's actions
With Run Startup Scripts on, File › Scripts runs the chosen script as
`script.startup.run`'s `then`, and the app gave the Actions panel's
actions only to `script.run`'s own parameters. `app.doScript` in that
script then found no action set. The app now gives `then` the panel's
actions as well, unless the caller gave its own.
2026-11-27 22:51:03 -08:00
dotCooCoo 5a771c52f7 Merge main into feat/plugin-api-live-effect-appearance 2026-11-27 22:50:09 -08:00
dotCooCoo 09c58a297d Merge main into feat/js-es2015-classes
# Conflicts:
#	crates/js/src/ast.rs
#	crates/js/src/bytecode.rs
#	crates/js/src/compiler.rs
#	crates/js/src/es2015_tests.rs
#	crates/js/src/interp.rs
#	crates/js/src/interp_tests.rs
#	crates/js/src/lib.rs
#	crates/js/src/parser.rs
#	crates/js/tests/test262.rs
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-27 22:40:21 -08:00
dotCooCoo f0b6f5208a Tangent Circle Tool: a second click opens the radius dialog as a new held dialog
The dialog host now ties each held record to one opening of a dialog,
and drops a record whose dialog was opened again under the same id.
Reopening the radius dialog straight through the host left the new
opening with no record, so its Cancel never cleared the open dialog
(a_second_click_replaces_the_open_dialog failed). The dialog now opens
the replacement with open_held_with, which gives it its own OK and
cancel hook.
2026-11-27 22:35:31 -08:00
dotCooCoo 5b57a9dbe5 Merge main into feat/plugin-api-context-menus 2026-11-27 22:33:09 -08:00
.CooCoo 5b958a3d4f Merge pull request #9844 from dotCooCoo/feat/switch-document-preset
New Document profiles: Use Profile Defaults switches the default fill, stroke and font
2026-11-27 22:30:33 -08:00
HassanKhan f411242843 Object Mosaic: track OK's and Use Ratio's away warnings apart
A later away warning from Use Ratio no longer replaces OK's, so both go
once the dialog is back on its image.
2026-11-28 11:29:57 +05:00
dotCooCoo 0753eeeb9b Merge main into fix/issue-8583 2026-11-27 22:29:29 -08:00
dotCooCoo 5162f5db7b Merge main into feat/scripts-app-redraw 2026-11-27 22:26:34 -08:00
dotCooCoo dff7fc6afb Merge main into feat/script-warning-reaches 2026-11-27 22:25:47 -08:00
dotCooCoo 4dc01ead22 Merge main into feat/scripts-page-item-blending-mode 2026-11-27 22:25:45 -08:00
dotCooCoo f850b6b7a3 Merge main into feat/plugin-api-importer-output-kinds 2026-11-27 22:24:08 -08:00
.CooCoo 206b513d58 Merge pull request #9833 from dotCooCoo/fix/canvas-worker-test-handshake
Canvas: render worker tests no longer depend on wall-clock time
2026-11-27 22:20:40 -08:00
dotCooCoo 7c6ff69598 Merge main into fix/smooth-reach-pieces-bound
# Conflicts:
#	crates/engine/src/cmd/draw2/smooth.rs
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-27 22:20:16 -08:00
.CooCoo fb54602e4e Merge pull request #9816 from dotCooCoo/fix/jobqueue-finish-tests
Tests: wait for the Scripts and Proof Setups reads with no deadline
2026-11-27 22:19:54 -08:00
.CooCoo f15b8fc2bb Merge pull request #9821 from dotCooCoo/fix/macos-clippy-dead-code
macOS: clippy -D warnings passes on the desktop app again
2026-11-27 22:19:42 -08:00
dotCooCoo 7c50924fcb Merge main into fix/direct-click-keeps-group 2026-11-27 22:19:40 -08:00
.CooCoo 1bb7ec5542 Merge pull request #9846 from dotCooCoo/fix/composite-font-sample-zoom-cancel-b
Restore canceled Composite Fonts sample zoom
2026-11-27 22:18:33 -08:00
.CooCoo 9dc7456621 Merge pull request #9850 from dotCooCoo/fix/outline-placed-envelope-blend
Outline view: test the crossed box in envelopes and blends of placed documents
2026-11-27 22:18:20 -08:00
.CooCoo 950e5e99a6 Merge pull request #9856 from dotCooCoo/fix/retype-progress-window-clock
Tests: the Retype progress window test holds the app's clock still
2026-11-27 22:18:07 -08:00
.CooCoo 24b974325a Merge pull request #9862 from dotCooCoo/fix/eps-measuring-charge
EPS import: measuring an image's data left out charges one operation per 16 bytes
2026-11-27 22:17:55 -08:00
dotCooCoo a9799bfe9a Merge main into feat/scripts-scriptui-resources 2026-11-27 22:17:49 -08:00
.CooCoo a91c38ee5c Merge pull request #9868 from dotCooCoo/fix/effect-bounds-lone-anchors
Effects: bounds hold the dot a closed lone anchor draws
2026-11-27 22:17:43 -08:00
dotCooCoo c201f59086 JavaScript: Map and Set take Symbol keys, and the test262 runners build with main's Symbol and ES2015 subset
main added `Value::Symbol`, a binary_octal argument to `string_to_number` and its own
ES2015_BUILT_INS and ES2015_FEATURES in the test262 runner.

- A Map or Set key compares a Symbol by identity, as SameValueZero does.
- CanonicalNumericIndexString reads a typed array property name with the ES2015 ToNumber.
- The collection and binary-data test262 runner uses ES2015_COLLECTION_BUILT_INS and
  ES2015_COLLECTION_FEATURES, writes its failures to `es2015-builtins-failures.txt` so it does
  not overwrite the ES2015 subset's `es2015-failures.txt`, and runs each test through `run_one`.
2026-11-27 22:17:32 -08:00
.CooCoo c45a9a2781 Merge pull request #9870 from dotCooCoo/feat/plugins-failed-load-retry
Plug-ins: a plug-in that fails to load is listed and can be retried
2026-11-27 22:17:31 -08:00
.CooCoo eb7c6353c9 Merge pull request #9809 from dotCooCoo/fix/select-removal-one-at-a-time
Select: removing objects one at a time checks and reads only the removed ones
2026-11-27 22:17:14 -08:00
.CooCoo 68f4d94d8b Merge pull request #9806 from dotCooCoo/fix/outline-placed-geometry-effects
Outline view: effects reshape a placed document's crossed box
2026-11-27 22:16:43 -08:00
.CooCoo 238ab513fa Merge pull request #9797 from dotCooCoo/fix/revert-guards-text-style-transform
Dialogs: text style and transform dialogs refuse a draft from before File > Revert
2026-11-27 22:16:31 -08:00
.CooCoo adcf2bf75a Merge pull request #9773 from dotCooCoo/fix/path-tool-option-cancel-b-verify
Restore canceled Corner and Shared Edge tool settings
2026-11-27 22:16:07 -08:00
.CooCoo 6545bae486 Merge pull request #9772 from dotCooCoo/fix/track-cube-untouched-axes-b-verify
Preserve untouched Track Cube rotation angles
2026-11-27 22:15:55 -08:00