From 01ffcd522beea78d4770284a2063ca91ccd6ac59 Mon Sep 17 00:00:00 2001 From: aiongg Date: Fri, 20 Nov 2026 06:04:34 +0000 Subject: [PATCH] Pin craft-libs next with the drag fixes; whole-app drag trial --- Cargo.lock | 164 +++++++++++------------ Cargo.toml | 70 +++++----- crates/engine/Cargo.toml | 2 +- crates/ipp/Cargo.toml | 2 +- crates/ui-egui/src/drag_settle_trials.rs | 132 ++++++++++++++++++ crates/ui-egui/src/lib.rs | 2 + 6 files changed, 253 insertions(+), 119 deletions(-) create mode 100644 crates/ui-egui/src/drag_settle_trials.rs diff --git a/Cargo.lock b/Cargo.lock index 03e789f3d6..6077cdbaec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1365,7 +1365,7 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-automation", "craft-behavior", @@ -1404,7 +1404,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "crc32fast", "flate2", @@ -1425,7 +1425,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "rustix 1.1.5", ] @@ -1433,7 +1433,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "base64 0.22.1", "craft-behavior", @@ -1457,7 +1457,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1473,7 +1473,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-docpath", @@ -1491,7 +1491,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "egui", ] @@ -1499,7 +1499,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "md-5", "rayon", @@ -1508,7 +1508,7 @@ dependencies = [ [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-cms", @@ -1528,7 +1528,7 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-ai-agents", "craft-atomic", @@ -1542,7 +1542,7 @@ dependencies = [ [[package]] name = "craft-crs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-metadata", "craft-xml", @@ -1552,7 +1552,7 @@ dependencies = [ [[package]] name = "craft-crw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "thiserror 2.0.21", ] @@ -1560,7 +1560,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "rayon", ] @@ -1568,7 +1568,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "block2 0.6.2", "craft-atomic", @@ -1591,7 +1591,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "serde", ] @@ -1599,7 +1599,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1618,12 +1618,12 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" [[package]] name = "craft-file-formats" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-eps", "craft-idml", @@ -1641,7 +1641,7 @@ dependencies = [ [[package]] name = "craft-flags" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-atomic", "dirs", @@ -1651,7 +1651,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1666,7 +1666,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1685,7 +1685,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "cap-primitives", "craft-atomic", @@ -1706,12 +1706,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" [[package]] name = "craft-heif" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "heic-rs", "rayon", @@ -1720,7 +1720,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1733,7 +1733,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "chrono", "fixed_decimal", @@ -1761,7 +1761,7 @@ dependencies = [ [[package]] name = "craft-idml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-xml", "craft-zip", @@ -1771,7 +1771,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-dds", "craft-heif", @@ -1799,7 +1799,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1817,12 +1817,12 @@ dependencies = [ [[package]] name = "craft-ipp" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "thiserror 2.0.21", ] @@ -1830,7 +1830,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-host", "craft-i18n", @@ -1843,7 +1843,7 @@ dependencies = [ [[package]] name = "craft-kra" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-xml", "craft-zip", @@ -1853,7 +1853,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-i18n", @@ -1867,7 +1867,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-host", @@ -1885,7 +1885,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "brotli-decompressor 6.3.2", "chrono", @@ -1897,7 +1897,7 @@ dependencies = [ [[package]] name = "craft-ora" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-xml", "craft-zip", @@ -1907,7 +1907,7 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-text", @@ -1921,7 +1921,7 @@ dependencies = [ [[package]] name = "craft-pcraft-bundle" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "blake3", "craft-atomic", @@ -1934,7 +1934,7 @@ dependencies = [ [[package]] name = "craft-pcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "flate2", "serde", @@ -1945,7 +1945,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "bytemuck", "flate2", @@ -1960,7 +1960,7 @@ dependencies = [ [[package]] name = "craft-pdn" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "flate2", "thiserror 2.0.21", @@ -1969,7 +1969,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "async-channel", "async-io", @@ -1995,7 +1995,7 @@ dependencies = [ [[package]] name = "craft-plist" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "thiserror 2.0.21", ] @@ -2003,7 +2003,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-ui", @@ -2021,7 +2021,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "encoding_rs", "flate2", @@ -2032,7 +2032,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "dispatch2", "egui", @@ -2043,7 +2043,7 @@ dependencies = [ [[package]] name = "craft-raw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "chrono", "craft-crw", @@ -2061,7 +2061,7 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-host", @@ -2078,7 +2078,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-atomic", "craft-host", @@ -2092,7 +2092,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-image-codecs", "craft-xml", @@ -2113,7 +2113,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-keymap", @@ -2125,7 +2125,7 @@ dependencies = [ [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-font-manager", @@ -2148,7 +2148,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "bitflags 2.13.2", "ecolor", @@ -2161,7 +2161,7 @@ dependencies = [ [[package]] name = "craft-theme-editor" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-theme", @@ -2172,7 +2172,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-atomic", "craft-behavior", @@ -2187,7 +2187,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "serde", "thiserror 2.0.21", @@ -2196,7 +2196,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "serde", "thiserror 2.0.21", @@ -2205,7 +2205,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-keymap", @@ -2220,12 +2220,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -2239,7 +2239,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-i18n", @@ -2255,7 +2255,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "accesskit", "craft-behavior", @@ -2292,7 +2292,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2303,7 +2303,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-host", @@ -2321,7 +2321,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-host", @@ -2342,7 +2342,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-host", @@ -2361,7 +2361,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-behavior", "craft-host", @@ -2378,7 +2378,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "chrono", "craft-host", @@ -2407,7 +2407,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "winsafe", ] @@ -2415,7 +2415,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "craft-atomic", "craft-behavior", @@ -2445,7 +2445,7 @@ dependencies = [ [[package]] name = "craft-xcf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2454,7 +2454,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "quick-xml 0.41.0", "serde", @@ -2464,7 +2464,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "flate2", "thiserror 2.0.21", @@ -3927,7 +3927,7 @@ dependencies = [ [[package]] name = "hayro" version = "0.7.1" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "bytemuck", "hayro-interpret", @@ -3957,7 +3957,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -3975,7 +3975,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -3999,7 +3999,7 @@ checksum = "bc2d80da85f31c3fdc0366431f44cfd645a9da1e242ed1f4a61f213d9765660f" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "flate2", "hayro-ccitt", @@ -5083,7 +5083,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" dependencies = [ "arrayvec", "kurbo 0.13.1", @@ -11155,14 +11155,14 @@ source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b [[patch.unused]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" [[patch.unused]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" [[patch.unused]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=3e9bbdff116a28846d90728b3be72c348cef7214#3e9bbdff116a28846d90728b3be72c348cef7214" +source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" diff --git a/Cargo.toml b/Cargo.toml index fb925e771a..86867dad57 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,19 +12,19 @@ rust-version = "1.95" [workspace.dependencies] # The craft framework through its facade (`craft::ui::…`). The egui `[patch]` below must match # `craft::egui_fork::REV` (checked by `cargo xtask ci`). -craft = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214", default-features = false } +craft = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", default-features = false } # internal photocraft-geom = { path = "crates/geom" } photocraft-color = { path = "crates/color" } photocraft-raster = { path = "crates/raster" } photocraft-doc = { path = "crates/doc" } photocraft-ops = { path = "crates/ops" } -craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } +craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } photocraft-raw = { path = "crates/raw" } -craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } photocraft-compose = { path = "crates/compose" } photocraft-gpu = { path = "crates/gpu" } photocraft-paint = { path = "crates/paint" } @@ -43,34 +43,34 @@ photocraft-ipp = { path = "crates/ipp" } # external # ICC colour management: the shared crate (replaces crates/cms; craft-libs#779). -craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-print = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-print = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } # HEIC/HEIF: the shared decoder (replaces crates/heif; craft-libs#784). -craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214", features = ["raster", "write-raster"] } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } +craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", features = ["raster", "write-raster"] } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } # Keep the shared embedded-image validation API until the framework revision includes it. -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214", features = ["tree-render", "tree-render-system-fonts"] } -craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", features = ["tree-render", "tree-render-system-fonts"] } +craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } # Camera-field EXIF reader/writer, shared prerequisite craft-libs#1563. -craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } +craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } # Interface translations: lookup, fallback, CLDR plurals and language names over the craft-i18n # catalogs that `crates/ui-egui/build.rs` embeds from `CRAFT_I18N_DIR` (storytold/craft-i18n, at # the commit in `craft-i18n.rev`). Already in the tree through craft. -craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } +craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "3e9bbdff116a28846d90728b3be72c348cef7214", features = ["ui"] } +craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", features = ["ui"] } thiserror = "2" serde = { version = "1", features = ["derive", "rc"] } serde_json = "1" @@ -335,14 +335,14 @@ opt-level = 3 # Keep the complete egui family and native event bridge on reviewed fork commits. [patch.crates-io] -krilla = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -hayro = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +hayro = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } ecolor = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } emath = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } epaint = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index 71c682fc15..cc06c2c97b 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -16,7 +16,7 @@ photocraft-geom = { workspace = true } photocraft-color = { workspace = true } craft-cms = { workspace = true } # PCTIP codec from craft-libs#1564; isolated pin until the shared revision is adopted workspace-wide. -craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } +craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } photocraft-raster = { workspace = true } photocraft-doc = { workspace = true } photocraft-ops = { workspace = true } diff --git a/crates/ipp/Cargo.toml b/crates/ipp/Cargo.toml index 32ac977590..3de77f75e3 100644 --- a/crates/ipp/Cargo.toml +++ b/crates/ipp/Cargo.toml @@ -7,7 +7,7 @@ license.workspace = true rust-version.workspace = true [dependencies] -craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "3e9bbdff116a28846d90728b3be72c348cef7214" } +craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } [lints] workspace = true diff --git a/crates/ui-egui/src/drag_settle_trials.rs b/crates/ui-egui/src/drag_settle_trials.rs new file mode 100644 index 0000000000..3da610823e --- /dev/null +++ b/crates/ui-egui/src/drag_settle_trials.rs @@ -0,0 +1,132 @@ +//! Count trials for value drags in the whole app (#15859): a drag runs the regions that show the dragged value and +//! leaves every other settled region replaying, each move is one pass, the value follows the pointer in the frame it +//! moves, and the drag is one command. + +use std::collections::HashSet; + +use craft::ui::runtime::measure::{Settle, last_pass_settles}; +use egui::accesskit::Role; +use egui::{Event, Id, Pos2, Rect, vec2}; +use egui_kittest::Harness; +use egui_kittest::kittest::{NodeT, Queryable}; +use serde_json::json; + +use crate::PhotocraftApp; +use crate::state::Tool; + +type H = Harness<'static, Box>; + +/// The whole app on a new document with the Brush, and an adjustment layer of `kind` when one is asked for. +fn harness(kind: Option<&'static str>) -> H { + let mut h = Harness::builder().with_size(vec2(1440.0, 900.0)).with_max_steps(64).with_step_dt(1.0 / 60.0).build_eframe(move |cc| { + PhotocraftApp::setup_context(&cc.egui_ctx, Default::default()); + let mut s = photocraft_engine::Session::new(); + s.execute("file.new", json!({"width": 400, "height": 300})).unwrap(); + if let Some(kind) = kind { + s.execute(&format!("layer.newAdjustmentLayer.{kind}"), json!({})).unwrap(); + } + let mut app = PhotocraftApp::with_context(cc.egui_ctx.clone(), s, crate::Services::default()); + app.ui.tool = Tool::Brush; + app + }); + h.run_steps(8); + h +} + +fn node_rect(h: &H, role: Role, label: &str) -> Option { + h.query_all_by_role(role).find(|n| n.accesskit_node().label().is_some_and(|l| l.trim_end_matches(':') == label)).map(|n| n.rect()) +} + +/// The value the spin field `label` inside `within` shows. +fn field_value(h: &H, label: &str, within: Rect) -> Option { + h.query_all_by_role(Role::SpinButton) + .find(|n| n.accesskit_node().label().is_some_and(|l| l.trim_end_matches(':') == label) && within.contains(n.rect().center())) + .and_then(|n| n.accesskit_node().numeric_value().or_else(|| n.accesskit_node().value().and_then(|v| v.trim_end_matches(" px").parse().ok()))) +} + +/// The settling regions the last pass replayed. +fn replayed(h: &H) -> HashSet { + last_pass_settles(&h.ctx).into_iter().filter(|(_, s)| *s == Settle::Replayed).map(|(id, _)| id).collect() +} + +/// What one drag move did: the regions it replayed, the passes it ran and `read` after it. +struct Move { + replayed: HashSet, + passes: u64, + read: T, +} + +/// The regions a hover frame over `at` replays, then each drag move from `at` by `dx`. +fn drag(h: &mut H, at: Pos2, dx: f32, moves: usize, read: impl Fn(&H) -> T) -> (HashSet, Vec>) { + h.event(Event::PointerMoved(at)); + h.run_steps(4); + h.event(Event::PointerMoved(at + vec2(0.0, 1.0))); + h.run_steps(1); + let hover = replayed(h); + h.event(Event::PointerMoved(at)); + h.run_steps(1); + h.event(Event::PointerButton { pos: at, button: egui::PointerButton::Primary, pressed: true, modifiers: Default::default() }); + h.run_steps(1); + let mut moves_made = Vec::new(); + let mut to = at; + for _ in 0..moves { + to += vec2(dx, 0.0); + h.event(Event::PointerMoved(to)); + let before = h.ctx.cumulative_pass_nr(); + h.run_steps(1); + moves_made.push(Move { replayed: replayed(h), passes: h.ctx.cumulative_pass_nr() - before, read: read(h) }); + } + h.event(Event::PointerButton { pos: to, button: egui::PointerButton::Primary, pressed: false, modifiers: Default::default() }); + h.run_steps(2); + (hover, moves_made) +} + +/// The canvas picker's Size slider: the brush size follows each move in that frame, each move is one pass (the +/// options bar's Brush Preset chip holds its width as its caption gains digits), and only the options bar, which +/// shows the size, leaves the regions a hover replays (before #15859 every region ran on every move). The drag is +/// one `tools.setBrush` and no history step. +#[test] +fn a_picker_size_drag_runs_only_the_regions_that_show_the_brush() { + let mut h = harness(None); + let c = h.state().last_canvas_rect.center(); + crate::brush_picker::open(h.state_mut(), [c.x, c.y]); + h.run_steps(4); + let picker = node_rect(&h, Role::Slider, "Size").expect("the picker's Size slider"); + let (journal, steps) = (h.state().session.journal.len(), h.state().session.active().unwrap().history.past_len()); + let from = egui::pos2(picker.left() + picker.width() * 0.2, picker.center().y); + // From a size of one digit to three: the chip's caption gains digits on the way. + let (hover, moves) = drag(&mut h, from, 3.0, 30, |h| h.state().session.tools.brush.size); + assert!(!hover.is_empty(), "a hover frame replays the settled regions"); + let sizes: Vec = moves.iter().map(|m| m.read).collect(); + assert!(sizes.iter().any(|&s| s < 10.0) && sizes.iter().any(|&s| s >= 100.0), "the drag spans one to three digits: {sizes:?}"); + // The first moves pass egui's drag threshold. + for (i, m) in moves.iter().enumerate().skip(3) { + let left: Vec<&Id> = hover.difference(&m.replayed).collect(); + assert!(left.len() <= 1, "move {i}: only the options bar (it shows the brush size) leaves the regions a hover replays: {left:?}"); + assert_eq!(m.passes, 1, "move {i}: the move is one pass: {sizes:?}"); + assert_ne!(m.read, moves[i - 1].read, "move {i}: the size follows the pointer every move: {sizes:?}"); + } + let state = h.state(); + let ids: Vec<&str> = state.session.journal[journal..].iter().map(|(id, _)| id.as_str()).collect(); + assert_eq!(ids, ["tools.setBrush"], "the drag is one command"); + assert_eq!(state.session.active().unwrap().history.past_len(), steps, "a brush edit is no history step"); +} + +/// A Properties slider of an adjustment layer: its field shows the slider's value each move, each move is one pass, +/// and no region other than Properties and the canvas runs for it (before #15859 every region ran on every move). +#[test] +fn a_properties_slider_drag_leaves_the_other_regions_settled() { + let mut h = harness(Some("brightnessContrast")); + let slider = node_rect(&h, Role::Slider, "Brightness").expect("the Brightness slider"); + let row = Rect::from_min_max(egui::pos2(slider.left() - 400.0, slider.top() - 40.0), egui::pos2(slider.right() + 400.0, slider.bottom())); + let (hover, moves) = drag(&mut h, slider.center(), 3.0, 12, |h| field_value(h, "Brightness", row)); + assert!(!hover.is_empty(), "a hover frame replays the settled regions"); + let shown: Vec> = moves.iter().map(|m| m.read).collect(); + for (i, m) in moves.iter().enumerate().skip(3) { + let left: Vec<&Id> = hover.difference(&m.replayed).collect(); + assert!(left.len() <= 1, "move {i}: only the canvas leaves the regions a hover replays: {left:?}"); + assert_eq!(m.passes, 1, "move {i}: the move is one pass"); + assert!(m.read.is_some_and(|v| v > 0.0), "move {i}: the Brightness field follows the slider: {shown:?}"); + } + assert!(shown.windows(2).skip(3).all(|w| w[0] != w[1]), "the field changes every move: {shown:?}"); +} diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index b11ff1813e..66416c7cef 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -942,6 +942,8 @@ mod chrome_settle_trials; #[cfg(test)] mod doc_revision_trials; #[cfg(test)] +mod drag_settle_trials; +#[cfg(test)] mod layer_thumb_bounds_tests; #[cfg(test)] mod mask_thumb_refresh_tests;