Commit Graph
23562 Commits
Author SHA1 Message Date
dotCooCoo b893f05f61 3D: Map Art X and Y keep the points a document unit converts to
Typing 10 into X in a millimeters document stored 28.35 pt instead of
28.3464567 pt, because the X and Y setters rounded to two point
decimals. They now only clamp. The flat view also wrote the map back
through the box on every frame, rounding the offsets again; it now
writes the map only when the box was edited.
2026-11-29 12:57:08 -08:00
dotCooCoo fb199e5d96 Merge main into fix/3d-depth-rows-document-unit 2026-11-29 11:53:58 -08:00
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 da9c3947e2 Dialogs: style options dialogs keep their tab through the framework (#10109)
craft-libs 186a229c8d holds storytold/craft-libs#4261, so a properties
dialog keeps its bound tab when a measuring frame ends before its body
runs. The style_dialog! wrapper no longer saves and restores the tab
around that frame for Character Style Options, Paragraph Style Options
and New Character Style or New Paragraph Style.

New tests open Character Style Options on Advanced Character Formats,
New Character Style on Character Color, and Document Setup on
Transparency, Type and Color, and check that each tab is still shown
after the first frames. With craft-libs before that change they fail
with the dialog back on General.
2026-11-29 14:34:41 -05:00
.CooCoo 1772dfcce3 Merge pull request #10107 from dotCooCoo/fix/control-bounds-flat-walk
Performance: paths keep their control-point box, so a hover reads no anchors
2026-11-29 11:26:32 -08:00
.CooCoo 02dd9f3fd0 Merge pull request #10106 from dotCooCoo/fix/stroke-host-labels
Stroke: Cap, Corner, Align Stroke and Miter Limit line up with the panel rows
2026-11-29 11:26:16 -08:00
.CooCoo ed097438f0 Merge pull request #10102 from dotCooCoo/fix/new-document-card-tiles
New Document: preset cards rest on a tile
2026-11-29 11:25:59 -08:00
.CooCoo 0a572454c9 Merge pull request #10101 from dotCooCoo/fix/doc-info-image-trace-shared-layout
Panels: Document Info rows and Image Trace Create use the shared row and check box layouts
2026-11-29 11:25:43 -08:00
.CooCoo 3b90e54a61 Merge pull request #10099 from dotCooCoo/fix/rail-footer-divider
Tools: the rail shows one rule above the controls under the tools
2026-11-29 11:25:27 -08:00
.CooCoo 0e8ae4d52b Merge pull request #10097 from dotCooCoo/fix/hit-test-one-walk
Selection: a click or hover that hits nothing walks the document once
2026-11-29 11:25:11 -08:00
.CooCoo 73d7bd813a Merge pull request #10096 from dotCooCoo/fix/drop-floated-from-icons
Docking: drop the icon-column float workaround now that craft-libs expands it
2026-11-29 11:24:53 -08:00
.CooCoo 52de8120d3 Merge pull request #10105 from dotCooCoo/fix/script-dom-path-edits
Scripts: point removals keep the selection, new-art defaults and batching right
2026-11-29 10:58:53 -08:00
.CooCoo cdafb992f3 Merge pull request #10095 from dotCooCoo/ci/warnings-G2
CI: app manifests and cdylib doc tests no longer warn
2026-11-29 10:57:43 -08:00
.CooCoo 8b96a72de4 Merge pull request #10104 from dotCooCoo/fix/script-name-setter-stale-first
Scripts: page-item setters report a stale item before a bad value
2026-11-29 10:51:52 -08:00
dotCooCoo 92a2056a8b Scripts: page-item setters report a stale item before a bad value
The name, note, hidden, locked, opacity, blendingMode, position, left,
top, width and height setters checked the assigned value before the
item, so a bad value on a removed item reported the value error instead
of "Stale page item". Each setter now looks up its item first.
2026-11-29 10:26:04 -08:00
dotCooCoo 87b5aef639 Scripts: point removals keep the selection, defaults and batching right
Follow-up to #9288.

- Removing the last anchor of a closed path with its closing segment
  selected also deselects the first anchor, the segment's other end.
- Removing a point puts back new art's paint, so a default stroke width
  a script set still applies to the next path it draws.
- A removal that leaves the direct selection as it was waits with the
  other point changes, unless every remaining anchor is now selected,
  the selection refers to points that are gone, or the path is in an
  Objects on Path group.
- Reading the points of a path first writes the waiting point changes
  of another path in the same Objects on Path group.
- Writing a path in an Objects on Path group checks the other tracked
  paths in the outermost such group, so their PathPoint handles go stale
  when the group moves them, even after an undo.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-29 10:24:53 -08:00
.CooCoo 283902214f Merge pull request #10075 from dotCooCoo/feat/offset-objects-row
Arrange Tools: Offset Objects chains the selection in a row or a column with a set gap
2026-11-29 10:23:17 -08:00
.CooCoo 8aa8120586 Merge pull request #9777 from ruchirguitar/feat/spell-check
Spell-check other languages from the Craft apps' Language packs
2026-11-29 10:23:00 -08:00
dotCooCoo 37a04cb72d Merge main into fix/control-bounds-flat-walk 2026-11-29 10:19:36 -08:00
dotCooCoo c10d62d027 Performance: paths keep their control-point box, so a hover reads no anchors
Hit walks measure every path's culling box with PathData::control_bounds,
which read every anchor of the path on every call. Since anchors are kept
in shared chunks, that read follows two more pointers per path and goes
through the chunked iterator, so each node of a hover or cursor walk cost
about twice what it did before the chunks.

Each subpath's anchor list now keeps the box round its points and handles
once it is measured (Anchors::control_bounds), and every change to the
list clears it. A copy of the list keeps the box too. control_bounds
unions the subpaths' boxes, with the same result as before.

- anchors.rs: control_bounds reads the anchors once until they change,
  counted by measured_control_anchors; each change to the list clears it.
- Tests count the anchors read: a list reads them once across calls and
  copies, again after each kind of change, and a hover past 100 squares
  reads none after the first.
2026-11-29 10:19:29 -08:00
dotCooCoo c328567a9f Merge main into fix/stroke-host-labels 2026-11-29 10:17:57 -08:00
dotCooCoo ec51f3d037 Stroke: Cap, Corner, Align Stroke and Miter Limit line up with the panel rows
The Stroke panel showed the stroke editor's rows with a label column of
their own, so the Alignment, Caps and Corners buttons and the Miter
Limit and Dash offset fields started left of the Weight, Arrowheads and
Profile controls. The panel now turns on StrokeEditor::host_labels
(craft-libs#4227, in the pinned craft-libs), and the editor's rows read
the label column of the panel's Stroke Options group.

the_panel_rows_start_their_controls_at_one_x now also checks the
Alignment, Caps, Corners, Miter limit and Dash offset controls.
2026-11-29 10:17:57 -08:00
dotCooCoo 599426f075 New Document: preset cards rest on a tile
The app's root look now sets PresetCardLook::PageTile in place of Page,
so each preset card in New Document draws on a light veil of the scrim
with its paper on it. A card that is not selected now stands apart from
the dialog's surface. The craft-libs pin at 186a229c8d already has the
look (storytold/craft-libs#4180).

The new test resting_preset_cards_stand_on_a_tile checks that a resting
card is covered by a veil of the scrim and holds its white paper; it
fails with the old Page look.
2026-11-29 10:14:35 -08:00
dotCooCoo b02c572ec4 Merge main into fix/doc-info-image-trace-shared-layout 2026-11-29 10:01:29 -08:00
dotCooCoo 6c0ce43b98 Panels: Document Info rows and Image Trace Create use the shared row and check box layouts
The craft-libs pin now includes storytold/craft-libs#4147 and #4195. A
wrapping SpaceBetween row keeps its children at both edges when they fit
on one line, and a check box in a row inside a field shows its own label.

- Document Info: a row wraps through the shared row layout instead of
  measuring its label and value first. A row that fits keeps its value at
  the end; otherwise the value moves under the label.
- Image Trace: the Fills and Strokes check boxes in the Create field show
  their own labels, without a nested field for each.

A new test checks that a Document Info value that does not fit beside
its label moves under it.
2026-11-29 10:01:22 -08:00
dotCooCoo 6a48d5af40 Tools: the rail shows one rule above the controls under the tools
The tool rail's footer region draws its own rule and gap since
craft-libs#4140, so the divider at the top of bottom_controls drew a
second rule. Remove it, and have the rule test count exactly one.
2026-11-29 09:55:34 -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 9aa6f7cdae Selection: a click or hover that hits nothing walks the document once
A hit test for the selection tools first walks the document without
looking inside unfilled closed paths, and when that finds nothing it
walked the whole document again to look inside them. With the pointer
resting over empty pasteboard that doubled the hit walks on every
frame.

The first walk now notes whether an unfilled closed path holds the
point, and the second walk runs only when one does. Select Behind
(objects_at) and Direct Selection in a dynamic symbol's art
(symbol_part_at) skip their second pass the same way. Hit tests that
do not look inside unfilled paths measure no interiors.
2026-11-29 09:45:21 -08:00
dotCooCoo 6be061e60f Docking: drop the icon-column float workaround now that craft-libs expands it
The craft-libs pin (186a229c8d) includes storytold/craft-libs#4138: a
group or tab dragged out of a dock column collapsed to icons now floats
or docks expanded in craft-libs itself, while a whole icon column that
floats stays collapsed. The floated_from_icons pass added by #9964
expanded those windows a second time after each dock pass, so it is
removed and the dock pass stores the area's workspace as it did before.

The test from #9964,
a_group_dragged_out_of_the_icon_column_floats_expanded_and_its_tabs_switch,
is kept and passes on craft-libs alone.
2026-11-29 09:36:32 -08:00
dotCooCoo c2230ee61e CI: app manifests and doc tests no longer warn
- apps/vectorcraft-web: egui_extras moves to the wasm32 dependencies.
  Its only use is src/web.rs, which builds only for wasm32, so cargo
  reported it unused on native builds.
- apps/vectorcraft: drop the socket2 dev-dependency. Its loopback
  tests left control_server in #8800 and nothing uses it now.
- xtask: the doc-test steps (`cargo xtask ci shard` and the workspace
  doctests) leave out packages whose only library target is a cdylib,
  dylib or staticlib. Cargo printed "doc tests are not supported for
  crate type(s) `cdylib`" for vectorcraft-thumbnail-handler. Packages
  without a library stay selected, so the shard keeps its features.

Warnings on the build host, before and after (cache warm shard
`cargo test -p vectorcraft-mcp -p vectorcraft -p vectorcraft-cli
-p vectorcraft-web -p xtask --lib --bins --no-run` on a fresh build, and
`cargo test -p vectorcraft-thumbnail-handler --doc`): 4 before, 1 after.
The one left is `vectorcraft-testkit` in apps/vectorcraft-cli: only the
integration tests use it, and the warm step builds only library and
binary tests.
2026-11-29 09:25:58 -08:00
ruchirguitar a4659724f6 Merge main into feat/spell-check
Cargo.toml: #10049 moved craft-libs to 186a229c; the font store crates this
branch adds move with it, so every craft-libs crate stays at one rev.
2026-11-29 22:41:45 +05:30
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