From 63f6c20842150ed8b2a32a76cd99a344065c6657 Mon Sep 17 00:00:00 2001 From: David Mann Date: Wed, 2 Dec 2026 02:14:45 +0100 Subject: [PATCH 1/2] WIP: Crop: the Golden Spiral has eight orientations (#17672) From 91573580127d27190ac8bdad038c73d31e745ddc Mon Sep 17 00:00:00 2001 From: David Mann Date: Wed, 2 Dec 2026 02:28:14 +0100 Subject: [PATCH 2/2] Crop: the Golden Spiral has eight orientations (#17672) Shift+O now steps the Golden Spiral through eight orientations as in the reference application (the geometry is in craft-libs; the pin moves to the epic-crop batch branch's tip). `ui.set cropOverlayOrientation` takes 0 to 7; saved settings already keep what the guide has. Co-Authored-By: Claude Opus 5.5 --- Cargo.lock | 192 +++++++++--------- Cargo.toml | 84 ++++---- crates/engine-core/Cargo.toml | 2 +- crates/ipp/Cargo.toml | 2 +- crates/ui-egui/src/control.rs | 2 + .../control/crop_overlay_orientation_tests.rs | 83 ++++++++ crates/ui-egui/src/control/dispatch.rs | 6 +- crates/ui-egui/src/control/tests.rs | 2 +- docs/control-protocol.md | 2 +- 9 files changed, 231 insertions(+), 144 deletions(-) create mode 100644 crates/ui-egui/src/control/crop_overlay_orientation_tests.rs diff --git a/Cargo.lock b/Cargo.lock index 980c2438d5..f13b143677 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1376,7 +1376,7 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-automation", "craft-behavior", @@ -1417,7 +1417,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "crc32fast", "flate2", @@ -1438,7 +1438,7 @@ dependencies = [ [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "block2 0.6.2", "objc2 0.6.5", @@ -1450,7 +1450,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "rustix 1.1.6", ] @@ -1458,7 +1458,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1483,7 +1483,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1501,7 +1501,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-docpath", @@ -1519,7 +1519,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "egui", ] @@ -1527,7 +1527,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "md-5", "rayon", @@ -1536,12 +1536,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" [[package]] name = "craft-color" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "serde", ] @@ -1549,7 +1549,7 @@ dependencies = [ [[package]] name = "craft-color-transform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-cms", "craft-color", @@ -1559,7 +1559,7 @@ dependencies = [ [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-cms", @@ -1580,7 +1580,7 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-ai-agents", "craft-atomic", @@ -1596,7 +1596,7 @@ dependencies = [ [[package]] name = "craft-control-protocol" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "getrandom 0.3.4", "serde_json", @@ -1606,7 +1606,7 @@ dependencies = [ [[package]] name = "craft-crs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-metadata", "craft-xml", @@ -1616,7 +1616,7 @@ dependencies = [ [[package]] name = "craft-crw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "thiserror 2.0.21", ] @@ -1624,7 +1624,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "rayon", ] @@ -1632,7 +1632,7 @@ dependencies = [ [[package]] name = "craft-develop" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-color", "craft-color-transform", @@ -1647,7 +1647,7 @@ dependencies = [ [[package]] name = "craft-develop-model" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-geom", "craft-metadata", @@ -1659,7 +1659,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "block2 0.6.2", "craft-appkit", @@ -1685,7 +1685,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "serde", ] @@ -1693,7 +1693,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1712,7 +1712,7 @@ dependencies = [ [[package]] name = "craft-drawingml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "chrono", "craft-xml", @@ -1724,12 +1724,12 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" [[package]] name = "craft-file-formats" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-eps", "craft-idml", @@ -1747,7 +1747,7 @@ dependencies = [ [[package]] name = "craft-flags" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-atomic", "dirs", @@ -1757,7 +1757,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1772,7 +1772,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1792,7 +1792,7 @@ dependencies = [ [[package]] name = "craft-font-os-windows" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "windows-registry", "windows-sys 0.61.2", @@ -1801,7 +1801,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "cap-primitives", "craft-atomic", @@ -1824,12 +1824,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" [[package]] name = "craft-geom" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "serde", ] @@ -1837,7 +1837,7 @@ dependencies = [ [[package]] name = "craft-heif" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "heic-rs", "rayon", @@ -1846,7 +1846,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1859,7 +1859,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "brotli 9.1.3", "brotli-decompressor 6.3.2", @@ -1889,7 +1889,7 @@ dependencies = [ [[package]] name = "craft-idml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-xml", "craft-zip", @@ -1899,7 +1899,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-dds", "craft-heif", @@ -1927,7 +1927,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1945,12 +1945,12 @@ dependencies = [ [[package]] name = "craft-ipp" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "thiserror 2.0.21", ] @@ -1958,7 +1958,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-host", "craft-i18n", @@ -1973,7 +1973,7 @@ dependencies = [ [[package]] name = "craft-kra" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-xml", "craft-zip", @@ -1983,7 +1983,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-i18n", @@ -1997,7 +1997,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-host", @@ -2015,7 +2015,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "brotli-decompressor 6.3.2", "chrono", @@ -2027,7 +2027,7 @@ dependencies = [ [[package]] name = "craft-nightly" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "uds_windows", "winsafe", @@ -2036,7 +2036,7 @@ dependencies = [ [[package]] name = "craft-ora" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-xml", "craft-zip", @@ -2046,7 +2046,7 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-keymap", @@ -2062,7 +2062,7 @@ dependencies = [ [[package]] name = "craft-pcraft-bundle" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "blake3", "craft-atomic", @@ -2075,7 +2075,7 @@ dependencies = [ [[package]] name = "craft-pcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "flate2", "serde", @@ -2086,7 +2086,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "bytemuck", "flate2", @@ -2101,7 +2101,7 @@ dependencies = [ [[package]] name = "craft-pdn" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2110,7 +2110,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "async-channel", "async-io", @@ -2143,7 +2143,7 @@ dependencies = [ [[package]] name = "craft-plist" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "thiserror 2.0.21", ] @@ -2151,7 +2151,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-host", @@ -2175,7 +2175,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "encoding_rs", "flate2", @@ -2186,7 +2186,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "dispatch2", "egui", @@ -2199,7 +2199,7 @@ dependencies = [ [[package]] name = "craft-raw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "chrono", "craft-crw", @@ -2217,7 +2217,7 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -2236,7 +2236,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-atomic", "craft-host", @@ -2253,7 +2253,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-image-codecs", "craft-xml", @@ -2274,7 +2274,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-keymap", @@ -2286,7 +2286,7 @@ dependencies = [ [[package]] name = "craft-testkit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "rustix 1.1.6", "tempfile", @@ -2296,7 +2296,7 @@ dependencies = [ [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-font-manager", @@ -2319,7 +2319,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -2334,7 +2334,7 @@ dependencies = [ [[package]] name = "craft-theme-editor" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-theme", @@ -2345,7 +2345,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-atomic", "craft-behavior", @@ -2360,7 +2360,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "serde", "thiserror 2.0.21", @@ -2370,7 +2370,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "serde", "thiserror 2.0.21", @@ -2379,7 +2379,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-keymap", @@ -2394,7 +2394,7 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "serde", ] @@ -2402,7 +2402,7 @@ dependencies = [ [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -2416,7 +2416,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -2433,7 +2433,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "accesskit", "craft-behavior", @@ -2475,7 +2475,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2486,7 +2486,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-host", @@ -2504,7 +2504,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-host", @@ -2525,7 +2525,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-host", @@ -2545,7 +2545,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-behavior", "craft-host", @@ -2564,7 +2564,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "base64 0.22.1", "chrono", @@ -2596,7 +2596,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "winsafe", ] @@ -2604,7 +2604,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "craft-appkit", "craft-atomic", @@ -2636,7 +2636,7 @@ dependencies = [ [[package]] name = "craft-xcf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2645,7 +2645,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "quick-xml 0.41.0", "serde", @@ -2655,7 +2655,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "flate2", "thiserror 2.0.21", @@ -4179,7 +4179,7 @@ dependencies = [ [[package]] name = "hayro" version = "0.7.1" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "bytemuck", "hayro-interpret", @@ -4209,7 +4209,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -4227,7 +4227,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -4251,7 +4251,7 @@ checksum = "bc2d80da85f31c3fdc0366431f44cfd645a9da1e242ed1f4a61f213d9765660f" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "flate2", "hayro-ccitt", @@ -5344,7 +5344,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "arrayvec", "kurbo 0.13.1", @@ -9855,7 +9855,7 @@ dependencies = [ [[package]] name = "vello_common" version = "0.0.8" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "bytemuck", "fearless_simd", @@ -9903,7 +9903,7 @@ dependencies = [ [[package]] name = "vello_cpu" version = "0.0.8" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" dependencies = [ "bytemuck", "glifo 0.1.1", @@ -11549,14 +11549,14 @@ source = "git+https://github.com/storytold/egui.git?rev=07c20531f89717e461c0f387 [[patch.unused]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" [[patch.unused]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" [[patch.unused]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=475f6feb712bd2db2f235d9999be61c68477ae39#475f6feb712bd2db2f235d9999be61c68477ae39" +source = "git+https://github.com/storytold/craft-libs?rev=b7bd5bdd045af50581c8490974925648f42149ba#b7bd5bdd045af50581c8490974925648f42149ba" diff --git a/Cargo.toml b/Cargo.toml index 61da67d493..6262b83b8a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,21 +12,21 @@ 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 = "475f6feb712bd2db2f235d9999be61c68477ae39", default-features = false } -craft-tracked = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-ui-macros = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba", default-features = false } +craft-tracked = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-ui-macros = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } # 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 = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } +craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba", 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 = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } photocraft-compose = { path = "crates/compose" } photocraft-gpu = { path = "crates/gpu" } photocraft-paint = { path = "crates/paint" } @@ -48,38 +48,38 @@ 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 = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-print = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-print = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } # HEIC/HEIF: the shared decoder (replaces crates/heif; craft-libs#784). -craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39", features = ["raster", "write-raster"] } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba", features = ["raster", "write-raster"] } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } # Keep the shared embedded-image validation API until the framework revision includes it. -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39", features = ["tree-render", "tree-render-system-fonts"] } -craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba", features = ["tree-render", "tree-render-system-fonts"] } +craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } # Camera-field EXIF reader/writer, shared prerequisite craft-libs#1563. -craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } # 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 = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } # 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 = "475f6feb712bd2db2f235d9999be61c68477ae39", features = ["ui"] } +craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "b7bd5bdd045af50581c8490974925648f42149ba", features = ["ui"] } # Self-contained nightly profile isolation, launch protocol, and security fence. -craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } thiserror = "2" serde = { version = "1", features = ["derive", "rc"] } serde_json = "1" @@ -352,16 +352,16 @@ 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 = "475f6feb712bd2db2f235d9999be61c68477ae39" } -hayro = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -vello_common = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } -vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +hayro = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +vello_common = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } +vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } 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" } diff --git a/crates/engine-core/Cargo.toml b/crates/engine-core/Cargo.toml index ac24b32f63..8d719e2d9e 100644 --- a/crates/engine-core/Cargo.toml +++ b/crates/engine-core/Cargo.toml @@ -19,7 +19,7 @@ photocraft-geom = { workspace = true } photocraft-color = { workspace = true } craft-cms = { workspace = true } # PCTIP codec from craft-libs#1564; kept at the same shared revision as the workspace. -craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } 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 b25a5ccd3f..f713c5706a 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 = "475f6feb712bd2db2f235d9999be61c68477ae39" } +craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "b7bd5bdd045af50581c8490974925648f42149ba" } [lints] workspace = true diff --git a/crates/ui-egui/src/control.rs b/crates/ui-egui/src/control.rs index 0060603ca2..8341195d02 100644 --- a/crates/ui-egui/src/control.rs +++ b/crates/ui-egui/src/control.rs @@ -123,6 +123,8 @@ pub fn handle(app: &mut PhotocraftApp, ctx: &egui::Context, req: &ControlRequest outcome } +#[cfg(test)] +mod crop_overlay_orientation_tests; #[cfg(test)] mod pointer_color_picker_sample_tests; #[cfg(test)] diff --git a/crates/ui-egui/src/control/crop_overlay_orientation_tests.rs b/crates/ui-egui/src/control/crop_overlay_orientation_tests.rs new file mode 100644 index 0000000000..17b6c275c8 --- /dev/null +++ b/crates/ui-egui/src/control/crop_overlay_orientation_tests.rs @@ -0,0 +1,83 @@ +//! #17672 (EPIC-CROP #10866): the Golden Spiral has eight orientations, as in the reference +//! application. `ui.set cropOverlayOrientation` takes 0 to 7, Shift+O on a pending crop steps +//! through all eight and wraps, saved settings keep them, and the Triangle keeps its two. + +use craft::behavior::geometry::crop::CropGuide; +use egui::Modifiers; +use serde_json::json; + +use crate::PhotocraftApp; +use crate::canvas::testing::{control, key}; +use crate::canvas::{ToolEvent, tool_event}; +use crate::state::Tool; + +/// A 32 × 32 document with the Crop tool picked (Classic Mode, so the view stays put). +fn crop_app() -> Box { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({"width": 32, "height": 32})).unwrap(); + app.sync_views(); + app.ui.tool = Tool::Crop; + app.ui.tool_options.crop.shield.classic_mode = true; + app.ui.extras.snap = false; + app +} + +/// Draws a crop frame from (4, 4) to (28, 28): a pending crop, which Shift+O needs. +fn draw_crop(app: &mut PhotocraftApp) { + tool_event(app, ToolEvent::Down { x: 4.0, y: 4.0, pressure: 1.0 }, Modifiers::NONE); + tool_event(app, ToolEvent::Move { x: 16.0, y: 16.0, pressure: 1.0 }, Modifiers::NONE); + tool_event(app, ToolEvent::Move { x: 28.0, y: 28.0, pressure: 1.0 }, Modifiers::NONE); + tool_event(app, ToolEvent::Up { x: 28.0, y: 28.0 }, Modifiers::NONE); + assert!(crate::crop_ui::pending(app), "the drag draws a pending frame"); +} + +#[test] +fn ui_set_takes_each_golden_spiral_orientation() { + let mut app = crop_app(); + for o in 0..8u64 { + let r = control(&mut app, "ui.set", json!({"cropOverlay": "goldenSpiral", "cropOverlayOrientation": o})); + assert_eq!(r["ok"], true, "orientation {o}: {r}"); + let seen = control(&mut app, "ui.inspect", json!({})); + assert_eq!(seen["result"]["toolOptions"]["crop"]["guideOrientation"].as_u64(), Some(o)); + } + // Past the last orientation is refused and changes nothing. + let r = control(&mut app, "ui.set", json!({"cropOverlayOrientation": 8})); + assert_eq!(r["ok"], false, "{r}"); + assert_eq!(app.ui.tool_options.crop.guide_orientation, 7); +} + +#[test] +fn shift_o_steps_the_spiral_through_eight_orientations_and_the_triangle_through_two() { + let mut app = crop_app(); + draw_crop(&mut app); + app.ui.tool_options.crop.guide = CropGuide::GoldenSpiral; + app.ui.tool_options.crop.guide_orientation = 0; + let mut seen = Vec::new(); + for _ in 0..8 { + key(&mut app, egui::Key::O, Modifiers::SHIFT); + seen.push(app.ui.tool_options.crop.guide_orientation); + } + assert_eq!(seen, [1, 2, 3, 4, 5, 6, 7, 0], "Shift+O steps 0 to 7 and wraps"); + + app.ui.tool_options.crop.guide = CropGuide::Triangle; + let mut seen = Vec::new(); + for _ in 0..2 { + key(&mut app, egui::Key::O, Modifiers::SHIFT); + seen.push(app.ui.tool_options.crop.guide_orientation); + } + assert_eq!(seen, [1, 0], "the Triangle keeps its two orientations"); +} + +#[test] +fn saved_settings_keep_a_spiral_orientation_past_three() { + let restored = |guide: &str, orientation: u8| { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + app.session.prefs.edit(|p| p.tool_options = json!({"crop": {"guide": guide, "guideOrientation": orientation}})); + crate::tool_memory::restore(&mut app); + (app.ui.tool_options.crop.guide, app.ui.tool_options.crop.guide_orientation) + }; + assert_eq!(restored("goldenSpiral", 6), (CropGuide::GoldenSpiral, 6)); + assert_eq!(restored("goldenSpiral", 7), (CropGuide::GoldenSpiral, 7)); + // An orientation the guide doesn't have starts over. + assert_eq!(restored("triangle", 6), (CropGuide::Triangle, 0)); +} diff --git a/crates/ui-egui/src/control/dispatch.rs b/crates/ui-egui/src/control/dispatch.rs index fa4d2a6526..f05ba08fc5 100644 --- a/crates/ui-egui/src/control/dispatch.rs +++ b/crates/ui-egui/src/control/dispatch.rs @@ -716,9 +716,11 @@ impl CropSet { let show = parse_like(&crop.guide_show, v, || "cropOverlayShow must be one of auto, always, never".to_string())?; writes.push(Box::new(move |app| app.ui.tool_options.crop.guide_show = show)); } + // Up to the Golden Spiral's eight (#17672); a guide with fewer starts over when it shows. + let orientations = CropGuide::ALL.iter().map(|g| g.orientations()).max().unwrap_or(1); match uint_field(p, "cropOverlayOrientation")? { - Some(o) if o < 4 => writes.push(Box::new(move |app| app.ui.tool_options.crop.guide_orientation = o as u8)), - Some(_) => return Err("cropOverlayOrientation must be 0, 1, 2 or 3".into()), + Some(o) if o < u64::from(orientations) => writes.push(Box::new(move |app| app.ui.tool_options.crop.guide_orientation = o as u8)), + Some(_) => return Err(format!("cropOverlayOrientation must be 0 to {}", orientations - 1)), None => {} } // The Crop tool's Fill (#3823): "background" (Background (default), or Transparent diff --git a/crates/ui-egui/src/control/tests.rs b/crates/ui-egui/src/control/tests.rs index eee99e152f..0c584347be 100644 --- a/crates/ui-egui/src/control/tests.rs +++ b/crates/ui-egui/src/control/tests.rs @@ -735,7 +735,7 @@ fn ui_set_drives_the_crop_overlay_options() { json!({"cropOverlay": "spiral"}), json!({"cropOverlay": 1}), json!({"cropOverlayShow": "sometimes"}), - json!({"cropOverlayOrientation": 4}), + json!({"cropOverlayOrientation": 8}), json!({"cropOverlayOrientation": -1}), json!({"cropOverlayOrientation": "1"}), json!({"cropOverlay": "grid", "cropOverlayShow": "nope"}), diff --git a/docs/control-protocol.md b/docs/control-protocol.md index b815713606..e6a0f7bbd8 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -118,7 +118,7 @@ The transport is the framework's control server (`craft::automation::server` in - Clone Source X/Y are signed document-pixel offsets, using the existing `source - destination` convention. The panel derives the current preview/stroke pairing without anchoring it on hover. `cloneSource.list` exposes `anchor` (persistent Aligned pairing), `lastAnchor` (most recently used successful pairing), and `offset` (source minus that last reference). Unaligned strokes update the readout while restarting at the sample point each time; failed or canceled strokes do not commit a pairing. To edit the offset shown for a preview, use `cloneSource.set {"offset":[dx,dy],"anchor":[destinationX,destinationY]}`; without an explicit anchor an edit uses the last reported reference, then the existing aligned reference or sample point. Source picking clears both anchors; resetTransform retains them. Null optional coordinates are omitted consistently in mapping and source-document selection. Invalid coordinates, slot indexes, and oversized transformed sampling windows return errors without painting. - Brush Pose's `pose.overrideTiltX` and `pose.overrideTiltY` are independent booleans. For example, `engine.execute {"command":"tools.setBrush","params":{"pose":{"enabled":true,"tiltX":45,"overrideTiltX":true,"overrideTiltY":false}}}` fixes X at 45° while Y follows the stylus. Pose tilts are degrees (±90); the Brush Settings panel displays percentages (±100). Old stored `overrideTilt` values migrate to both axes. In command patches, `overrideTilt` sets both axes unless an explicit axis field in the same patch overrides it. `brush.get` includes both axis flags and the legacy combined readback (`overrideTilt` is true only when both flags are true). Axis-only journals omit that derived combined key so replay retains the other axis. Present flag values must be booleans; null and other types return an error. - `ui.set` also accepts the Eyedropper options bar (#1649): `eyedropperSampleSize` (`"point"` or 1, 3, 5, 11, 31, 51, 101: the side of the averaged square, shared by the Eyedropper, a painting tool's Alt-click eyedropper, the Curves/Color Picker eyedroppers and the Info panel), `eyedropperSample` (`current`, `currentAndBelow`, `all`, `allNoAdjustments`, `currentAndBelowNoAdjustments`) and `eyedropperRing` (boolean, Show Sampling Ring). `ui.inspect` reports them under `toolOptions` (`eyedropper_size`, `eyedropper_sample`, `eyedropper_ring`). The engine command `document.sampleColor {x, y, size, sampleLayer, zoom}` returns the colour such a sample picks, as four floats 0..1 (not 0..255). `zoom` is optional: the view zoom in screen pixels per document pixel (1 = 100 %, a positive number). Without it, an N by N Average reads the N × N square centred on the pixel. With it, the sample matches the Eyedropper at that zoom (#11751): above 100 % it is still the centred square, and at 100 % and below an N by N Average covers (N+1) × (N+1) *screen* pixels, so at 100 % 3 by 3 reads 4 × 4 document pixels and at 50 % 8 × 8. The side in document pixels is (N+1) ÷ `zoom` rounded to the nearest whole pixel, at least N+1 and at most 4096 (at 75 % a 3 by 3 Average reads 5 × 5). The box starts ⌈side ÷ 2⌉ − 1 pixels left of and above the sampled pixel, so an odd side is centred on it and an even side has one pixel more after it than before (at 100 % 3 by 3 reads x−1 … x+2). Like every sample, the box is clipped to the canvas, and a point off the canvas reads transparent. Point Sample reads one pixel at every zoom. To get what the Eyedropper picks, pass its `eyedropperSampleSize` as `size`, its `eyedropperSample` as `sampleLayer` and the document's zoom as `zoom`: left out, `size` is Point Sample (1) and `sampleLayer` is `all`. -- `ui.set` also accepts the Crop tool's overlay menu (#1919): `cropOverlay` (`thirds`, `grid`, `diagonal`, `triangle`, `goldenRatio`, `goldenSpiral`), `cropOverlayShow` (`always`: the whole time a crop is pending, the default, as in the reference application; `auto`: only while the crop box is dragged; `never`) and `cropOverlayOrientation` (0..3; Triangle has two orientations and Golden Spiral four, the others ignore it). `ui.inspect` reports them under `toolOptions` (`crop_overlay`, `crop_overlay_show`, `crop_overlay_orientation`). In the app, O cycles the overlay and ⇧O its orientation while the Crop tool shows a box. +- `ui.set` also accepts the Crop tool's overlay menu (#1919): `cropOverlay` (`thirds`, `grid`, `diagonal`, `triangle`, `goldenRatio`, `goldenSpiral`), `cropOverlayShow` (`always`: the whole time a crop is pending, the default, as in the reference application; `auto`: only while the crop box is dragged; `never`) and `cropOverlayOrientation` (0..7; Triangle has two orientations and Golden Spiral eight, the others ignore it). `ui.inspect` reports them under `toolOptions` (`crop_overlay`, `crop_overlay_show`, `crop_overlay_orientation`). In the app, O cycles the overlay and ⇧O its orientation while the Crop tool shows a box. - `ui.set` also accepts the Pen tools' options bar (#1397): `penMode` (`path` or `shape`) and `penPathOp`, the Path Operations menu (`newLayer`, `combine`, `subtract`, `intersect`, `exclude`): how the next Pen, Freeform Pen or Curvature Pen path joins the selected shape layer (Shape mode; `newLayer` makes a new one) or the targeted vector mask, selected path or Work Path (Path mode, where `newLayer` combines). `ui.inspect` reports them under `toolOptions` (`vector_mode`, `pen_path_op`). Merge Shape Components is the engine command `path.mergeShapeComponents` (work, saved or `layer` path) or `layer.combineShapes.mergeShapeComponents` (shape layers). - `ui.set` also accepts `cropFill` (`background`, the Fill dropdown's first entry, which reads Background (default), or Transparent (default) with Delete Cropped Pixels off, or `contentAware`), the Crop tool's Fill dropdown (#3823, #10872): with `contentAware`, committing a turned or extending frame passes `contentAware: true` to `image.crop`, which fills the area the image doesn't cover from its surroundings. `ui.inspect` reports it as `toolOptions.crop_content_aware`. Both gradient modes use the current preset, including its opacity stops. Select `Foreground to Transparent` through `gradient.presets.select`, or pass custom `stops` and `transparency: [[0,100],[1,0]]` (location 0..1, opacity 0..100). Use `applyToLayer: false` to edit only the tool preset. Classic gradient drags dispatch `paint.gradient` without overriding them.