Commit Graph
22388 Commits
Author SHA1 Message Date
.CooCoo d5e41e24dc Merge pull request #9467 from dotCooCoo/fix/template-cache-code-reachability
Collect unreachable tagged-template cache entries in the same collection
2026-11-28 01:06:17 -08:00
.CooCoo 0b933e7a36 Merge pull request #9127 from dotCooCoo/feat/plugins-web-worker
Plug-ins: the web build checks plug-ins and runs filters in a Web Worker
2026-11-28 01:04:54 -08:00
.CooCoo 31066b39c2 Merge pull request #9065 from dotCooCoo/feat/scripts-reflection
Scripts: reflect describes an object's properties and methods
2026-11-28 01:03:47 -08:00
.CooCoo 3c7a3c7904 Merge pull request #9881 from dotCooCoo/fix/stroke-hit-cap-dots
Strokes: a click on the dot a round or projecting cap draws for a lone anchor hits the path
2026-11-28 00:48:03 -08:00
.CooCoo a949db79fe Merge pull request #9137 from dotCooCoo/feat/plugin-api-live-effect-appearance
Plug-ins: live effects set opacity, blending and effects on their pieces
2026-11-28 00:46:29 -08:00
.CooCoo ed86cbf5ab Merge pull request #9119 from dotCooCoo/feat/toolbar-command-buttons
Toolbars: a toolbar made with New Toolbar holds menu command buttons
2026-11-28 00:45:29 -08:00
.CooCoo 11ee54db00 Merge pull request #9058 from dotCooCoo/fix/issue-8583
Part of #8583: document tab titles draw in a condensed face, so more tabs fit
2026-11-28 00:43:51 -08:00
.CooCoo 1f9b44c65c Merge pull request #9880 from dotCooCoo/fix/swatch-footer-menus
Swatches: Swatch Libraries and Show Swatch Kinds report that they open a menu
2026-11-28 00:28:19 -08:00
dotCooCoo 1f6ae9841b Merge main into fix/template-cache-code-reachability 2026-11-28 00:25:34 -08:00
.CooCoo 64c966d662 Merge pull request #9462 from dotCooCoo/fix/appearance-drag-document-current
Keep appearance drags tied to their source document
2026-11-28 00:22:40 -08:00
.CooCoo 9c5e83cdb8 Merge pull request #9359 from dotCooCoo/fix/prefs-dialog-keeps-outside-changes
Preferences: OK writes only the settings changed in the dialog
2026-11-28 00:19:56 -08:00
.CooCoo 8dc964de18 Merge pull request #9879 from dotCooCoo/fix/effects-reference-box-lone-anchors
Effects: geometry effects work from bounds that hold lone anchors
2026-11-28 00:17:12 -08:00
.CooCoo 39f317a0c6 Merge pull request #9840 from dotCooCoo/fix/engine-tests-count-work
Tests: bounded-work checks count the work instead of timing it
2026-11-28 00:16:46 -08:00
.CooCoo 72c555deb7 Merge pull request #9407 from dotCooCoo/feat/packaging-fold-angle-command
Document stored fold angles and role defaults
2026-11-28 00:15:19 -08:00
.CooCoo 150998c32d Merge pull request #8990 from dotCooCoo/feat/web-stylus-wheel
Web: the Paintbrush records an airbrush pen's stylus wheel
2026-11-28 00:10:14 -08:00
dotCooCoo 7317159f52 Merge main into feat/scripts-reflection 2026-11-28 00:09:37 -08:00
dotCooCoo eb4c8bdc81 Scripts: script code builds with main's revert test and command hook
main added a test named wrappers_go_stale_after_revert and passes the
command id to dom::before_command by reference.

- The revert test of this branch is renamed
  objects_read_before_a_revert_are_stale_and_ones_read_after_are_the_loaded_ones.
- command_value takes `id` as a &str, so the call passes it as it is,
  which clippy's needless_borrow check requires.
2026-11-28 00:09:25 -08:00
.CooCoo bbefa3c8e3 Merge pull request #9072 from dotCooCoo/feat/js-es2015-collections-typed-arrays
JavaScript: ES2015 realms have Map, Set, WeakMap, WeakSet and typed arrays
2026-11-27 23:55:19 -08:00
.CooCoo bacd4d0ec2 Merge pull request #8853 from dotCooCoo/feat/swatches-pattern-drag-to-canvas
Swatches: a pattern swatch dropped on empty canvas places a copy of its tile art
2026-11-27 23:52:10 -08:00
dotCooCoo ff02d3c23d Effects: each copy of a painted piece carries its own raster effects
When a live-effect plug-in returned a piece whose effects list a raster
effect before a Transform effect that makes copies, the Transform effect
copied the bare geometry and the raster effect was drawn once around all
of the copies. dress_piece applied the piece's geometry effects to its
geometry alone and kept every raster effect on the group around them.

dress_piece now builds such a piece through copied_raster_art, as an
object's copies are built: each copy carries its own raster effects,
moved, turned, reflected and scaled with it. copied_raster_art takes an
optional budget and completion flag, so the piece still keeps to the room
it is given and is refused when its copies or its geometry effects would
stop short. The piece's fills and strokes keep their own effects for
their own stage.
2026-11-27 23:49:41 -08:00
dotCooCoo e75b26cffc Merge main into feat/scripts-reflection 2026-11-27 23:38:58 -08:00
dotCooCoo 326a5f83f2 Merge main into fix/issue-8583 2026-11-27 23:37:43 -08:00
.CooCoo b6f01852b7 Merge pull request #9874 from dotCooCoo/fix/swatch-libraries-menu-width
Swatches: the Swatch Libraries menu fits its rows like the other library menus
2026-11-27 23:36:56 -08:00
.CooCoo 484e561867 Merge pull request #9873 from dotCooCoo/fix/taskbar-fidelity-label
Contextual Task Bar: the Smooth tool's Fidelity label is framework Text on its field's row
2026-11-27 23:36:45 -08:00
.CooCoo 72f43b783a Merge pull request #9872 from dotCooCoo/fix/3d-color-swatches
3D: the light color and the custom shading color show color swatches
2026-11-27 23:36:34 -08:00
.CooCoo c2b8d7ce75 Merge pull request #9822 from dotCooCoo/fix/automation-args-handshake
Tests: automation root tests wait for the app to exit, not for a 30 s deadline
2026-11-27 23:35:58 -08:00
.CooCoo 9ce2299580 Merge pull request #9811 from dotCooCoo/fix/ai-envelope-stroked-line
.ai import: envelopes of a stroked straight line map from their stroked box
2026-11-27 23:35:45 -08:00
.CooCoo b95e342a50 Merge pull request #9808 from dotCooCoo/fix/revert-guards-remaining-dialogs
Dialogs: click, fold angle, gradient stop and link dialogs refuse drafts from before File > Revert
2026-11-27 23:35:33 -08:00
dotCooCoo 75573edf9d Merge main into fix/appearance-drag-document-current 2026-11-27 23:34:47 -08:00
dotCooCoo f94034362b Scripts: a reflection's find stays frozen in an ES2015 realm
In a realm with the ES2015 option, the `find` function of a reflection
had configurable `length` and `name` properties, so Object.isFrozen gave
false and a script could delete or redefine them. Both are now
non-writable and non-configurable, as the reflection's other parts are.
2026-11-27 23:34:40 -08:00
dotCooCoo 35aca2b9cd Merge main into fix/template-cache-code-reachability 2026-11-27 23:34:38 -08:00
.CooCoo 8f9fda6a7d Merge pull request #9432 from dotCooCoo/fix/script-handles-after-revert
Scripts: invalidate page-item handles after file.revert
2026-11-27 23:34:31 -08:00
dotCooCoo 4d5ec01e54 Merge main into fix/prefs-dialog-keeps-outside-changes 2026-11-27 23:34:05 -08:00
dotCooCoo a87f351a7d Merge main into feat/packaging-fold-angle-command 2026-11-27 23:34:04 -08: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 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
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 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 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 5a771c52f7 Merge main into feat/plugin-api-live-effect-appearance 2026-11-27 22:50: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
dotCooCoo 0753eeeb9b Merge main into fix/issue-8583 2026-11-27 22:29:29 -08:00