From de093cfdeab1bdae8bbe49c4bd42f7b652ee21da Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 1 Dec 2026 17:44:19 -0800 Subject: [PATCH] Panels: a Window-menu panel keeps showing while art is selected and moved A panel opened from the Window menu, such as Learn or Image Trace, floats in an OS window. craft-libs hid floating panel windows while the main window showed any layer that takes keys, including the Contextual Task Bar over selected art. The panel's window then hid and came back as art was selected, and while it was hidden the canvas still counted its area as covered by a window. A Selection tool move released there was given up, and the art went back to where the move started. craft-libs main (storytold/craft-libs `2e9d498e`) hides floating panel windows only under popup and modal layers. The craft-libs pin moves to craft-libs main, `858bea9d`, with the egui revision that craft-libs pins (`861d60a6`). The winit revision is unchanged. A test opens Learn and Image Trace through their Window menu commands, selects and moves a rectangle, and checks that each panel's OS window shows on every frame and that the move ends where it was released. --- Cargo.lock | 194 +++++++++--------- Cargo.toml | 98 ++++----- apps/vectorcraft-web/Cargo.toml | 2 +- .../ui-egui/src/panel_docking/native_tests.rs | 48 +++++ xtask/src/pdf_deps.rs | 2 +- 5 files changed, 196 insertions(+), 148 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ae1e726a80..cdec652277 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1231,7 +1231,7 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-automation", "craft-behavior", @@ -1272,7 +1272,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "crc32fast", "flate2", @@ -1283,7 +1283,7 @@ dependencies = [ [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "block2 0.6.2", "objc2 0.6.5", @@ -1295,7 +1295,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "rustix 1.1.6", ] @@ -1303,7 +1303,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1328,7 +1328,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1346,7 +1346,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-docpath", @@ -1364,7 +1364,7 @@ dependencies = [ [[package]] name = "craft-cdr" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "crc32fast", "flate2", @@ -1373,7 +1373,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "egui", ] @@ -1381,7 +1381,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "md-5", "rayon", @@ -1390,12 +1390,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-cms", @@ -1415,7 +1415,7 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-control-protocol", "craft-platform", @@ -1426,7 +1426,7 @@ dependencies = [ [[package]] name = "craft-control-protocol" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "getrandom 0.3.4", "serde_json", @@ -1436,7 +1436,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "rayon", ] @@ -1444,7 +1444,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "block2 0.6.2", "craft-appkit", @@ -1470,7 +1470,7 @@ dependencies = [ [[package]] name = "craft-doc" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "blake3", "craft-ecproj-format", @@ -1486,7 +1486,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "serde", ] @@ -1494,7 +1494,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1513,7 +1513,7 @@ dependencies = [ [[package]] name = "craft-dxf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-codepage", "encoding_rs", @@ -1525,7 +1525,7 @@ dependencies = [ [[package]] name = "craft-ecproj-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "serde", "serde_json", @@ -1535,12 +1535,12 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1555,7 +1555,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1574,7 +1574,7 @@ dependencies = [ [[package]] name = "craft-font-os-windows" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "windows-registry", "windows-sys 0.61.2", @@ -1583,7 +1583,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "cap-primitives", "craft-atomic", @@ -1606,12 +1606,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" [[package]] name = "craft-gif" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "gif", ] @@ -1619,7 +1619,7 @@ dependencies = [ [[package]] name = "craft-gzip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "flate2", ] @@ -1627,7 +1627,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1640,7 +1640,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "brotli 9.1.3", "brotli-decompressor 6.3.2", @@ -1670,7 +1670,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-dds", "craft-jpeg", @@ -1697,7 +1697,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1715,7 +1715,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "thiserror 2.0.21", ] @@ -1723,7 +1723,7 @@ dependencies = [ [[package]] name = "craft-jxl" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "brotli-decompressor 5.0.3", "jixel", @@ -1734,7 +1734,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-host", "craft-i18n", @@ -1749,7 +1749,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-i18n", @@ -1763,7 +1763,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-host", @@ -1781,7 +1781,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "brotli-decompressor 6.3.2", "chrono", @@ -1793,7 +1793,7 @@ dependencies = [ [[package]] name = "craft-metafile" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "encoding_rs", "image", @@ -1804,7 +1804,7 @@ dependencies = [ [[package]] name = "craft-mime" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "chrono", "craft-codepage", @@ -1814,7 +1814,7 @@ dependencies = [ [[package]] name = "craft-nightly" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "uds_windows", "winsafe", @@ -1823,7 +1823,7 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-keymap", @@ -1839,7 +1839,7 @@ dependencies = [ [[package]] name = "craft-pcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "flate2", "serde", @@ -1850,7 +1850,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "hayro-interpret", "hayro-syntax", @@ -1862,7 +1862,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "async-channel", "async-io", @@ -1895,7 +1895,7 @@ dependencies = [ [[package]] name = "craft-plotter" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "kurbo 0.13.1", "thiserror 2.0.21", @@ -1904,7 +1904,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-host", @@ -1928,7 +1928,7 @@ dependencies = [ [[package]] name = "craft-proof" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "log", "miniz_oxide 0.9.1", @@ -1939,7 +1939,7 @@ dependencies = [ [[package]] name = "craft-ps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-eps", "flate2", @@ -1953,7 +1953,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "encoding_rs", "flate2", @@ -1964,7 +1964,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "dispatch2", "egui", @@ -1977,7 +1977,7 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1996,7 +1996,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-atomic", "craft-host", @@ -2013,7 +2013,7 @@ dependencies = [ [[package]] name = "craft-stream-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "fax", "hayro-ccitt", @@ -2024,7 +2024,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-image-codecs", "craft-xml", @@ -2045,7 +2045,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-keymap", @@ -2057,7 +2057,7 @@ dependencies = [ [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-font-manager", @@ -2082,7 +2082,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -2097,7 +2097,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-atomic", "craft-behavior", @@ -2112,7 +2112,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "serde", "thiserror 2.0.21", @@ -2122,7 +2122,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "serde", "thiserror 2.0.21", @@ -2131,7 +2131,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-keymap", @@ -2146,12 +2146,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -2165,7 +2165,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -2182,7 +2182,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "accesskit", "craft-behavior", @@ -2220,7 +2220,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2231,7 +2231,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-host", @@ -2249,7 +2249,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-host", @@ -2270,7 +2270,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-host", @@ -2291,7 +2291,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-behavior", "craft-host", @@ -2310,7 +2310,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "base64 0.22.1", "chrono", @@ -2342,7 +2342,7 @@ dependencies = [ [[package]] name = "craft-vectorcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "flate2", "serde", @@ -2353,7 +2353,7 @@ dependencies = [ [[package]] name = "craft-wayland" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "raw-window-handle", "wayland-backend", @@ -2363,7 +2363,7 @@ dependencies = [ [[package]] name = "craft-web-api" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "js-sys", "serde_json", @@ -2374,7 +2374,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "winsafe", ] @@ -2382,7 +2382,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "craft-appkit", "craft-atomic", @@ -2414,7 +2414,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "quick-xml 0.41.0", "serde", @@ -2759,7 +2759,7 @@ checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" [[package]] name = "ecolor" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "bytemuck", "emath", @@ -2792,7 +2792,7 @@ dependencies = [ [[package]] name = "eframe" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "ahash", "bytemuck", @@ -2827,7 +2827,7 @@ dependencies = [ [[package]] name = "egui" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "accesskit", "ahash", @@ -2846,7 +2846,7 @@ dependencies = [ [[package]] name = "egui-wgpu" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "ahash", "bytemuck", @@ -2865,7 +2865,7 @@ dependencies = [ [[package]] name = "egui-winit" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "accesskit_winit", "arboard", @@ -2890,7 +2890,7 @@ dependencies = [ [[package]] name = "egui_extras" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "ahash", "egui", @@ -2904,7 +2904,7 @@ dependencies = [ [[package]] name = "egui_glow" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "bytemuck", "egui", @@ -2917,7 +2917,7 @@ dependencies = [ [[package]] name = "egui_kittest" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "dify", "eframe", @@ -2943,7 +2943,7 @@ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" [[package]] name = "emath" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "bytemuck", ] @@ -3024,7 +3024,7 @@ dependencies = [ [[package]] name = "epaint" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "ahash", "bytemuck", @@ -3050,7 +3050,7 @@ dependencies = [ [[package]] name = "epaint_default_fonts" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387dd1f9649553f9321#07c20531f89717e461c0f387dd1f9649553f9321" +source = "git+https://github.com/storytold/egui.git?rev=861d60a65c50850e995bbb3dcee7c1f3b06815f6#861d60a65c50850e995bbb3dcee7c1f3b06815f6" dependencies = [ "brotli 9.1.3", "brotli-decompressor 6.3.2", @@ -3773,7 +3773,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a" [[package]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "brotli 8.0.4", "hayro-postscript", @@ -3782,7 +3782,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -3800,7 +3800,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -3818,12 +3818,12 @@ dependencies = [ [[package]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "flate2", "hayro-ccitt", @@ -4806,7 +4806,7 @@ dependencies = [ [[package]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "base64 0.22.1", "bumpalo", @@ -4963,7 +4963,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=edbf2117a322c82d672050ca813b95beb835c3e8#edbf2117a322c82d672050ca813b95beb835c3e8" +source = "git+https://github.com/storytold/craft-libs?rev=858bea9d966874f00a3685f76dd6d2b074f7cb6e#858bea9d966874f00a3685f76dd6d2b074f7cb6e" dependencies = [ "arrayvec", "kurbo 0.13.1", diff --git a/Cargo.toml b/Cargo.toml index 71ece379bf..76fc6cb0e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,51 +10,51 @@ license = "MIT OR Apache-2.0" rust-version = "1.95" [workspace.dependencies] -craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8", default-features = false, features = ["interpret", "write"] } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e", default-features = false, features = ["interpret", "write"] } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # Language packs: the Craft apps' shared font store installs them (#4936). -craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON. -craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # `.pcraft` documents: their manifest, full-size composite, preview, layer pixels and ICC profile. -craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8", features = ["pcraft-pixels"] } +craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e", features = ["pcraft-pixels"] } # Native Affinity documents (craft-libs#914). -craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778). -craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # SVG parsing, limits, SVGZ and writer (craft-libs#778). -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8", features = ["tree"] } -craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e", features = ["tree"] } +craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # EPS container, previews, ASCII85 and DSC comments (craft-libs#778). -craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # DXF tags, reader and writer (craft-libs#778, #926, #927). -craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # WMF, EMF and EMF+ reader (craft-libs#778). -craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8", default-features = false, features = ["read", "write"] } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e", default-features = false, features = ["read", "write"] } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names # the members it imports. -craft = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui # without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes. -craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # Nightly profile isolation, launch protocol, and security fence. -craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } +craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } # internal vectorcraft-geom = { path = "crates/geom" } vectorcraft-color = { path = "crates/color" } @@ -194,22 +194,22 @@ lto = "thin" codegen-units = 1 [patch.crates-io] -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -krilla = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8" } -ecolor = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -emath = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -epaint = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -egui = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -egui-winit = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -egui_glow = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -egui_extras = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } -eframe = { git = "https://github.com/storytold/egui.git", rev = "07c20531f89717e461c0f387dd1f9649553f9321" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e" } +ecolor = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +emath = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +epaint = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +egui = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +egui-winit = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +egui_glow = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +egui_extras = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } +eframe = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" } winit = { git = "https://github.com/storytold/winit.git", rev = "0dfcec0eb62fda5904137a63a6dd0c3d83295f45" } diff --git a/apps/vectorcraft-web/Cargo.toml b/apps/vectorcraft-web/Cargo.toml index ba85754a00..e98c904597 100644 --- a/apps/vectorcraft-web/Cargo.toml +++ b/apps/vectorcraft-web/Cargo.toml @@ -28,7 +28,7 @@ egui_extras = { workspace = true } # `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback. eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit"] } # The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft. -craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "edbf2117a322c82d672050ca813b95beb835c3e8", version = "0.1.0" } +craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "858bea9d966874f00a3685f76dd6d2b074f7cb6e", version = "0.1.0" } wasm-bindgen = "0.2" serde_json = { workspace = true } diff --git a/crates/ui-egui/src/panel_docking/native_tests.rs b/crates/ui-egui/src/panel_docking/native_tests.rs index 3ceb28ad9f..ca5d09c205 100644 --- a/crates/ui-egui/src/panel_docking/native_tests.rs +++ b/crates/ui-egui/src/panel_docking/native_tests.rs @@ -25,6 +25,9 @@ struct Window { hovered: Vec, dropped: Vec, close_requested: bool, + /// Whether the window shows on the desktop: the builder's visibility when it opened, then each + /// `Visible` command. + visible: bool, frames: usize, /// The texts its last frame drew, with their rects in the window. texts: Vec<(String, Rect)>, @@ -72,6 +75,7 @@ impl Host { ViewportCommand::OuterPosition(pos) => window.rect = Rect::from_min_size(*pos, window.rect.size()), ViewportCommand::InnerSize(size) => window.rect = Rect::from_min_size(window.rect.min, *size), ViewportCommand::CancelClose => window.close_requested = false, + ViewportCommand::Visible(visible) => window.visible = *visible, _ => {} } } @@ -91,6 +95,7 @@ impl Host { hovered: Vec::new(), dropped: Vec::new(), close_requested: false, + visible: builder.visible != Some(false), frames: 0, texts: Vec::new(), nodes: Vec::new(), @@ -572,3 +577,46 @@ fn copy_and_cut_in_a_native_window_act_on_the_art_while_another_windows_label_ha assert!(![copied, cut].concat().iter().any(|t| t == LABEL), "{what}: the floating window copied no label text"); } } + +/// A panel opened from the Window menu floats in an OS window that keeps showing while the art on +/// the canvas is selected and moved, and the Selection tool's move ends where it is released. +#[test] +fn a_window_menu_panel_stays_shown_while_art_is_selected_and_moved() { + for (command, params, panel) in + [("window.learn", json!({}), crate::panels::learn::ID), ("window.panel", json!({"panel": "imageTrace", "toggle": true}), "imageTrace")] + { + let mut h = Harness::new(); + h.app.select_tool("selection"); + let id = h.app.run("shape.rectangle", json!({"x": 280, "y": 180, "width": 60, "height": 50})).unwrap()["id"].as_u64().unwrap(); + let id = vectorcraft_doc::NodeId(id); + h.app.run("select.none", json!({})).unwrap(); + h.app.run(command, params).unwrap(); + h.frames(4); + let viewport = h.viewport(panel); + let shown = |h: &Harness| h.host.borrow().windows.get(&viewport).is_some_and(|w| w.visible); + assert!(shown(&h), "{panel}: the window shows"); + let left = |h: &Harness| h.app.session.active().unwrap().doc.node(id).and_then(|n| n.geometric_bounds()).map(|b| b.min_x()).unwrap(); + let before = left(&h); + let undo = h.app.session.active().unwrap().history.undo.len(); + let view = h.app.canvas_view().expect("the canvas was drawn"); + let from = view.to_screen(vectorcraft_geom::Point::new(310.0, 205.0)); + let to = from + vec2(-40.0, 30.0); + let window = h.host.borrow().windows[&viewport].rect.translate(-ORIGIN.to_vec2()); + assert!(view.rect.contains(from) && view.rect.contains(to), "{panel}: the move stays on the canvas"); + assert!(!window.contains(from) && !window.contains(to), "{panel}: the move stays clear of the window"); + h.frame(vec![Event::PointerMoved(from), button(from, true)]); + assert!(shown(&h), "{panel}: the window shows with the art selected"); + for k in 1..=6 { + h.frame(vec![Event::PointerMoved(from + (to - from) * (k as f32 / 6.0))]); + assert!(shown(&h), "{panel}: the window shows during the move"); + } + h.frame(vec![Event::PointerMoved(to), button(to, false)]); + h.frames(3); + assert!(shown(&h), "{panel}: the window shows after the move"); + let st = h.app.session.active().unwrap(); + assert!(st.interaction.is_none(), "{panel}: no move is left open"); + assert_eq!(st.history.undo.len(), undo + 1, "{panel}: the move is one undo step"); + let moved = view.to_doc(to).x - view.to_doc(from).x; + assert!((left(&h) - before - moved).abs() < moved.abs() / 2.0, "{panel}: the art stays where it was released"); + } +} diff --git a/xtask/src/pdf_deps.rs b/xtask/src/pdf_deps.rs index 4b7e8ebb2f..f3b028767f 100644 --- a/xtask/src/pdf_deps.rs +++ b/xtask/src/pdf_deps.rs @@ -5,7 +5,7 @@ use std::process::Command; use serde_json::Value; -const REV: &str = "edbf2117a322c82d672050ca813b95beb835c3e8"; +const REV: &str = "858bea9d966874f00a3685f76dd6d2b074f7cb6e"; const PACKAGES: &[(&str, &str, &str)] = &[ ("craft-pdf", "0.1.0", REV), ("krilla", "0.8.2", REV),