Commit Graph
23525 Commits
Author SHA1 Message Date
dotCooCoo 4f6eb4b36d 3D: depth, bevel and offset fields show the document's unit
Extrude & Bevel's Depth and bevel Width and Height, Revolve's Offset,
the classic Extrude & Bevel and Revolve rows, and the Map Art X and Y
rows showed points in a document set to millimeters, inches or another
unit. Each row now goes through Param::length, so its field shows and
reads the document's unit while the effect keeps points. The rows set
no decimals, so a typed 10 mm is kept unrounded and Up steps by the
shown unit's own step.
2026-11-29 11:53:39 -08:00
.CooCoo 9bbc3950e1 Merge pull request #10094 from dotCooCoo/ci/warnings-G1
Engine: end_folder no longer warns about unused s and turn on wasm32
2026-11-29 09:51:35 -08:00
dotCooCoo 91e4c6fbce Engine: end_folder no longer warns about unused s and turn on wasm32
end_folder uses its Session and StoreTurn only in the native arm that
finishes loaded modules and saves the disabled list. The wasm32 build has
no such arm, so rustc reported both parameters as unused there. The
function now marks them used under cfg(target_arch = "wasm32"), as
install_folder above it already does.

cargo check -p vectorcraft-engine --target wasm32-unknown-unknown:
2 warnings in vectorcraft-engine before, 0 after. The manifest and patch
warnings it also prints are unchanged.
2026-11-29 09:10:51 -08:00
.CooCoo 619a6e5ed1 Merge pull request #10071 from dotCooCoo/fix/symbol-options-unchanged-undo
Symbols: Symbol Options and Replace Symbol that change nothing add no undo step
2026-11-29 09:10:19 -08:00
.CooCoo c7e9e4c673 Merge pull request #10068 from dotCooCoo/fix/scale-numberfield-landed-test
Import PDF: a page number the Page field refuses goes back to the shown page
2026-11-29 09:10:03 -08:00
.CooCoo 963c6001ca Merge pull request #10064 from dotCooCoo/fix/number-text-row-commit-tests
Graph Type: test that typed numbers and text reach the draft only on commit
2026-11-29 09:09:47 -08:00
.CooCoo aaf7230372 Merge pull request #10059 from dotCooCoo/fix/refused-ok-keeps-draft
Slices: a refused OK keeps Slice Options and Divide Slices open with what was typed
2026-11-29 09:09:30 -08:00
.CooCoo b6e8af8817 Merge pull request #10058 from dotCooCoo/fix/artboards-numberfield-commit-test
New Document: a test checks that a typed Artboards count keeps the preset until committed
2026-11-29 09:09:14 -08:00
.CooCoo c6695df569 Merge pull request #10057 from dotCooCoo/fix/escape-tests-cancel-path
Tool options: tests cover a canceled field edit that keeps the dialog open
2026-11-29 09:08:58 -08:00
.CooCoo a6fdce3c51 Merge pull request #10055 from dotCooCoo/fix/bristle-direction-commit-tests
Brush Options: test that a canceled Bristle slider drag leaves the brush as it was
2026-11-29 09:08:41 -08:00
.CooCoo 45150cf4ed Merge pull request #10054 from dotCooCoo/fix/arrange-sibling-dialog-tests
Arrange: tests cover the settings chosen in Replace with Top Object and Sort Objects
2026-11-29 09:08:25 -08:00
.CooCoo 5f7add2106 Merge pull request #10053 from dotCooCoo/fix/freehand-fidelity-commit
UI: Fidelity applies only once committed in freehand Tool Options and the Contextual Task Bar
2026-11-29 09:08:08 -08:00
.CooCoo e21b9202e9 Merge pull request #10048 from dotCooCoo/fix/transparency-info-values
Transparency: transparency.info reports the selected symbol part that transparency.set edits
2026-11-29 09:07:52 -08:00
.CooCoo 3ffd486d5f Merge pull request #10063 from dotCooCoo/fix/appearance-narrow-paint-labels
Appearance: a narrow group shows the Stroke and Fill labels whole
2026-11-29 09:07:36 -08:00
.CooCoo 033a829995 Merge pull request #10062 from dotCooCoo/fix/export-screens-artboard-list
Export for Screens: the items sit in a framed view, and checked items show selected
2026-11-29 09:07:20 -08:00
.CooCoo 006efe0e91 Merge pull request #10061 from dotCooCoo/fix/panel-menu-command-names
Panels: menu rows show their names instead of command ids
2026-11-29 09:07:03 -08:00
.CooCoo 778e9cea99 Merge pull request #10051 from dotCooCoo/fix/links-panel-row-thumbnails
Links: rows of images on layers show their thumbnails
2026-11-29 09:06:47 -08:00
.CooCoo 0fe52b0a19 Merge pull request #10050 from dotCooCoo/fix/pathfinder-disabled-shape-modes-dim
Pathfinder: Shape Modes buttons dim while they are off
2026-11-29 09:06:31 -08:00
.CooCoo a886bd1148 Merge pull request #10049 from dotCooCoo/fix/craft-libs-869c970
Dependencies: craft-libs 869c9704d9
2026-11-29 09:05:27 -08:00
.CooCoo 3264cd3b21 Merge pull request #10086 from dotCooCoo/ci/print-windows-cache
CI: Desktop printing saves its Windows cache on main and builds the tests once
2026-11-29 08:43:19 -08:00
.CooCoo c2125cee83 Merge pull request #10083 from dotCooCoo/fix/ui-egui-shard-threads
CI: the two ui-egui shards take about the same time
2026-11-29 08:43:16 -08:00
FredApps a9c926ba84 Merge branch 'main' into fix/craft-libs-869c970 2026-11-29 16:35:33 +01:00
.CooCoo aea9cd7a32 Merge pull request #9288 from dotCooCoo/feat/scripts-doc-defaults
Scripts: Document default fill and stroke members and scaleFactor
2026-11-29 07:24:43 -08:00
dotCooCoo b5affe3a0b CI: Desktop printing saves its Windows cache on main and builds the tests once
The Windows leg found no cache on every pull request, because only a push or manual run on
main saves one and the workflow had no push trigger. A push to main that touches the same
paths now saves the entry that pull requests restore.

Both test runs now select the app and the UI crate together, so Cargo resolves features once
and the printps run reuses the first run's dependencies instead of rebuilding 94 crates. The
first run keeps every app test (the binary's unit tests and `tests/it`).
2026-11-29 07:16:18 -08:00
dotCooCoo c10031537b Merge main into feat/scripts-doc-defaults 2026-11-29 06:45:39 -08:00
dotCooCoo 6ef6df3407 Scripts: round artboard rows as main's New Document test expects, and drop pathItems= from the host table
Cause of the CI failures on 212090fd7a:
- main's dialogs::new_document test a_presets_rows_reach_the_document_create_makes
  sets artboardLayout.rows to 3.6 and expects 4, but this branch refused a
  rows value that was not a whole number. rows now rounds like columns and is
  still refused outside 1 to 1000.
- script_host_vs_scriptcheck listed Document.prototype.pathItems=, the
  setter of main's placeholder. This branch makes pathItems a read-only
  collection, like pageItems, so the row goes.
2026-11-29 06:45:32 -08:00
dotCooCoo 6a6fa5056c CI: the two ui-egui shards take about the same time
Each ui-egui part ran its pinned tests with --test-threads 3 beside its
counted share with --test-threads 1. On the 4-CPU runners the pinned
tests finished in about 40 s, and the counted share of about 2,640 tests
then ran on one thread for 9 to 12 minutes (run 46267439238).

A part now runs its counted share and then its pinned tests, one after
the other, each with nextest's default thread count. The help F1 test
moves to part 1's pinned list, which leaves the two parts with closer
test totals.
2026-11-29 06:20:45 -08:00
.CooCoo 3ad283b9b0 CI: ui-egui tests run on two shards (#10080)
vectorcraft-ui-egui's tests were one leg that set the pull request run's
length (33.2 min median over 20 runs: about 19 min compiling and 11.9 min
running 5,288 tests). The gate now has six legs. Shards 1 and 2 each
build vectorcraft-ui-egui's tests and run half of them with nextest's
count partition. Each part also runs its own pinned slow tests, so the
slowest tests do not land on one leg. Part 1 alone runs the doctests and
the i18n report, and `cargo xtask ci warm` builds the split once.

Before running, a part lists the tests and stops with an error when a
pinned test name no longer exists. The xtask shard tests check that
every test of a split runs on exactly one part.

The nightly signing policy and its preparation doc list the new job
names (`test N/6`).
2026-11-29 09:10:57 -05:00
FredApps 69e325e462 Pin craft-libs 186a229c for the VectorCraft release
Carry the upstream properties-dialog tab retention and layout fixes into the tested release pin. Retain the same egui revision and dependency graph.
2026-11-29 15:09:23 +01:00
dotCooCoo fa1c0a8dc4 Tests: read retained paint chunks in every ui-egui shape walk
The pinned egui replays a region that did not change as one
Shape::PaintChunk of clipped shapes. Test helpers that walked
out.shapes by hand stopped at the chunk, so text, meshes, rects and
lines painted inside it were missed.

- Add painted_shapes and flat_painted_shapes next to text_shapes in
  tests/labels.rs. They open Shape::Vec and Shape::PaintChunk in paint
  order and compose each shape's transform and clip the same way.
- Route every remaining hand-written text and shape walk in the
  ui-egui tests through text_shapes or these helpers, keeping each
  test's assertions and its first-painted or last-painted order.
- panel_readout_copy: the Link Info Name check called the removed
  text_shape helper and did not compile; it now reads visible_paint.
  Format the file.
2026-11-29 06:01:24 -08:00
dotCooCoo 212090fd7a Merge main into feat/scripts-doc-defaults 2026-11-29 05:51:56 -08:00
dotCooCoo 7a71837dea Scripts: keep new-art defaults and direct selections through path edits
- PathPoint.remove() renumbers the direct-selected anchors and segments
  after the removed point, and drops the removed anchor and the selected
  segments it ended, through selection commands after the points are
  written. A removed anchor no longer stays selected, and the same index
  no longer selects a different point.
- pathItems.add() reads new art's paint after the target document is
  active, so a path added to a document in the back keeps the stroke
  that document's selection gives new art.
- Paths a script draws put new art's paint back afterwards, so a
  defaultStrokeWidth the script set applies to every path it draws, not
  only the first.
- appearance.setNewArt refuses a fill or stroke paint with a setting a
  paint does not take, such as opacity, instead of applying the rest.
2026-11-29 05:51:46 -08:00
Dylan M. Taylor b3514b6277 fix(packaging): resolve SonarCloud regex reliability findings in nightly-release-tests.py (#10076) 2026-11-29 08:26:47 -05:00
FredApps 98a8cda027 Track retained paint in VectorCraft menu and readout tests
Keep the existing pointer and text expectations on composed paint output. Preserve paint order and apply the retained transforms and clipping when finding drawn controls.
2026-11-29 14:25:08 +01:00
dotCooCoo dd93247cbf Scripts: tests index page items topmost first and check the preset fallback
Cause of the script_dom and script_dom_paths failures: main's 9872e6b679
("page items report their own members, and lists start with the topmost
object") made pageItems, pathItems and the selection list art topmost first.
The branch's tests still indexed the objects bottom first, so pageItems[1]
and pathItems[0] named the other object. The tests now make the objects in
the order the lists read them, and index them topmost first.

The own-members test asked about rotate, which this branch makes available,
so it now asks about transform, which is not available yet.

The fallback test for addDocument relied on five 1,000,000 pt artboards not
fitting, but a new DocumentPreset puts them in one column. It now unsets the
layout so the built-in preset puts them in one row, and the test fails when
addDocument falls back to the saved preset of the same name.
2026-11-29 04:41:14 -08:00
FredApps 267b55bfa5 Read retained paint chunks in UI label tests
Collect painted swatch labels from retained paint chunks as well as flat shapes. Keep the localized-label and physical pointer assertions unchanged in scope.
2026-11-29 13:40:19 +01:00
FredApps 36ec203ef5 Pin current craft-libs and its matching egui revision 2026-11-29 12:44:11 +01:00
Dylan M. Taylor d4d8da4544 chore(ci): allow manual workflow_dispatch for SonarCloud (#10070) 2026-11-29 06:43:03 -05:00
dotCooCoo 951e552a76 Symbols: Symbol Options and Replace Symbol that change nothing add no undo step
symbol.options recorded an undo step and moved the revision whenever any
option was passed, unless only alignToPixelGrid was given with the value
the symbol already had. A newName equal to the current name, or a
registration, export type, 9-slice, type or pixel grid value the symbol
already has, now leaves the document and its undo history as they are.

symbol.replace with the symbol the instances already show recorded an
undo step too. It now records one only when an instance changes.

Both run through colorcmds::edit_if_changed, as the Symbol Shifter and
the other symbolism tools do.
2026-11-29 02:43:57 -08:00
dotCooCoo ad0330f359 Merge main into fix/craft-libs-869c970 2026-11-29 02:37:56 -08:00
dotCooCoo 5ce0ab2e0d Tests: Save Options radio test measures the check box with its label
The check box and the text of its label are two accessibility nodes with the same name. The test now takes the bounds of every node so named on the same line, so it measures the gap from the check box row and not from its label text.
2026-11-29 02:37:49 -08:00
dotCooCoo 85d7248548 Window: Tab reads Standard Screen Mode's hidden chrome
In Standard Screen Mode the shell records Tab's hide as the chrome hidden, not as everything hidden. The Tab command and the tool lookup read only the second, so a second Tab hid again instead of showing the panels. Both now use panel_docking::tab_hidden.
2026-11-29 02:37:49 -08:00
dotCooCoo 7d9cd73f5f Toolbars: Rename Button works on a button whose command is dimmed
A context menu owned by a disabled button takes no clicks with the current craft-libs, so Rename Button... on a dimmed button opened no dialog. The row around the button now owns the menu, and a right click on the button opens it.
2026-11-29 02:37:49 -08:00
dotCooCoo cfa2bbb878 Dialogs: a style options dialog keeps its tab through its first measuring run
With the current craft-libs, the first show of a properties dialog is a measuring run that can end before the dialog's body runs, and it then sets the first tab as the shown one. A tab picked before the first frame (Tabs in Paragraph Style Options) was lost, so the Tabs pane and its Clear All Tabs button were not shown. The style options dialogs now keep the tab that was shown before a measuring run.
2026-11-29 02:37:49 -08:00
dotCooCoo 988edeabc6 Export for Screens: Space flips only the item it is pressed on
The items pane selects every checked item. Space on a selected item
flips that item and then the other selected items to its new value, so
Space on one checked artboard unchecked every checked artboard. The
pane now keeps only the flips of the first item a pass reports, which
is the lead item for Space. A test moves to a checked artboard with the
arrow keys, runs a frame and presses Space in the grid and the list.
2026-11-29 01:47:52 -08:00
dotCooCoo 31c0f6466a Import PDF: a page number the Page field refuses goes back to the shown page
The Page field in Import PDF and Place PDF read the typed number with
`value()`, so a number typed before text the field then refused on Tab
stayed as the chosen page while the field showed the page from before
the edit, and OK placed that page. The field now reads `landed()`, as
the DXF import options' Scale field does since #9747.

DXF import options gains a test for its Scale field that refuses text
on Tab and checks the import uses the restored scale; the Escape test
from #9747 passed with `value()` as well.
2026-11-29 01:18:05 -08:00
dotCooCoo c1bc3a2d50 Appearance: a narrow group shows the Stroke and Fill labels whole
In a 220 pt floating group the paint rows' links were cut to "S" and
"F": each row gives its trailing parts their full width first, and the
stroke weight was the Stroke panel's regular-size field with its
presets list. A paint row's weight is now a small field without the
presets list; its arrows, the arrow keys and the wheel still step it,
stopping at each preset. Fill rows reserve the same room, so the
swatches stay in one column.
2026-11-29 01:02:30 -08:00
dotCooCoo 4ce921dd1b Export for Screens: the items sit in a framed view, and checked items show selected
The Artboards and Assets panes drew their list and grid with no frame and
only as tall as their items, so with one artboard the view buttons, Clear
Selection and Prefix sat right under the thumbnail with empty space below.
The views were also shown without a selection, and the grid draws a tile's
check from the tile's selection, so a checked artboard had no outline and
its check box drew empty.

- The list and the grid sit on a sunken surface with control padding, and
  keep their height (9 rows, 4 tiles) when fewer items are shown.
- The checked items are bound as the view's selection, so they draw the
  selection outline and a checked box. The lead and anchor are kept per tab
  from pass to pass; the checks still decide which items are exported.
2026-11-29 00:59:38 -08:00
dotCooCoo b0b10c6109 Panels: tests compare the menu rows' flags now that rows are named
Four tests compared a panel menu row's whole state with one that had no
name, and failed once the rows were named: the Symbols view rows, the
Paragraph composer rows, the Links panel's Select rows and OpenType's
Reset row. They now compare the enabled and checked flags, or the state
with its name. The Links test also checks each Select row's Shift
alternate. Two lines in Align and CSS Properties are split to fit the
150-column width.
2026-11-29 00:46:50 -08:00
dotCooCoo 4b7ac69692 Scripts: fix path handles after main's revert count and review findings on path edits
PathItem handles carry the document's revert count, as page item
handles on main do, so path members find their path again.

setEntirePath and the path point setters throw a RangeError for a point
off the canvas. Opening a path whose closing segment is selected keeps
the edit. pathItems.add() leaves new art's paint as it was with New Art
Has Basic Appearance off. addDocument reports settings the built-in
preset refuses. appearance.setNewArt refuses a swatch that is not a
name. Writing one path's points looks only at that path afterwards.
2026-11-29 00:42:20 -08:00