Commit Graph
9916 Commits
Author SHA1 Message Date
FredApps 5833b58a3f Merge pull request #10255 from storytold/fix/transform-dialog-canvas
Keep artwork visible in Reflect and other transform previews
2026-11-30 15:09:35 +01:00
FredApps 5f898133c0 Merge pull request #10247 from storytold/fix/vectorcraft-0251-text-and-paste
Keep font choices after preview and fix browser text selection
2026-11-30 14:37:27 +01:00
Codex 3575fa6d2b Leave the artwork visible while previewing a transform 2026-11-30 14:18:36 +01:00
Codex 274983176d Format the font preview regression test 2026-11-30 13:39:47 +01:00
FredApps 68dbab8b90 Merge pull request #10236 from storytold/fix/vectorcraft-desktop-interactions
Restore desktop saving, Hand panning and font picker space
2026-11-30 13:24:15 +01:00
.CooCoo ba67cc58eb Merge pull request #10195 from dotCooCoo/fix/layers-order-revision
Layers: a selection change keeps the panel's row order
2026-11-30 04:21:58 -08:00
Codex 98e5003ec3 Commit hovered font rows and avoid native clock calls in web character controls 2026-11-30 13:21:47 +01:00
Codex 891909a9d5 Keep all drawing modes inside the double-column toolbar 2026-11-30 12:48:10 +01:00
Codex 8c7ddea00a Finish Hand panning before switching to a pen eraser 2026-11-30 12:46:11 +01:00
Codex 847e407ab6 Honor pre-refactor window preferences and preserve Hand placement clicks 2026-11-30 12:16:39 +01:00
Codex 99e8655ef6 Restore the main window on startup and enlarge tool rail icons 2026-11-30 12:09:59 +01:00
Codex 746b8f3dba Count the selected Hand gesture when H is held 2026-11-30 12:02:25 +01:00
.CooCoo 89d2abca5a Merge pull request #10160 from dotCooCoo/fix/doc-comments-u-fffd
Docs: doc comments name U+FFFD in place of the literal character
2026-11-30 02:41:36 -08:00
Codex 1937db57bf Restore native save dialogs, selected Hand panning and font list space 2026-11-30 11:33:11 +01:00
dotCooCoo 41f2554eae Info: a click on a readout copies it again inside a measured flyout
At the craft-libs pin this branch moves to, a panel shown in a dock flyout
runs its body twice in the release frame: first in the container's
invisible sizing pass, then in the real run. copy_shown read the release
in the sizing pass, where the readout has no area, and cleared the press
it had remembered, so the real run saw a release without a press and
copied nothing. Info's W, H and other readouts stopped copying
(panel_readout_copy: three tests failed with no copy).

copy_shown now returns before reading input or the remembered press in a
sizing pass.
2026-11-30 01:51:18 -08:00
dotCooCoo d8e090f51f Merge main into fix/layers-order-revision 2026-11-30 01:09:02 -08:00
.CooCoo 006106a3cc Merge pull request #10141 from dotCooCoo/fix/selection-marks-move-translate
Canvas: a move of the selection moves its marks instead of building them again
2026-11-30 01:06:26 -08:00
.CooCoo c49ba20945 Merge pull request #10129 from dotCooCoo/fix/selection-box-after-tool-pass
Canvas: the bounding box follows a drag in the frame the pointer moves
2026-11-30 01:06:09 -08:00
dotCooCoo 32a5fef78d Layers: a selection change keeps the panel's row order
The Layers panel built its row order again on every selection change:
each change made a new Tracked for the rows, and the rows reported no
order revision, so the panel asked every row for the rows inside it
(7 calls for the 6 rows of the new test's document).

- LayerRows reports LayerTree::order_revision: a hash of the document,
  the open rows, Show Layers Only and the isolated node. The selection,
  the highlighted rows, the current layer and the names are not in it.
- refresh_rows writes new rows into the kept Tracked while the document
  (uid and revert count) stays the same, and makes a new Tracked for
  another document or after File > Revert.
- The craft-libs pin moves from 186a229c8 to aa7e668ec, current
  craft-libs main, which has craft-libs#4319 (LayerTree::order_revision).
  The winit rev moves to 0dfcec0eb, as craft-libs pins it; egui stays
  at 14c39fed1. xtask pdf-deps checks the new rev. craft-nightly keeps
  the rev main pins it at.

Two tests failed on the new craft-libs:

- canvas::tests::a_selection_drag_draws_its_marks_in_the_frame_the_pointer_moves:
  since craft-libs#4143 a frame runs one pass where it ran two, and the
  bounding box, Live Corners, hollow corners and shape widgets were drawn
  before the tool host took the frame's pointer event, so the box showed
  at the old corner. They are now drawn after it, into paint slots kept
  in their old order.
- tests::nativemenu::applying_a_dialog_preview_reads_the_menus: since
  craft-libs#4350 the closed dialog's angle field gives up the keys one
  frame sooner, so the menus are sent again without the text-editing
  gate within the frames the test ran. The test now waits for the gate
  and counts the read and that send apart.
2026-11-29 21:37:32 -08:00
.CooCoo b4f0a7f838 Merge pull request #10122 from dotCooCoo/fix/3d-depth-rows-document-unit
3D: depth, bevel and offset fields show the document's unit
2026-11-29 18:20:59 -08:00
.CooCoo 8fe7aff22e Merge pull request #10120 from dotCooCoo/fix/missing-fonts-check-once
Missing Fonts: the frame after an open lists a document's missing fonts once
2026-11-29 18:20:43 -08:00
dotCooCoo 1cb9c60370 Merge main into fix/doc-comments-u-fffd 2026-11-29 16:39:27 -08:00
dotCooCoo c1eb29c054 Docs: doc comments name U+FFFD in place of the literal character
Two doc comments held a literal U+FFFD replacement character, which
SonarCloud reports as "Invalid character encountered". They now write
it as `\u{FFFD}`:

- crates/ui-egui/src/panels/actions/playback.rs (`shown_text`)
- crates/pdf/src/tests/realtext.rs (the #708, #811 test)
2026-11-29 16:39:26 -08:00
dotCooCoo 2960e55b6c Match Objects: a stacking match keeps clipping paths and settles Intertwine groups
Merging main made DIALOGS one entry short: Offset Objects and Match Objects
both joined it, so vectorcraft-ui-egui did not compile. The table now
declares seven entries.

A stacking match moved a clipping path out of its clip position and could
move a member out of an Intertwine group with its old overlap tiers. It now
refuses to move a clipping path, refuses a destination that would nest
Intertwine art, and clears the tiers of members that leave their group.

A stacking or rotate-only match no longer needs bounds on the source. A
size match measures each target after it is sized and turned, in its final
frame, and is refused when a target can't take the requested size, instead
of reporting success with the size unchanged. A target with no bounds that
needs to turn is refused.
2026-11-29 15:40:43 -08:00
dotCooCoo f11aac5aaa Merge main into feat/match-objects-to-key 2026-11-29 15:00:53 -08:00
dotCooCoo e0670403e2 Merge main into fix/selection-marks-move-translate 2026-11-29 14:09:19 -08:00
dotCooCoo 389fc65631 Canvas: a move of the selection moves its marks instead of building them again
The canvas kept the selection's outlines, anchors and dots only while the
document revision stayed the same, so every move command, nudge and drag
step built them again from every selected object. With 10,000 selected
rectangles one build took about 26 ms in a release build.

A move of whole objects now records the documents before and after it
and the distance (DocState::moved). The record is made only when each
moved object is still the node the transform left (no later pass, such
as the pixel grid snap, changed it), none is a member of a blend, and
every object the selection shows, the key object and the key anchor's
object included, is a moved object or inside one. Copies, scales, moves
of patterns alone and moves that resize type areas make no record.

The canvas moves its kept marks by that distance when the record names
the document they show, or the document a drag began with. It also keeps
them through a new revision of the same document and selection, as at
the end of a drag. Every other change builds them as before.
2026-11-29 14:09:19 -08:00
dotCooCoo 2bfa6fc9cf Merge main into fix/3d-depth-rows-document-unit 2026-11-29 12:57:09 -08:00
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 8f564cdf95 Merge main into fix/selection-box-after-tool-pass 2026-11-29 12:56:16 -08:00
.CooCoo 4e6d3d0f8e Merge pull request #10119 from dotCooCoo/fix/global-edit-preview-cache
Global Edit: the canvas shares the kept outlines instead of copying them each frame
2026-11-29 12:53:25 -08:00
.CooCoo 429d60a341 Merge pull request #10117 from dotCooCoo/fix/status-bar-wheel-rebuild
Status bar: scrolling the view no longer lays out the zoom and artboard controls again
2026-11-29 12:53:07 -08:00
.CooCoo 7d717b6318 Merge pull request #10103 from dotCooCoo/fix/tools-footer-scrolls
Tools: the controls under the tools scroll with them in a short window
2026-11-29 12:52:49 -08:00
dotCooCoo dd95b7add4 Canvas: the bounding box follows a drag in the frame the pointer moves
The bounding box, the Live Corners widgets and the shape widgets were
drawn before the tool host took the frame's pointer event, so during a
Selection tool drag they showed where the art was one frame earlier.
With Show Bounding Box While Moving and Drawing on, the box trailed the
art on every frame of a move. They are display only, so they are now
drawn after the tool host, like the selection's marks, and put back at
their old place in the paint order through a PaintSlot.

The tool overlays that are not framework controls (path marks, anchors,
handles, labels and the rest) no longer get a child Ui each, so a list
of 10,000 path marks makes none.

Tests: with the box shown while moving, a Selection tool drag draws it
at the object's new corner and none at the old one in each frame.
2026-11-29 12:36:16 -08:00
.CooCoo d7a83d8b12 Merge pull request #10114 from dotCooCoo/fix/craft-libs-radio-rows
Tests: Save options radios start in the control column
2026-11-29 12:10:40 -08:00
.CooCoo a59ef7479a Merge pull request #10108 from dotCooCoo/fix/type-editor-single-pass
Type: an edit runs each idle and typing frame once
2026-11-29 12:10:23 -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
dotCooCoo 214c88d985 Tools: the controls under the tools scroll with them, as bottom_controls says
The doc comment on bottom_controls still said the tools scroll above the controls in a short rail. The Tools panel's rail now uses footer_scrolls, so the controls scroll with the tools and the rail draws the rule above them.
2026-11-29 11:45:44 -08:00
dotCooCoo 340edf90b2 Merge main into fix/missing-fonts-check-once 2026-11-29 11:42:08 -08:00
dotCooCoo c7487a4657 Missing Fonts: the frame after an open lists a document's missing fonts once
The frame after a document opens checked whether its Missing Fonts dialog
waits by building the whole dialog (opening::may_switch), and the dialog
pump then built it again to open it. Each build walked the document's type
and resolved every font it names: 6.5 ms over the two calls at 20,000
objects.

The rows are now kept in CanvasCache::missing_fonts for the document's
content version and the font database's generation, the same key Type ›
Find Font's cache uses, and both calls read them. An edit or a font that
loads while the dialog waits makes the next call list the fonts again. The
Fonts folder next to the document is still looked up when the dialog opens.
Rows are dropped once their document no longer waits.

text.missingFonts's answer is unchanged; its rows and its folder are now
two engine functions, missing_font_rows and fonts_next_to_document.

Tests count the row lists (one for the check and the open together) and
check that a document edited while its dialog waits lists its new font.
2026-11-29 11:42:07 -08:00
dotCooCoo 7e5d8d368c Merge main into fix/global-edit-preview-cache 2026-11-29 11:36:55 -08:00
dotCooCoo 3617039ef5 Global Edit: the canvas shares the kept outlines instead of copying them each frame
With one object selected and the Selection tool active, or while Global
Edit is on, every frame copied each highlighted outline out of the kept
list and made one overlay per object, which the canvas flattened and
stroked again. With 10,000 matching objects that was most of a 27 ms
frame.

highlights and similar now return the kept outlines as a shared
Highlights, grouped by layer color with a revision that changes only when
the outlines are found again. The session sends one Overlay::Outlines per
color, and the canvas shows it as a SelectionOutline keyed by that
revision, so the lines are stroked again only when the outlines or the
view change.
2026-11-29 11:36:48 -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
dotCooCoo 0a5d81ed00 Merge main into fix/tools-footer-scrolls 2026-11-29 11:28:45 -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 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