Dialogs: test that short windows keep their buttons in reach, on craft-libs#4370

The dialog frame now comes from craft-libs, so the fix for dialogs that fit
their lists or rows to the window is storytold/craft-libs#4370. The
craft-libs pin moves to that pull request's head until it merges.

- dialogs_on_a_short_screen_keep_their_buttons_and_rows_in_reach opens
  Transform Each at 200, 150, 120 and 90 pt and Import Shortcut Set at
  600, 400 and 300 pt, scrolls the wheel to the end, and checks that the
  buttons and the rows can be reached. It fails on the current pin (Transform
  Each at 90 pt: Cancel cannot be scrolled into view).
- The Import Shortcut Set case needs the craft-fonts faces and is skipped
  without them.
This commit is contained in:
dotCooCoo
2026-11-29 18:01:16 -08:00
parent 2a8b520252
commit c70e683379
3 changed files with 221 additions and 123 deletions
Generated
+84 -84
View File
@@ -1239,7 +1239,7 @@ dependencies = [
[[package]]
name = "craft"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-automation",
"craft-behavior",
@@ -1280,7 +1280,7 @@ dependencies = [
[[package]]
name = "craft-affinity"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"crc32fast",
"flate2",
@@ -1291,7 +1291,7 @@ dependencies = [
[[package]]
name = "craft-appkit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"block2 0.6.2",
"objc2 0.6.5",
@@ -1302,7 +1302,7 @@ dependencies = [
[[package]]
name = "craft-atomic"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"rustix 1.1.6",
]
@@ -1310,7 +1310,7 @@ dependencies = [
[[package]]
name = "craft-automation"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1335,7 +1335,7 @@ dependencies = [
[[package]]
name = "craft-behavior"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"accesskit",
"bitflags 2.13.2",
@@ -1353,7 +1353,7 @@ dependencies = [
[[package]]
name = "craft-browse"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-docpath",
@@ -1371,7 +1371,7 @@ dependencies = [
[[package]]
name = "craft-cdr"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"crc32fast",
"flate2",
@@ -1380,7 +1380,7 @@ dependencies = [
[[package]]
name = "craft-cloud-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"egui",
]
@@ -1388,7 +1388,7 @@ dependencies = [
[[package]]
name = "craft-cms"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"md-5",
"rayon",
@@ -1397,12 +1397,12 @@ dependencies = [
[[package]]
name = "craft-codepage"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
[[package]]
name = "craft-color-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-cms",
@@ -1422,7 +1422,7 @@ dependencies = [
[[package]]
name = "craft-control"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-control-protocol",
"craft-platform",
@@ -1433,7 +1433,7 @@ dependencies = [
[[package]]
name = "craft-control-protocol"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"getrandom 0.3.4",
"serde_json",
@@ -1443,7 +1443,7 @@ dependencies = [
[[package]]
name = "craft-dds"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"rayon",
]
@@ -1451,7 +1451,7 @@ dependencies = [
[[package]]
name = "craft-dialogs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"block2 0.6.2",
"craft-appkit",
@@ -1477,7 +1477,7 @@ dependencies = [
[[package]]
name = "craft-doc"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"blake3",
"craft-ecproj-format",
@@ -1493,7 +1493,7 @@ dependencies = [
[[package]]
name = "craft-docpath"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"serde",
]
@@ -1501,7 +1501,7 @@ dependencies = [
[[package]]
name = "craft-draw"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1520,7 +1520,7 @@ dependencies = [
[[package]]
name = "craft-dxf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-codepage",
"encoding_rs",
@@ -1532,7 +1532,7 @@ dependencies = [
[[package]]
name = "craft-ecproj-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"serde",
"serde_json",
@@ -1542,12 +1542,12 @@ dependencies = [
[[package]]
name = "craft-eps"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
[[package]]
name = "craft-font-catalog"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"fontique",
"harfrust 0.13.3",
@@ -1562,7 +1562,7 @@ dependencies = [
[[package]]
name = "craft-font-manager"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-font-catalog",
@@ -1581,7 +1581,7 @@ dependencies = [
[[package]]
name = "craft-font-os-windows"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"windows-registry",
"windows-sys 0.61.2",
@@ -1590,7 +1590,7 @@ dependencies = [
[[package]]
name = "craft-font-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"cap-primitives",
"craft-atomic",
@@ -1613,12 +1613,12 @@ dependencies = [
[[package]]
name = "craft-fonts-build"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
[[package]]
name = "craft-gif"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"gif",
]
@@ -1626,7 +1626,7 @@ dependencies = [
[[package]]
name = "craft-gzip"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"flate2",
]
@@ -1634,7 +1634,7 @@ dependencies = [
[[package]]
name = "craft-host"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"bitflags 2.13.2",
"craft-i18n",
@@ -1647,7 +1647,7 @@ dependencies = [
[[package]]
name = "craft-i18n"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"chrono",
"fixed_decimal",
@@ -1675,7 +1675,7 @@ dependencies = [
[[package]]
name = "craft-image-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-dds",
"craft-jpeg",
@@ -1702,7 +1702,7 @@ dependencies = [
[[package]]
name = "craft-imaging"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1720,7 +1720,7 @@ dependencies = [
[[package]]
name = "craft-jpeg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"thiserror 2.0.21",
]
@@ -1728,7 +1728,7 @@ dependencies = [
[[package]]
name = "craft-jxl"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"brotli-decompressor 5.0.3",
"jixel",
@@ -1739,7 +1739,7 @@ dependencies = [
[[package]]
name = "craft-keymap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-host",
"craft-i18n",
@@ -1754,7 +1754,7 @@ dependencies = [
[[package]]
name = "craft-layers"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-i18n",
@@ -1768,7 +1768,7 @@ dependencies = [
[[package]]
name = "craft-menu"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1786,7 +1786,7 @@ dependencies = [
[[package]]
name = "craft-metadata"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"brotli-decompressor 6.3.2",
"chrono",
@@ -1798,7 +1798,7 @@ dependencies = [
[[package]]
name = "craft-metafile"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"encoding_rs",
"image",
@@ -1809,7 +1809,7 @@ dependencies = [
[[package]]
name = "craft-mime"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"chrono",
"craft-codepage",
@@ -1819,7 +1819,7 @@ dependencies = [
[[package]]
name = "craft-pages"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -1835,7 +1835,7 @@ dependencies = [
[[package]]
name = "craft-pcraft-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"flate2",
"serde",
@@ -1846,7 +1846,7 @@ dependencies = [
[[package]]
name = "craft-pdf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"hayro-interpret",
"hayro-syntax",
@@ -1858,7 +1858,7 @@ dependencies = [
[[package]]
name = "craft-platform"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"async-channel",
"async-io",
@@ -1889,7 +1889,7 @@ dependencies = [
[[package]]
name = "craft-plotter"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"kurbo 0.13.1",
"thiserror 2.0.21",
@@ -1898,7 +1898,7 @@ dependencies = [
[[package]]
name = "craft-print"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1922,7 +1922,7 @@ dependencies = [
[[package]]
name = "craft-proof"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"log",
"miniz_oxide 0.9.1",
@@ -1933,7 +1933,7 @@ dependencies = [
[[package]]
name = "craft-ps"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-eps",
"flate2",
@@ -1947,7 +1947,7 @@ dependencies = [
[[package]]
name = "craft-psd"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"encoding_rs",
"flate2",
@@ -1958,7 +1958,7 @@ dependencies = [
[[package]]
name = "craft-quit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"dispatch2",
"egui",
@@ -1971,7 +1971,7 @@ dependencies = [
[[package]]
name = "craft-review"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1990,7 +1990,7 @@ dependencies = [
[[package]]
name = "craft-settings"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-atomic",
"craft-host",
@@ -2007,7 +2007,7 @@ dependencies = [
[[package]]
name = "craft-stream-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"fax",
"hayro-ccitt",
@@ -2018,7 +2018,7 @@ dependencies = [
[[package]]
name = "craft-svg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-image-codecs",
"craft-xml",
@@ -2039,7 +2039,7 @@ dependencies = [
[[package]]
name = "craft-table"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2051,7 +2051,7 @@ dependencies = [
[[package]]
name = "craft-text"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-font-manager",
@@ -2076,7 +2076,7 @@ dependencies = [
[[package]]
name = "craft-theme"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"bitflags 2.13.2",
"craft-tracked",
@@ -2091,7 +2091,7 @@ dependencies = [
[[package]]
name = "craft-theme-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-atomic",
"craft-behavior",
@@ -2106,7 +2106,7 @@ dependencies = [
[[package]]
name = "craft-tiff"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2116,7 +2116,7 @@ dependencies = [
[[package]]
name = "craft-time"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2125,7 +2125,7 @@ dependencies = [
[[package]]
name = "craft-timeline"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2140,12 +2140,12 @@ dependencies = [
[[package]]
name = "craft-tracked"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
[[package]]
name = "craft-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-cloud-ui",
"craft-ui-canvas",
@@ -2159,7 +2159,7 @@ dependencies = [
[[package]]
name = "craft-ui-canvas"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-i18n",
@@ -2175,7 +2175,7 @@ dependencies = [
[[package]]
name = "craft-ui-contract"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"accesskit",
"craft-behavior",
@@ -2213,7 +2213,7 @@ dependencies = [
[[package]]
name = "craft-ui-macros"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"proc-macro-crate",
"proc-macro2",
@@ -2224,7 +2224,7 @@ dependencies = [
[[package]]
name = "craft-ui-panels"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2242,7 +2242,7 @@ dependencies = [
[[package]]
name = "craft-ui-patterns"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2263,7 +2263,7 @@ dependencies = [
[[package]]
name = "craft-ui-shell"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2284,7 +2284,7 @@ dependencies = [
[[package]]
name = "craft-ui-widgets"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2303,7 +2303,7 @@ dependencies = [
[[package]]
name = "craft-update"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"base64 0.22.1",
"chrono",
@@ -2335,7 +2335,7 @@ dependencies = [
[[package]]
name = "craft-vectorcraft-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"flate2",
"serde",
@@ -2346,7 +2346,7 @@ dependencies = [
[[package]]
name = "craft-wayland"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"raw-window-handle",
"wayland-backend",
@@ -2367,7 +2367,7 @@ dependencies = [
[[package]]
name = "craft-win32"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"winsafe",
]
@@ -2375,7 +2375,7 @@ dependencies = [
[[package]]
name = "craft-window"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"craft-appkit",
"craft-atomic",
@@ -2407,7 +2407,7 @@ dependencies = [
[[package]]
name = "craft-xml"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"quick-xml 0.41.0",
"serde",
@@ -3762,7 +3762,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a"
[[package]]
name = "hayro-cmap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"brotli",
"hayro-postscript",
@@ -3771,7 +3771,7 @@ dependencies = [
[[package]]
name = "hayro-interpret"
version = "0.7.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"bitflags 2.13.2",
"hayro-cmap",
@@ -3789,7 +3789,7 @@ dependencies = [
[[package]]
name = "hayro-jbig2"
version = "0.3.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"fearless_simd",
"hayro-ccitt",
@@ -3807,12 +3807,12 @@ dependencies = [
[[package]]
name = "hayro-postscript"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
[[package]]
name = "hayro-syntax"
version = "0.7.2"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"flate2",
"hayro-ccitt",
@@ -4795,7 +4795,7 @@ dependencies = [
[[package]]
name = "krilla"
version = "0.8.2"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"base64 0.22.1",
"bumpalo",
@@ -4952,7 +4952,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
[[package]]
name = "linesweeper"
version = "0.5.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=1c8c93a634524d47e24546582bad2d96a9e1089c#1c8c93a634524d47e24546582bad2d96a9e1089c"
dependencies = [
"arrayvec",
"kurbo 0.13.1",
+37 -37
View File
@@ -11,49 +11,49 @@ rust-version = "1.95"
repository = "https://github.com/storytold/vectorcraft"
[workspace.dependencies]
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", default-features = false, features = ["interpret", "write"] }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c", default-features = false, features = ["interpret", "write"] }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# Language packs: the Craft apps' shared font store installs them (#4936).
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON.
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# `.pcraft` documents: their manifest, full-size composite, preview, layer pixels and ICC profile.
craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", features = ["pcraft-pixels"] }
craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c", features = ["pcraft-pixels"] }
# Native Affinity documents (craft-libs#914).
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778).
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# DXF tags, reader and writer (craft-libs#778, #926, #927).
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# WMF, EMF and EMF+ reader (craft-libs#778).
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", default-features = false, features = ["read", "write"] }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c", default-features = false, features = ["read", "write"] }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names
# the members it imports.
craft = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui
# without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes.
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
# internal
vectorcraft-geom = { path = "crates/geom" }
vectorcraft-color = { path = "crates/color" }
@@ -196,13 +196,13 @@ lto = "thin"
codegen-units = 1
[patch.crates-io]
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "1c8c93a634524d47e24546582bad2d96a9e1089c" }
ecolor = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
emath = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
epaint = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
+100 -2
View File
@@ -11,12 +11,17 @@ type Window = egui_kittest::Harness<'static, VectorcraftApp>;
/// A document with one selected rectangle, in a window that runs whole app frames.
fn window() -> Window {
window_in(egui::vec2(1200.0, 900.0))
}
/// [`window`] at `size` points.
fn window_in(size: egui::Vec2) -> Window {
let mut app = VectorcraftApp::new(Session::new(), Default::default());
app.run("file.new", json!({"width": 400, "height": 400})).unwrap();
app.run("shape.rectangle", json!({"x": 40, "y": 40, "width": 120, "height": 90})).unwrap();
app.run("select.all", json!({})).unwrap();
let mut fonts = false;
let mut h = egui_kittest::Harness::builder().with_size(egui::vec2(1200.0, 900.0)).build_ui_state(
let mut h = egui_kittest::Harness::builder().with_size(size).build_ui_state(
move |ui, app: &mut VectorcraftApp| {
if !std::mem::replace(&mut fonts, true) {
crate::testing::install(ui.ctx());
@@ -28,7 +33,7 @@ fn window() -> Window {
app,
);
let root = h.input_mut().viewports.entry(egui::ViewportId::ROOT).or_default();
root.inner_rect = Some(Rect::from_min_size(Pos2::ZERO, egui::vec2(1200.0, 900.0)));
root.inner_rect = Some(Rect::from_min_size(Pos2::ZERO, size));
root.focused = Some(true);
for _ in 0..2 {
step(&mut h);
@@ -130,3 +135,96 @@ fn print_range_stands_under_its_choice() {
assert_eq!(ranges.len(), 2, "the choice and the field");
assert!(ranges.iter().all(|r| r.bottom() <= ignore.top()), "the Range field before Ignore Artboards");
}
/// The texts painted wholly inside their clip and the screen, each with where it was drawn.
fn seen(h: &Window, screen: Rect) -> Vec<(String, Rect)> {
let mut found = vec![];
for (shape, transform, clip) in crate::tests_labels::painted_shapes(&h.output().shapes) {
let egui::Shape::Text(t) = shape else { continue };
let rect = transform * t.visual_bounding_rect();
if clip.intersect(screen).expand(0.5).contains_rect(rect) {
found.push((t.galley.text().trim().to_owned(), rect));
}
}
found
}
/// Scroll the wheel down over the middle of the screen, far enough to reach the end of a window.
fn scroll_down(h: &mut Window, screen: Rect) {
h.input_mut().events.push(egui::Event::PointerMoved(screen.center()));
for _ in 0..20 {
h.input_mut().events.push(egui::Event::MouseWheel {
unit: egui::MouseWheelUnit::Point,
delta: egui::vec2(0.0, -200.0),
phase: egui::TouchPhase::Move,
modifiers: egui::Modifiers::default(),
source: egui::MouseWheelSource::Unknown,
});
step(h);
}
for _ in 0..4 {
step(h);
}
}
/// Dialogs whose lists or rows fit themselves to the screen stay on a short screen with every
/// button and their lists in reach, by scrolling when their lists or rows are at their smallest.
#[test]
fn dialogs_on_a_short_screen_keep_their_buttons_and_rows_in_reach() {
const SET: &str = "/Menus {\n /Edit {\n /Acme\\ Undo { /Context 0 /Modifiers 11 /Represent 0 /Key 902 }\n }\n}\n";
type Open = fn(&mut VectorcraftApp);
// A dialog, how it opens, its buttons, text in its lists or rows, and screen heights with whether
// that text is then in reach.
type Case = (&'static str, Open, &'static [&'static str], &'static [&'static str], &'static [(f32, bool)]);
let opens: [Case; 2] = [
(
"Import Shortcut Set",
|app| {
let data = vectorcraft_format::base64_encode(SET.as_bytes());
app.run("ui.shortcutImportDialog", json!({"name": "Set.kys", "dataBase64": data})).unwrap();
},
&["Import as New Set", "Cancel Import"],
&["1 item not matched"],
&[(600.0, true), (400.0, true), (300.0, false)],
),
(
"Transform Each",
|app| crate::menus::invoke(app, "object.transformEach", json!({})),
&["OK", "Cancel"],
&["Horizontal:"],
&[(200.0, true), (150.0, true), (120.0, true), (90.0, false)],
),
];
// The Keyboard Shortcuts window behind Import Shortcut Set lists the language commands in their own
// scripts, which need the craft-fonts faces.
let deva = vectorcraft_text::CRAFT_FONTS.iter().any(|f| f.has_script("Deva"));
let mut wrong = vec![];
for (name, open, labels, rows, heights) in opens {
if name == "Import Shortcut Set" && !deva {
eprintln!("skipped Import Shortcut Set: built without craft-fonts (set CRAFT_FONTS_DIR to a craft-fonts checkout to run it)");
continue;
}
for &(height, rows_seen) in heights {
let screen = Rect::from_min_size(Pos2::ZERO, egui::vec2(1280.0, height));
let mut h = window_in(screen.size());
open(h.state_mut());
for _ in 0..6 {
step(&mut h);
}
let top = seen(&h, screen);
scroll_down(&mut h, screen);
let end = seen(&h, screen);
let reached = |label: &str| top.iter().chain(&end).any(|(s, _)| s == label);
for label in labels {
if !reached(label) {
wrong.push(format!("{name} at {height}: {label} cannot be scrolled into view: {top:?} {end:?}"));
}
}
let row_reached = |row: &str| top.iter().chain(&end).any(|(s, _)| s.contains(row));
if rows_seen && !rows.iter().any(|r| row_reached(r)) {
wrong.push(format!("{name} at {height}: its lists or rows cannot be scrolled into view: {top:?} {end:?}"));
}
}
}
assert!(wrong.is_empty(), "{wrong:#?}");
}